@things-factory/sales-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/sales-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,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@things-factory/setting-base": "^4.3.14",
|
|
35
35
|
"@things-factory/shell": "^4.3.14",
|
|
36
36
|
"@things-factory/transport-base": "^4.3.14",
|
|
37
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
37
|
+
"@things-factory/warehouse-base": "^4.3.16"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "62892327e53288b479a13a53043067c678cd9bfc"
|
|
40
40
|
}
|
|
@@ -500,7 +500,7 @@ export async function generateReleaseGoodFunction(
|
|
|
500
500
|
})
|
|
501
501
|
|
|
502
502
|
// Need to restructure the validation
|
|
503
|
-
if (marketplaceOrder
|
|
503
|
+
if (marketplaceOrder?.isSplitted) {
|
|
504
504
|
const refNo2: string = releaseGood.refNo2
|
|
505
505
|
const foundSplittedReleaseGood = await tx.getRepository(ReleaseGood).findOne({
|
|
506
506
|
where: {
|
|
@@ -795,12 +795,10 @@ export async function confirmReleaseGood(name: string, context: any, tx?: Entity
|
|
|
795
795
|
let foundOVs: OrderVas[] = foundReleaseGood.orderVass
|
|
796
796
|
let customerBizplace: Bizplace = foundReleaseGood.bizplace
|
|
797
797
|
const companyDomain: Domain = customerBizplace?.company.domain
|
|
798
|
-
const sellercraft: Sellercraft = await tx
|
|
799
|
-
.
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
relations: ['domain']
|
|
803
|
-
})
|
|
798
|
+
const sellercraft: Sellercraft = await tx.getRepository(Sellercraft).findOne({
|
|
799
|
+
where: { domain: foundReleaseGood.bizplace.domain, status: SellercraftStatus.ACTIVE },
|
|
800
|
+
relations: ['domain']
|
|
801
|
+
})
|
|
804
802
|
|
|
805
803
|
if (foundReleaseGood.type == 'b2c') {
|
|
806
804
|
if (sellercraft) {
|