Skip to content

Commit

Permalink
Use temporary new barcode specification
Browse files Browse the repository at this point in the history
Adds FIXME
  • Loading branch information
anotheroneofthese committed Aug 6, 2024
1 parent 594bbab commit 9c222eb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data class SynqProductPayload(
ESK
}

data class Barcode(val barcodeId: String)
data class Barcode(val barcodeId: String, val barcodeDesc: String)

data class ProductUom(val uomId: SynqPackaging)
}
Expand All @@ -45,11 +45,12 @@ fun SynqProductPayload.toProduct() =
owner = owner.toOwner()
)

// FIXME - metadata for barcode is lost
fun Product.toSynqPayload() =
SynqProductPayload(
productId = hostId,
owner = owner.toSynqOwner(),
barcode = SynqProductPayload.Barcode(hostId),
barcode = SynqProductPayload.Barcode(hostId, "barcode"),
description = description,
productCategory = productCategory,
productUom = SynqProductPayload.ProductUom(packaging.toSynqPackaging()),
Expand Down

0 comments on commit 9c222eb

Please sign in to comment.