@things-factory/warehouse-base 4.3.241 → 4.3.244
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.
- package/dist-server/service/inventory/inventory-query.js +1 -1
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js +0 -2
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js.map +1 -1
- package/package.json +2 -2
- package/server/service/inventory/inventory-query.ts +1 -1
- package/server/service/reduced-inventory-history/reduced-inventory-history.ts +0 -2
|
@@ -365,7 +365,7 @@ let InventoryQuery = class InventoryQuery {
|
|
|
365
365
|
AND "Inventory"."domain_id" = $1
|
|
366
366
|
${bizplaceQuery}
|
|
367
367
|
${productQuery}
|
|
368
|
-
GROUP BY "Product"."id","Bizplace"."id", "ProductDetailBizplaceSetting"."id", "ProductDetails"."id",
|
|
368
|
+
GROUP BY "Product"."id","Bizplace"."id","Bizplace"."name" ,"ProductDetailBizplaceSetting"."id", "ProductDetails"."id",
|
|
369
369
|
"Inventory"."packing_type", "Inventory"."packing_size", "Inventory"."uom",
|
|
370
370
|
"Location"."type", "ProductRef"."id","Inventory"."transfer_qty",
|
|
371
371
|
"Inventory"."expiration_date", "Inventory"."obsolete"
|
|
@@ -121,8 +121,6 @@ ReducedInventoryHistory = __decorate([
|
|
|
121
121
|
SELECT ih2.id FROM inventory_histories ih2
|
|
122
122
|
WHERE ih2.domain_id = ih.domain_id AND ih2.pallet_id::text = ih.pallet_id::TEXT
|
|
123
123
|
AND (
|
|
124
|
-
((ih2.transaction_type::text = 'CANCEL_ORDER'::text) AND ih2.ref_order_id::text = ih.ref_order_id::TEXT)
|
|
125
|
-
OR
|
|
126
124
|
((ih2.seq = (ih.seq + 1) OR ih2.seq = ih.seq) AND (ih2.transaction_type::text = 'UNDO_UNLOADING'::TEXT))
|
|
127
125
|
)
|
|
128
126
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduced-inventory-history.js","sourceRoot":"","sources":["../../../server/service/reduced-inventory-history/reduced-inventory-history.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;
|
|
1
|
+
{"version":3,"file":"reduced-inventory-history.js","sourceRoot":"","sources":["../../../server/service/reduced-inventory-history/reduced-inventory-history.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AAczC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CA2EnC,CAAA;AA1EC;IAAC,IAAA,oBAAU,GAAE;;mDACH;AAEV;IAAC,IAAA,oBAAU,GAAE;;oDACF;AAEX;IAAC,IAAA,oBAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;4DACM;AAEnB;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;wDACE;AAEf;IAAC,IAAA,oBAAU,GAAE;;qDACD;AAEZ;IAAC,IAAA,oBAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,oBAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,oBAAU,GAAE;;wDACE;AAEf;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;0DACI;AAEjB;IAAC,IAAA,oBAAU,GAAE;;4DACM;AAEnB;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;qDACD;AAEZ;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;4DACM;AAEnB;IAAC,IAAA,oBAAU,GAAE;;oDACF;AAEX;IAAC,IAAA,oBAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,oBAAU,GAAE;;gEACU;AAEvB;IAAC,IAAA,oBAAU,GAAE;;oDACF;AAEX;IAAC,IAAA,oBAAU,GAAE;;2DACK;AAElB;IAAC,IAAA,oBAAU,GAAE;;uDACC;AAEd;IAAC,IAAA,oBAAU,GAAE;;gEACU;AA1EZ,uBAAuB;IAZnC,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE;;;;;;;;;GASX;KACF,CAAC;GACW,uBAAuB,CA2EnC;AA3EY,0DAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/warehouse-base",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.244",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@things-factory/product-base": "^4.3.237",
|
|
32
32
|
"@things-factory/setting-base": "^4.3.237"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "6892f7cf3a5b2e792cbbdfc4ebc5266802ef3499"
|
|
35
35
|
}
|
|
@@ -432,7 +432,7 @@ export class InventoryQuery {
|
|
|
432
432
|
AND "Inventory"."domain_id" = $1
|
|
433
433
|
${bizplaceQuery}
|
|
434
434
|
${productQuery}
|
|
435
|
-
GROUP BY "Product"."id","Bizplace"."id", "ProductDetailBizplaceSetting"."id", "ProductDetails"."id",
|
|
435
|
+
GROUP BY "Product"."id","Bizplace"."id","Bizplace"."name" ,"ProductDetailBizplaceSetting"."id", "ProductDetails"."id",
|
|
436
436
|
"Inventory"."packing_type", "Inventory"."packing_size", "Inventory"."uom",
|
|
437
437
|
"Location"."type", "ProductRef"."id","Inventory"."transfer_qty",
|
|
438
438
|
"Inventory"."expiration_date", "Inventory"."obsolete"
|
|
@@ -7,8 +7,6 @@ import { ViewColumn, ViewEntity } from 'typeorm'
|
|
|
7
7
|
SELECT ih2.id FROM inventory_histories ih2
|
|
8
8
|
WHERE ih2.domain_id = ih.domain_id AND ih2.pallet_id::text = ih.pallet_id::TEXT
|
|
9
9
|
AND (
|
|
10
|
-
((ih2.transaction_type::text = 'CANCEL_ORDER'::text) AND ih2.ref_order_id::text = ih.ref_order_id::TEXT)
|
|
11
|
-
OR
|
|
12
10
|
((ih2.seq = (ih.seq + 1) OR ih2.seq = ih.seq) AND (ih2.transaction_type::text = 'UNDO_UNLOADING'::TEXT))
|
|
13
11
|
)
|
|
14
12
|
)
|