@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "6.2.165",
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.165",
28
- "@things-factory/id-rule-base": "^6.2.165",
29
- "@things-factory/integration-sellercraft": "^6.2.165",
30
- "@things-factory/marketplace-base": "^6.2.165",
31
- "@things-factory/product-base": "^6.2.165",
32
- "@things-factory/setting-base": "^6.2.165"
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": "7c1bf77d9da08bda3a74d11a0c62cac678c9720f"
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
@@ -56,7 +56,6 @@ export class InventoryChangeQuery {
56
56
  .leftJoinAndSelect('livh.bizplace', 'livhBiz')
57
57
  .innerJoinAndSelect('ic.creator', 'creator')
58
58
  .innerJoinAndSelect('ic.updater', 'updater')
59
- .orderBy('ic.createdAt', 'DESC')
60
59
 
61
60
  qb.andWhere(
62
61
  new Brackets(qb => {