@things-factory/warehouse-base 6.2.165 → 6.2.167
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-change/inventory-change-mutation.js +3 -2
- package/dist-server/service/inventory-change/inventory-change-mutation.js.map +1 -1
- package/dist-server/service/inventory-change/inventory-change-query.js +1 -2
- package/dist-server/service/inventory-change/inventory-change-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/server/service/inventory-change/inventory-change-mutation.ts +3 -2
- package/server/service/inventory-change/inventory-change-query.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/warehouse-base",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.167",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/biz-base": "^6.2.
|
|
28
|
-
"@things-factory/id-rule-base": "^6.2.
|
|
29
|
-
"@things-factory/integration-sellercraft": "^6.2.
|
|
30
|
-
"@things-factory/marketplace-base": "^6.2.
|
|
31
|
-
"@things-factory/product-base": "^6.2.
|
|
32
|
-
"@things-factory/setting-base": "^6.2.
|
|
27
|
+
"@things-factory/biz-base": "^6.2.167",
|
|
28
|
+
"@things-factory/id-rule-base": "^6.2.167",
|
|
29
|
+
"@things-factory/integration-sellercraft": "^6.2.167",
|
|
30
|
+
"@things-factory/marketplace-base": "^6.2.167",
|
|
31
|
+
"@things-factory/product-base": "^6.2.167",
|
|
32
|
+
"@things-factory/setting-base": "^6.2.167"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c0b528ac67d7cd766d901e0e2f74ae39ef648cab"
|
|
35
35
|
}
|
|
@@ -542,7 +542,8 @@ export async function approveInventoryChanges(patches: any, context: ResolverCon
|
|
|
542
542
|
'product',
|
|
543
543
|
'product.productDetails',
|
|
544
544
|
'product.productDetails.childProductDetail',
|
|
545
|
-
'location'
|
|
545
|
+
'location',
|
|
546
|
+
'location.warehouse'
|
|
546
547
|
],
|
|
547
548
|
order: {
|
|
548
549
|
createdAt: 'ASC'
|
|
@@ -614,7 +615,7 @@ export async function approveInventoryChanges(patches: any, context: ResolverCon
|
|
|
614
615
|
// Check Change of existing inventory location
|
|
615
616
|
if (newRecord.location && newRecord.location.id != inventory.location.id) {
|
|
616
617
|
newRecord.zone = newRecord.location.zone
|
|
617
|
-
newRecord.warehouse = newRecord.location.warehouse
|
|
618
|
+
newRecord.warehouse = { id: newRecord.location.warehouse.id }
|
|
618
619
|
transactionType = 'ADJUSTMENT'
|
|
619
620
|
|
|
620
621
|
// Check and set current location status
|