@things-factory/warehouse-base 4.3.532 → 4.3.535
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.
|
@@ -20,6 +20,7 @@ class PosController extends warehouse_controller_1.WarehouseController {
|
|
|
20
20
|
// status: INVENTORY_STATUS.STORED,
|
|
21
21
|
// locationTypes: [LOCATION_TYPE.QUARANTINE, LOCATION_TYPE.RESERVE]
|
|
22
22
|
// })
|
|
23
|
+
var _a;
|
|
23
24
|
// let inventories: Inventory[] = await qb.getMany()
|
|
24
25
|
// let inventoryTotalQty: number = 0
|
|
25
26
|
// let inventoryTotalLockedQty: number = 0
|
|
@@ -51,7 +52,8 @@ class PosController extends warehouse_controller_1.WarehouseController {
|
|
|
51
52
|
dateTime: new Date().toISOString(),
|
|
52
53
|
stockTakeType
|
|
53
54
|
};
|
|
54
|
-
|
|
55
|
+
let disableStockAdjustRecord = ((_a = account.accountSettings) === null || _a === void 0 ? void 0 : _a.disableStockAdjustRecord) == 1 ? true : false;
|
|
56
|
+
if (account.platform == 'xilnex' && !disableStockAdjustRecord) {
|
|
55
57
|
const stockAdjustRecord = await integration_accounting_1.AccountingAPI.createStockAdjustRecord(account, {
|
|
56
58
|
xilnexInv: inventoryProduct
|
|
57
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pos-controller.js","sourceRoot":"","sources":["../../../server/controllers/ecommerce/pos-controller.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"pos-controller.js","sourceRoot":"","sources":["../../../server/controllers/ecommerce/pos-controller.ts"],"names":[],"mappings":";;;AAGA,mFAG+C;AAI/C,sFAAiF;AACjF,kEAA6D;AAE7D,MAAa,aAAc,SAAQ,0CAAmB;IACpD,KAAK,CAAC,cAAc,CAClB,EAAiB,EACjB,OAAmB,EACnB,MAAc,EACd,QAAkB,EAClB,OAAgB,EAChB,cAAsB,EACtB,aAAqB,EACrB,iBAAyB;QAEzB,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,CAAA;SAC/G;IACH,CAAC;CACF;AAxED,sCAwEC"}
|
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.535",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@things-factory/biz-base": "^4.3.
|
|
27
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
28
|
-
"@things-factory/integration-accounting": "^4.3.
|
|
29
|
-
"@things-factory/integration-powrup": "^4.3.
|
|
30
|
-
"@things-factory/integration-sellercraft": "^4.3.
|
|
31
|
-
"@things-factory/marketplace-base": "^4.3.
|
|
32
|
-
"@things-factory/product-base": "^4.3.
|
|
33
|
-
"@things-factory/setting-base": "^4.3.
|
|
26
|
+
"@things-factory/biz-base": "^4.3.535",
|
|
27
|
+
"@things-factory/id-rule-base": "^4.3.535",
|
|
28
|
+
"@things-factory/integration-accounting": "^4.3.535",
|
|
29
|
+
"@things-factory/integration-powrup": "^4.3.535",
|
|
30
|
+
"@things-factory/integration-sellercraft": "^4.3.535",
|
|
31
|
+
"@things-factory/marketplace-base": "^4.3.535",
|
|
32
|
+
"@things-factory/product-base": "^4.3.535",
|
|
33
|
+
"@things-factory/setting-base": "^4.3.535"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d2755223b36e17526402f86cb9a100d632728863"
|
|
36
36
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { EntityManager } from 'typeorm'
|
|
2
2
|
|
|
3
3
|
import { Bizplace } from '@things-factory/biz-base'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Accounting,
|
|
6
|
+
AccountingAPI
|
|
7
|
+
} from '@things-factory/integration-accounting'
|
|
5
8
|
import { Product } from '@things-factory/product-base'
|
|
6
9
|
import { Domain } from '@things-factory/shell'
|
|
7
10
|
|
|
@@ -71,7 +74,9 @@ export class PosController extends WarehouseController {
|
|
|
71
74
|
stockTakeType
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
let disableStockAdjustRecord: boolean = account.accountSettings?.disableStockAdjustRecord == 1 ? true : false
|
|
78
|
+
|
|
79
|
+
if (account.platform == 'xilnex' && !disableStockAdjustRecord) {
|
|
75
80
|
const stockAdjustRecord: any = await AccountingAPI.createStockAdjustRecord(account, {
|
|
76
81
|
xilnexInv: inventoryProduct
|
|
77
82
|
})
|