Fix offer.lines - read productUuid directly from offer
All checks were successful
Build Docker Image / build (push) Successful in 4m16s
All checks were successful
Build Docker Image / build (push) Successful in 4m16s
This commit is contained in:
@@ -228,9 +228,8 @@ try {
|
||||
|
||||
// Find product in offers
|
||||
for (const offer of offers) {
|
||||
const line = offer.lines?.find((l: any) => l?.productUuid === productId.value)
|
||||
if (line) {
|
||||
product.value = { uuid: line.productUuid, name: line.productName }
|
||||
if (offer.productUuid === productId.value && offer.productName) {
|
||||
product.value = { uuid: offer.productUuid, name: offer.productName }
|
||||
if (offer.locationUuid && offer.locationName) {
|
||||
sourceLocation.value = { uuid: offer.locationUuid, name: offer.locationName }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user