Fix offer.lines - read productUuid directly from offer
All checks were successful
Build Docker Image / build (push) Successful in 4m16s

This commit is contained in:
Ruslan Bakiev
2026-01-16 10:35:13 +07:00
parent cdf4b3069f
commit 273990899f

View File

@@ -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 }
}