@things-factory/sales-base 4.3.74 → 4.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -454,7 +454,6 @@ async function validateBulkArrivalNoticesFunction(rawArrivalNotices, bizplaceId,
|
|
|
454
454
|
AND raw.import_cargo = an.import_cargo
|
|
455
455
|
LEFT JOIN products pr ON LOWER(pr.sku) = LOWER(raw.sku)
|
|
456
456
|
LEFT JOIN product_details pd ON pr.id = pd.product_id
|
|
457
|
-
AND pr.bizplace_id = $1
|
|
458
457
|
AND CASE WHEN raw.packing_type NOTNULL AND raw.packing_size NOTNULL AND raw.uom NOTNULL
|
|
459
458
|
THEN pd.packing_type = raw.packing_type AND pd.packing_size = raw.packing_size AND pd.uom = raw.uom
|
|
460
459
|
WHEN raw.packing_type NOTNULL AND raw.packing_size NOTNULL AND raw.uom ISNULL
|
|
@@ -462,6 +461,7 @@ async function validateBulkArrivalNoticesFunction(rawArrivalNotices, bizplaceId,
|
|
|
462
461
|
WHEN raw.packing_type ISNULL AND raw.packing_size ISNULL AND raw.uom NOTNULL
|
|
463
462
|
THEN pd.uom = raw.uom AND pd.is_default IS TRUE ELSE pd.is_default IS TRUE
|
|
464
463
|
END
|
|
464
|
+
WHERE pr.bizplace_id = $1
|
|
465
465
|
GROUP BY raw.ref_no, raw.ref_no_2, raw.ref_no_3, raw.eta_date, raw.truck_no, raw.own_transport, raw.container, raw.container_no, raw.container_size, raw.import_cargo, raw.loose_item,
|
|
466
466
|
pr.id, pd.id, raw.sku, pr.name, pr.description, raw.batch_id, raw.batch_id_ref, raw.packing_type, raw.packing_size, raw.uom, raw.unit_price, raw.manufacture_date, an.ref_no, an.name
|
|
467
467
|
) SELECT foo.*,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/sales-base",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.75",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@things-factory/code-base": "^4.3.74",
|
|
31
31
|
"@things-factory/integration-sftp": "^4.3.74",
|
|
32
32
|
"@things-factory/notification": "^4.3.74",
|
|
33
|
-
"@things-factory/product-base": "^4.3.
|
|
33
|
+
"@things-factory/product-base": "^4.3.75",
|
|
34
34
|
"@things-factory/setting-base": "^4.3.74",
|
|
35
35
|
"@things-factory/shell": "^4.3.74",
|
|
36
36
|
"@things-factory/transport-base": "^4.3.74",
|
|
37
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
37
|
+
"@things-factory/warehouse-base": "^4.3.75"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3076ac1b79bc1f56d033b4d13c1dd9baac545e27"
|
|
40
40
|
}
|
|
@@ -478,7 +478,6 @@ export async function validateBulkArrivalNoticesFunction(
|
|
|
478
478
|
AND raw.import_cargo = an.import_cargo
|
|
479
479
|
LEFT JOIN products pr ON LOWER(pr.sku) = LOWER(raw.sku)
|
|
480
480
|
LEFT JOIN product_details pd ON pr.id = pd.product_id
|
|
481
|
-
AND pr.bizplace_id = $1
|
|
482
481
|
AND CASE WHEN raw.packing_type NOTNULL AND raw.packing_size NOTNULL AND raw.uom NOTNULL
|
|
483
482
|
THEN pd.packing_type = raw.packing_type AND pd.packing_size = raw.packing_size AND pd.uom = raw.uom
|
|
484
483
|
WHEN raw.packing_type NOTNULL AND raw.packing_size NOTNULL AND raw.uom ISNULL
|
|
@@ -486,6 +485,7 @@ export async function validateBulkArrivalNoticesFunction(
|
|
|
486
485
|
WHEN raw.packing_type ISNULL AND raw.packing_size ISNULL AND raw.uom NOTNULL
|
|
487
486
|
THEN pd.uom = raw.uom AND pd.is_default IS TRUE ELSE pd.is_default IS TRUE
|
|
488
487
|
END
|
|
488
|
+
WHERE pr.bizplace_id = $1
|
|
489
489
|
GROUP BY raw.ref_no, raw.ref_no_2, raw.ref_no_3, raw.eta_date, raw.truck_no, raw.own_transport, raw.container, raw.container_no, raw.container_size, raw.import_cargo, raw.loose_item,
|
|
490
490
|
pr.id, pd.id, raw.sku, pr.name, pr.description, raw.batch_id, raw.batch_id_ref, raw.packing_type, raw.packing_size, raw.uom, raw.unit_price, raw.manufacture_date, an.ref_no, an.name
|
|
491
491
|
) SELECT foo.*,
|