Skip to content

Commit

Permalink
Add receipt ID to ReceiptLine modelAdd receipt ID to ReceiptLine model
Browse files Browse the repository at this point in the history
  • Loading branch information
antweb committed Aug 30, 2024
1 parent a555fb3 commit f39653c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import java.time.OffsetDateTime
*/
data class ReceiptLine(
val id: Long,
val receiptId: Long,
val positionId: Long,
val type: Type,
val price: BigDecimal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import eu.pretix.libpretixsync.models.ReceiptLine as ReceiptLineModel
fun ReceiptLine.toModel() =
ReceiptLineModel(
id = id,
receiptId = receipt!!,
positionId = positionid!!,
type = ReceiptLineModel.Type.valueOf(type!!),
price = price!!,
Expand Down

0 comments on commit f39653c

Please sign in to comment.