@things-factory/warehouse-base 4.3.15 → 4.3.16
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": "4.3.
|
|
3
|
+
"version": "4.3.16",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@things-factory/biz-base": "^4.3.14",
|
|
28
28
|
"@things-factory/id-rule-base": "^4.3.14",
|
|
29
29
|
"@things-factory/integration-sellercraft": "^4.3.15",
|
|
30
|
-
"@things-factory/marketplace-base": "^4.3.
|
|
30
|
+
"@things-factory/marketplace-base": "^4.3.16",
|
|
31
31
|
"@things-factory/product-base": "^4.3.14",
|
|
32
32
|
"@things-factory/setting-base": "^4.3.14"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "62892327e53288b479a13a53043067c678cd9bfc"
|
|
35
35
|
}
|
|
@@ -805,8 +805,11 @@ export async function approveInventoryChanges(patches: any, context: any) {
|
|
|
805
805
|
if (sellercraft) {
|
|
806
806
|
const sellercraftCtrl: SellercraftController = new SellercraftController(tx, domain, user)
|
|
807
807
|
await sellercraftCtrl.updateSellercraftStock(sellercraft, inventory)
|
|
808
|
-
if (newRecord?.product || newRecord?.bizplace)
|
|
808
|
+
if (newRecord?.product || newRecord?.bizplace) {
|
|
809
|
+
if (!newRecord?.product) newRecord.product = inventory.product
|
|
810
|
+
|
|
809
811
|
await sellercraftCtrl.updateSellercraftStock(sellercraft, newRecord)
|
|
812
|
+
}
|
|
810
813
|
}
|
|
811
814
|
|
|
812
815
|
// check for any existing active marketplace connection, update marketplace selling qty
|