@things-factory/operato-mms 5.0.0-alpha.2 → 5.0.0-alpha.22
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/graphql/resolvers/interface-with-hub/add-release-order.js +70 -69
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js.map +1 -1
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js +70 -69
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js.map +1 -1
- package/dist-server/routers/etrax-router.js +8 -9
- package/dist-server/routers/etrax-router.js.map +1 -1
- package/package.json +62 -62
- package/server/graphql/resolvers/interface-with-hub/add-release-order.ts +73 -75
- package/server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts +73 -75
- package/server/routers/etrax-router.ts +10 -11
- package/translations/en.json +2 -0
- package/translations/ko.json +2 -0
- package/translations/ms.json +2 -0
- package/translations/zh.json +2 -0
|
@@ -26,6 +26,7 @@ exports.addReleaseOrderResolver = {
|
|
|
26
26
|
'marketplaceStore'
|
|
27
27
|
]
|
|
28
28
|
});
|
|
29
|
+
const marketplaceOrderItems = marketplaceOrder.marketplaceOrderItems;
|
|
29
30
|
let marketplaceOrderShippings = await (0, typeorm_1.getRepository)(marketplace_base_1.MarketplaceOrderShipping).find({
|
|
30
31
|
where: { orderNoRef: marketplaceOrder.orderNo, domain },
|
|
31
32
|
order: { subOrderNoRef: 'ASC' },
|
|
@@ -44,7 +45,7 @@ exports.addReleaseOrderResolver = {
|
|
|
44
45
|
.getDate()
|
|
45
46
|
.toString()
|
|
46
47
|
.padStart(2, '0')}`;
|
|
47
|
-
|
|
48
|
+
var newReleaseOrder = {
|
|
48
49
|
releaseDate,
|
|
49
50
|
type: 'b2c',
|
|
50
51
|
transporter: marketplaceOrder.shippingProvider,
|
|
@@ -99,76 +100,76 @@ exports.addReleaseOrderResolver = {
|
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
catch (e) { }
|
|
102
|
-
var invoiceProducts = await Promise.all(newReleaseOrder.orderInventories.map(async (oi) => {
|
|
103
|
-
let product = await (0, typeorm_1.getRepository)(product_base_1.Product).findOne({
|
|
104
|
-
where: { domain, sku: oi.product.sku }
|
|
105
|
-
});
|
|
106
|
-
if (!product) {
|
|
107
|
-
product = await (0, typeorm_1.getRepository)(product_base_1.ProductBundle).findOne({
|
|
108
|
-
where: { domain, sku: oi.product.sku }
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
let mosis = marketplaceOrderShippingItems.filter(mosi => mosi.product.sku === product.sku);
|
|
112
|
-
let moi = mosis[0].marketplaceOrderItem;
|
|
113
|
-
return {
|
|
114
|
-
sku: product.sku,
|
|
115
|
-
name: product.name,
|
|
116
|
-
description: product.description,
|
|
117
|
-
product: { sku: product.sku },
|
|
118
|
-
qty: oi.releaseQty,
|
|
119
|
-
unitPrice: ((moi === null || moi === void 0 ? void 0 : moi.originalPrice) || 0) / moi.qty,
|
|
120
|
-
paidPrice: ((moi === null || moi === void 0 ? void 0 : moi.paidPrice) || 0) / moi.qty
|
|
121
|
-
};
|
|
122
|
-
}));
|
|
123
|
-
let newInvoice = {
|
|
124
|
-
invoiceProducts,
|
|
125
|
-
releaseGood: { id: releaseOrder.id, name: releaseOrder.name },
|
|
126
|
-
refNo1: newReleaseOrder.refNo.toString(),
|
|
127
|
-
refNo2: newReleaseOrder.refNo2.toString(),
|
|
128
|
-
issuedOn: new Date(),
|
|
129
|
-
from: marketplaceOrder.marketplaceStore.storeName,
|
|
130
|
-
fromContactPhone: '-',
|
|
131
|
-
fromAddress1: '-',
|
|
132
|
-
fromAddress2: null,
|
|
133
|
-
fromAddress3: null,
|
|
134
|
-
fromAddress4: null,
|
|
135
|
-
fromAddress5: null,
|
|
136
|
-
fromPostcode: null,
|
|
137
|
-
fromCity: null,
|
|
138
|
-
fromState: null,
|
|
139
|
-
fromCountry: null,
|
|
140
|
-
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
141
|
-
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
142
|
-
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
143
|
-
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
144
|
-
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
145
|
-
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
146
|
-
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
147
|
-
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
148
|
-
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
149
|
-
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
150
|
-
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
151
|
-
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
152
|
-
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
153
|
-
billingAddress1: releaseOrder.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
154
|
-
billingAddress2: null,
|
|
155
|
-
billingAddress3: null,
|
|
156
|
-
billingAddress4: null,
|
|
157
|
-
billingAddress5: null,
|
|
158
|
-
billingPostcode: '-',
|
|
159
|
-
billingCity: '-',
|
|
160
|
-
billingState: '-',
|
|
161
|
-
billingCountry: '-'
|
|
162
|
-
};
|
|
163
|
-
try {
|
|
164
|
-
await integration_fulfillment_1.FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
165
|
-
customerBizplaceId,
|
|
166
|
-
invoice: newInvoice
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
catch (e) { }
|
|
170
103
|
}
|
|
171
104
|
}
|
|
105
|
+
var invoiceProducts = await Promise.all(marketplaceOrderItems.map(async (mi) => {
|
|
106
|
+
let product = await (0, typeorm_1.getRepository)(product_base_1.Product).findOne({
|
|
107
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
108
|
+
});
|
|
109
|
+
let productBundle;
|
|
110
|
+
if (!product) {
|
|
111
|
+
productBundle = await (0, typeorm_1.getRepository)(product_base_1.ProductBundle).findOne({
|
|
112
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
sku: product ? product.sku : productBundle.sku,
|
|
117
|
+
name: product ? product.name : productBundle.name,
|
|
118
|
+
description: product ? product.description : productBundle.description,
|
|
119
|
+
qty: mi.qty,
|
|
120
|
+
unitPrice: ((mi === null || mi === void 0 ? void 0 : mi.originalPrice) || 0) / mi.qty,
|
|
121
|
+
paidPrice: ((mi === null || mi === void 0 ? void 0 : mi.paidPrice) || 0) / mi.qty,
|
|
122
|
+
discount: (mi === null || mi === void 0 ? void 0 : mi.discount) || 0,
|
|
123
|
+
shippingFeePaidByCustomer: (mi === null || mi === void 0 ? void 0 : mi.shippingFeePaidByCustomer) || 0
|
|
124
|
+
};
|
|
125
|
+
}));
|
|
126
|
+
let newInvoice = {
|
|
127
|
+
invoiceProducts,
|
|
128
|
+
name: '-',
|
|
129
|
+
refNo1: newReleaseOrder.refNo.toString(),
|
|
130
|
+
refNo2: newReleaseOrder.refNo2.toString(),
|
|
131
|
+
issuedOn: new Date(),
|
|
132
|
+
from: marketplaceOrder.marketplaceStore.storeName,
|
|
133
|
+
fromContactPhone: '-',
|
|
134
|
+
fromAddress1: '-',
|
|
135
|
+
fromAddress2: null,
|
|
136
|
+
fromAddress3: null,
|
|
137
|
+
fromAddress4: null,
|
|
138
|
+
fromAddress5: null,
|
|
139
|
+
fromPostcode: null,
|
|
140
|
+
fromCity: null,
|
|
141
|
+
fromState: null,
|
|
142
|
+
fromCountry: null,
|
|
143
|
+
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
144
|
+
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
145
|
+
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
146
|
+
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
147
|
+
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
148
|
+
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
149
|
+
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
150
|
+
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
151
|
+
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
152
|
+
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
153
|
+
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
154
|
+
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
155
|
+
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
156
|
+
billingAddress1: newReleaseOrder.deliverTo.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
157
|
+
billingAddress2: null,
|
|
158
|
+
billingAddress3: null,
|
|
159
|
+
billingAddress4: null,
|
|
160
|
+
billingAddress5: null,
|
|
161
|
+
billingPostcode: '-',
|
|
162
|
+
billingCity: '-',
|
|
163
|
+
billingState: '-',
|
|
164
|
+
billingCountry: '-'
|
|
165
|
+
};
|
|
166
|
+
try {
|
|
167
|
+
await integration_fulfillment_1.FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
168
|
+
customerBizplaceId,
|
|
169
|
+
invoice: newInvoice
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
catch (e) { }
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,uDAAyE;AACzE,qFAA2F;AAC3F,uEAKyC;AACzC,+DAAqE;AACrE,iDAA8C;AA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MAAM,EAAE;gBACvD,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;gBAC/B,SAAS,EAAE;oBACT,+BAA+B;oBAC/B,oDAAoD;oBACpD,uCAAuC;iBACxC;aACF,CAAC,CAAA;YAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,yBAAyB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACzD,IAAI,wBAAwB,GAA6B,yBAAyB,CAAC,CAAC,CAAC,CAAA;gBACrF,IAAI,6BAA6B,GAC/B,wBAAwB,CAAC,6BAA6B,CAAA;gBAExD,IAAI,CAAC,CAAA,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAE,cAAc,CAAA,EAAE;oBAC7C,MAAM,IAAI,GAAS,IAAI,IAAI,EAAE,CAAA;oBAC7B,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,IAAI;yBACnG,OAAO,EAAE;yBACT,QAAQ,EAAE;yBACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;oBAErB,
|
|
1
|
+
{"version":3,"file":"add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,uDAAyE;AACzE,qFAA2F;AAC3F,uEAKyC;AACzC,+DAAqE;AACrE,iDAA8C;AAEjC,QAAA,uBAAuB,GAAG;IACrC,KAAK,CAAC,eAAe,CACnB,CAAO,EACP,EAAE,mBAAmB,EAAE,WAAW,EAAqD,EACvF,OAAY;QAEZ,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAEpD,MAAM,gBAAgB,GAAsB,MAAM,wCAAc,CAAC,oBAAoB,CAAC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CAAA;aACH;YAAC,OAAO,CAAC,EAAE,GAAE;SACf;IACH,CAAC;CACF,CAAA"}
|
|
@@ -31,6 +31,7 @@ exports.autoAddReleaseOrderResolver = {
|
|
|
31
31
|
const customerBizplaceId = customerBizplaces.find(customerBizplace => customerBizplace.company.domain.id === domain.id).id;
|
|
32
32
|
for (var i = 0; i < marketplaceOrders.length; i++) {
|
|
33
33
|
const marketplaceOrder = marketplaceOrders[i];
|
|
34
|
+
const marketplaceOrderItems = marketplaceOrder.marketplaceOrderItems;
|
|
34
35
|
const marketplaceOrderShippings = await (0, typeorm_1.getRepository)(marketplace_base_1.MarketplaceOrderShipping).find({
|
|
35
36
|
where: { orderNoRef: marketplaceOrder.orderNo, domain },
|
|
36
37
|
order: { subOrderNoRef: 'ASC' },
|
|
@@ -49,7 +50,7 @@ exports.autoAddReleaseOrderResolver = {
|
|
|
49
50
|
.getDate()
|
|
50
51
|
.toString()
|
|
51
52
|
.padStart(2, '0')}`;
|
|
52
|
-
|
|
53
|
+
var newReleaseOrder = {
|
|
53
54
|
releaseDate,
|
|
54
55
|
type: 'b2c',
|
|
55
56
|
transporter: marketplaceOrder.shippingProvider,
|
|
@@ -104,76 +105,76 @@ exports.autoAddReleaseOrderResolver = {
|
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
catch (e) { }
|
|
107
|
-
var invoiceProducts = await Promise.all(newReleaseOrder.orderInventories.map(async (oi) => {
|
|
108
|
-
let product = await (0, typeorm_1.getRepository)(product_base_1.Product).findOne({
|
|
109
|
-
where: { domain, sku: oi.product.sku }
|
|
110
|
-
});
|
|
111
|
-
if (!product) {
|
|
112
|
-
product = await (0, typeorm_1.getRepository)(product_base_1.ProductBundle).findOne({
|
|
113
|
-
where: { domain, sku: oi.product.sku }
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
let mosis = marketplaceOrderShippingItems.filter(mosi => mosi.product.sku === product.sku);
|
|
117
|
-
let moi = mosis[0].marketplaceOrderItem;
|
|
118
|
-
return {
|
|
119
|
-
sku: product.sku,
|
|
120
|
-
name: product.name,
|
|
121
|
-
description: product.description,
|
|
122
|
-
product: { sku: product.sku },
|
|
123
|
-
qty: oi.releaseQty,
|
|
124
|
-
unitPrice: ((moi === null || moi === void 0 ? void 0 : moi.originalPrice) || 0) / moi.qty,
|
|
125
|
-
paidPrice: ((moi === null || moi === void 0 ? void 0 : moi.paidPrice) || 0) / moi.qty
|
|
126
|
-
};
|
|
127
|
-
}));
|
|
128
|
-
let newInvoice = {
|
|
129
|
-
invoiceProducts,
|
|
130
|
-
releaseGood: { id: releaseOrder.id, name: releaseOrder.name },
|
|
131
|
-
refNo1: newReleaseOrder.refNo.toString(),
|
|
132
|
-
refNo2: newReleaseOrder.refNo2.toString(),
|
|
133
|
-
issuedOn: new Date(),
|
|
134
|
-
from: marketplaceOrder.marketplaceStore.storeName,
|
|
135
|
-
fromContactPhone: '-',
|
|
136
|
-
fromAddress1: '-',
|
|
137
|
-
fromAddress2: null,
|
|
138
|
-
fromAddress3: null,
|
|
139
|
-
fromAddress4: null,
|
|
140
|
-
fromAddress5: null,
|
|
141
|
-
fromPostcode: null,
|
|
142
|
-
fromCity: null,
|
|
143
|
-
fromState: null,
|
|
144
|
-
fromCountry: null,
|
|
145
|
-
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
146
|
-
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
147
|
-
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
148
|
-
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
149
|
-
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
150
|
-
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
151
|
-
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
152
|
-
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
153
|
-
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
154
|
-
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
155
|
-
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
156
|
-
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
157
|
-
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
158
|
-
billingAddress1: releaseOrder.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
159
|
-
billingAddress2: null,
|
|
160
|
-
billingAddress3: null,
|
|
161
|
-
billingAddress4: null,
|
|
162
|
-
billingAddress5: null,
|
|
163
|
-
billingPostcode: '-',
|
|
164
|
-
billingCity: '-',
|
|
165
|
-
billingState: '-',
|
|
166
|
-
billingCountry: '-'
|
|
167
|
-
};
|
|
168
|
-
try {
|
|
169
|
-
await integration_fulfillment_1.FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
170
|
-
customerBizplaceId,
|
|
171
|
-
invoice: newInvoice
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
catch (e) { }
|
|
175
108
|
}
|
|
176
109
|
}
|
|
110
|
+
var invoiceProducts = await Promise.all(marketplaceOrderItems.map(async (mi) => {
|
|
111
|
+
let product = await (0, typeorm_1.getRepository)(product_base_1.Product).findOne({
|
|
112
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
113
|
+
});
|
|
114
|
+
let productBundle;
|
|
115
|
+
if (!product) {
|
|
116
|
+
productBundle = await (0, typeorm_1.getRepository)(product_base_1.ProductBundle).findOne({
|
|
117
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
sku: product ? product.sku : productBundle.sku,
|
|
122
|
+
name: product ? product.name : productBundle.name,
|
|
123
|
+
description: product ? product.description : productBundle.description,
|
|
124
|
+
qty: mi.qty,
|
|
125
|
+
unitPrice: ((mi === null || mi === void 0 ? void 0 : mi.originalPrice) || 0) / mi.qty,
|
|
126
|
+
paidPrice: ((mi === null || mi === void 0 ? void 0 : mi.paidPrice) || 0) / mi.qty,
|
|
127
|
+
discount: (mi === null || mi === void 0 ? void 0 : mi.discount) || 0,
|
|
128
|
+
shippingFeePaidByCustomer: (mi === null || mi === void 0 ? void 0 : mi.shippingFeePaidByCustomer) || 0
|
|
129
|
+
};
|
|
130
|
+
}));
|
|
131
|
+
let newInvoice = {
|
|
132
|
+
invoiceProducts,
|
|
133
|
+
name: '-',
|
|
134
|
+
refNo1: newReleaseOrder.refNo.toString(),
|
|
135
|
+
refNo2: newReleaseOrder.refNo2.toString(),
|
|
136
|
+
issuedOn: new Date(),
|
|
137
|
+
from: marketplaceOrder.marketplaceStore.storeName,
|
|
138
|
+
fromContactPhone: '-',
|
|
139
|
+
fromAddress1: '-',
|
|
140
|
+
fromAddress2: null,
|
|
141
|
+
fromAddress3: null,
|
|
142
|
+
fromAddress4: null,
|
|
143
|
+
fromAddress5: null,
|
|
144
|
+
fromPostcode: null,
|
|
145
|
+
fromCity: null,
|
|
146
|
+
fromState: null,
|
|
147
|
+
fromCountry: null,
|
|
148
|
+
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
149
|
+
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
150
|
+
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
151
|
+
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
152
|
+
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
153
|
+
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
154
|
+
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
155
|
+
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
156
|
+
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
157
|
+
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
158
|
+
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
159
|
+
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
160
|
+
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
161
|
+
billingAddress1: newReleaseOrder.deliverTo.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
162
|
+
billingAddress2: null,
|
|
163
|
+
billingAddress3: null,
|
|
164
|
+
billingAddress4: null,
|
|
165
|
+
billingAddress5: null,
|
|
166
|
+
billingPostcode: '-',
|
|
167
|
+
billingCity: '-',
|
|
168
|
+
billingState: '-',
|
|
169
|
+
billingCountry: '-'
|
|
170
|
+
};
|
|
171
|
+
try {
|
|
172
|
+
await integration_fulfillment_1.FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
173
|
+
customerBizplaceId,
|
|
174
|
+
invoice: newInvoice
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
catch (e) { }
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAA+E;AAE/E,uDAAyE;AACzE,qFAAwE;AACxE,uEAKyC;AACzC,+DAAqE;AACrE,iDAA8C;AAEjC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,mBAAmB,CAAC,CAAO,EAAE,EAAE,WAAW,EAA2B,EAAE,OAAY;QACvF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAEpD,MAAM,EAAE,GAAyC,IAAA,4BAAkB,EAAC,mCAAgB,EAAE,IAAI,CAAC,CAAA;QAC3F,MAAM,iBAAiB,GAAuB,MAAM,EAAE;aACnD,iBAAiB,CAAC,0BAA0B,EAAE,KAAK,CAAC;aACpD,iBAAiB,CAAC,mCAAmC,EAAE,MAAM,CAAC;aAC9D,iBAAiB,CAAC,+BA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AAK,EAAE,EAAE,UAAU,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE;gBACvD,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;gBAC/B,SAAS,EAAE;oBACT,+BAA+B;oBAC/B,oDAAoD;oBACpD,uCAAuC;iBACxC;aACF,CAAC,CAAA;YAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,yBAAyB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACzD,IAAI,wBAAwB,GAA6B,yBAAyB,CAAC,CAAC,CAAC,CAAA;gBACrF,IAAI,6BAA6B,GAC/B,wBAAwB,CAAC,6BAA6B,CAAA;gBAExD,IAAI,CAAC,CAAA,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAE,cAAc,CAAA,EAAE;oBAC7C,MAAM,IAAI,GAAS,IAAI,IAAI,EAAE,CAAA;oBAC7B,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,IAAI;yBACnG,OAAO,EAAE;yBACT,QAAQ,EAAE;yBACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;oBAErB,
|
|
1
|
+
{"version":3,"file":"auto-add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAA+E;AAE/E,uDAAyE;AACzE,qFAAwE;AACxE,uEAKyC;AACzC,+DAAqE;AACrE,iDAA8C;AAEjC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,mBAAmB,CAAC,CAAO,EAAE,EAAE,WAAW,EAA2B,EAAE,OAAY;QACvF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAEpD,MAAM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AAC,WAAW,IAAI,GAAG;gBACpD,WAAW,EAAE,eAAe,CAAC,SAAS,CAAC,MAAM,IAAI,GAAG;gBACpD,eAAe,EAAE,eAAe,CAAC,SAAS,CAAC,cAAc,IAAI,eAAe,CAAC,SAAS,CAAC,gBAAgB,IAAI,GAAG;gBAC9G,eAAe,EAAE,IAAI;gBACrB,eAAe,EAAE,IAAI;gBACrB,eAAe,EAAE,IAAI;gBACrB,eAAe,EAAE,IAAI;gBACrB,eAAe,EAAE,GAAG;gBACpB,WAAW,EAAE,GAAG;gBAChB,YAAY,EAAE,GAAG;gBACjB,cAAc,EAAE,GAAG;aACpB,CAAA;YAED,IAAI;gBACF,MAAM,wCAAc,CAAC,kBAAkB,CAAC,gBAAgB,EAAE;oBACxD,kBAAkB;oBAClB,OAAO,EAAE,UAAU;iBACpB,CAAC,CAAA;aACH;YAAC,OAAO,CAAC,EAAE,GAAE;SACf;IACH,CAAC;CACF,CAAA"}
|
|
@@ -71,21 +71,21 @@ exports.etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
71
71
|
]
|
|
72
72
|
});
|
|
73
73
|
let orderItems = order.marketplaceOrderItems;
|
|
74
|
+
const marketplaceStore = order.marketplaceStore;
|
|
75
|
+
const marketplaceTransporter = await (0, typeorm_1.getRepository)(integration_marketplace_1.MarketplaceTransporter).findOne({
|
|
76
|
+
where: { marketplaceStore },
|
|
77
|
+
relations: ['pickupTransporter']
|
|
78
|
+
});
|
|
74
79
|
for (const orderItem of orderItems) {
|
|
75
80
|
if (orderItem.marketplaceOrderShippingItems[0].marketplaceOrderShipping !== null) {
|
|
76
81
|
const orderShippingItems = orderItem.marketplaceOrderShippingItems;
|
|
77
82
|
const orderShipping = orderShippingItems[0].marketplaceOrderShipping;
|
|
78
83
|
const fulfillmentCenter = orderShipping === null || orderShipping === void 0 ? void 0 : orderShipping.fulfillmentCenter;
|
|
79
|
-
const marketplaceStore = order.marketplaceStore;
|
|
80
84
|
const currentDate = new Date();
|
|
81
85
|
const centerId = fulfillmentCenter.centerId;
|
|
82
86
|
const warehouseDomain = await (0, typeorm_1.getRepository)(shell_1.Domain).findOne({ where: { subdomain: centerId } });
|
|
83
87
|
const customerBizplaces = await (0, biz_base_1.getCustomerBizplaces)(warehouseDomain);
|
|
84
88
|
const customerBizplaceId = customerBizplaces.find(customerBizplace => customerBizplace.company.domain.id == (order === null || order === void 0 ? void 0 : order.domain.id)).id;
|
|
85
|
-
const marketplaceTransporter = await (0, typeorm_1.getRepository)(integration_marketplace_1.MarketplaceTransporter).findOne({
|
|
86
|
-
where: { marketplaceStore },
|
|
87
|
-
relations: ['pickupTransporter']
|
|
88
|
-
});
|
|
89
89
|
let patch = {
|
|
90
90
|
id: orderShipping.releaseOrderId,
|
|
91
91
|
trackingNo: trackingNo,
|
|
@@ -96,11 +96,9 @@ exports.etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
96
96
|
releaseOrder: Object.assign({}, patch),
|
|
97
97
|
shippingOrder: null
|
|
98
98
|
});
|
|
99
|
-
await orderShippingRepo.update({ id: orderShipping.id }, { trackingNo: trackingNo, airwayBill: awbUrl, updatedAt: currentDate });
|
|
99
|
+
await orderShippingRepo.update({ id: orderShipping.id }, { trackingNo: trackingNo, airwayBill: awbUrl, updatedAt: currentDate, transporter: (marketplaceTransporter === null || marketplaceTransporter === void 0 ? void 0 : marketplaceTransporter.pickupTransporter.name) || orderShipping.transporter });
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const storeId = order.marketplaceStore.id;
|
|
103
|
-
const marketplaceStore = await integration_marketplace_1.StoreAPI.getMarketplaceStore(storeId);
|
|
104
102
|
// to-do update tracking no to every marketplaces
|
|
105
103
|
if (marketplaceStore.platform === 'woocommerce' || marketplaceStore.platform === 'shopify') {
|
|
106
104
|
const note = 'http://ets.sntglobal.com/?mod=tracking&action=index&orders=' + trackingNo;
|
|
@@ -115,7 +113,8 @@ exports.etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
115
113
|
trackingUrl: note,
|
|
116
114
|
trackingNo,
|
|
117
115
|
order: orderInfo,
|
|
118
|
-
note
|
|
116
|
+
note,
|
|
117
|
+
transporter: marketplaceTransporter === null || marketplaceTransporter === void 0 ? void 0 : marketplaceTransporter.pickupTransporter.name
|
|
119
118
|
});
|
|
120
119
|
if (marketplaceStore.platform === 'woocommerce') {
|
|
121
120
|
await integration_marketplace_1.StoreAPI.updateOrderStatus(marketplaceStore, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etrax-router.js","sourceRoot":"","sources":["../../server/routers/etrax-router.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAC/B,qCAAuC;AAEvC,uDAAyE;AACzE,qFAA2F;AAC3F,qEAAyE;AACzE,qFAA4G;AAC5G,uEAKyC;AACzC,iDAA8C;AAE9C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,4BAA4B,CAAC,CAAA;AAC/C,QAAA,WAAW,GAAG,IAAI,oBAAM,EAAE,CAAA;AAEvC,mBAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnE,MAAM,IAAI,GAAG,IAAA,uBAAa,EAAC,kCAAgB,CAAC,CAAA;IAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;IACxC,KAAK,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAA;IAE/C,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAA;IACnC,MAAM,aAAa,GAAG,WAAW,CAAC,SAAS,CAAA;IAC3C,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAA;IACzC,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAA;IACzC,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAA;IACzC,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAA;IACjC,MAAM,MAAM,GA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index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,69 +41,69 @@
|
|
|
41
41
|
"@material/mwc-formfield": "^0.25.3",
|
|
42
42
|
"@material/mwc-linear-progress": "^0.25.3",
|
|
43
43
|
"@material/mwc-radio": "^0.25.3",
|
|
44
|
-
"@operato/ghost-print": "
|
|
45
|
-
"@operato/scene-chartjs": "^0.
|
|
46
|
-
"@operato/scene-clock": "^0.
|
|
47
|
-
"@operato/scene-clone": "^0.
|
|
48
|
-
"@operato/scene-compass": "^0.
|
|
49
|
-
"@operato/scene-gauge": "^0.
|
|
50
|
-
"@operato/scene-grist": "^0.
|
|
51
|
-
"@operato/scene-half-roundrect": "^0.
|
|
52
|
-
"@operato/scene-indoor-map": "^0.
|
|
53
|
-
"@operato/scene-integration": "^0.
|
|
54
|
-
"@operato/scene-legend": "^0.
|
|
55
|
-
"@operato/scene-news-ticker": "^0.
|
|
56
|
-
"@operato/scene-progressbar": "^0.
|
|
57
|
-
"@operato/scene-random": "^0.
|
|
58
|
-
"@operato/scene-switch": "^0.
|
|
59
|
-
"@operato/scene-tab": "^0.
|
|
60
|
-
"@operato/scene-table": "^0.
|
|
61
|
-
"@operato/scene-timer": "^0.
|
|
62
|
-
"@operato/scene-wheel-sorter": "^0.
|
|
63
|
-
"@things-factory/apptool-ui": "^5.0.0-alpha.
|
|
64
|
-
"@things-factory/attachment-base": "^5.0.0-alpha.
|
|
65
|
-
"@things-factory/auth-ui": "^5.0.0-alpha.
|
|
66
|
-
"@things-factory/biz-base": "^5.0.0-alpha.
|
|
67
|
-
"@things-factory/board-service": "^5.0.0-alpha.
|
|
68
|
-
"@things-factory/board-ui": "^5.0.0-alpha.
|
|
69
|
-
"@things-factory/code-ui": "^5.0.0-alpha.
|
|
70
|
-
"@things-factory/context-ui": "^5.0.0-alpha.
|
|
71
|
-
"@things-factory/dashboard": "^5.0.0-alpha.
|
|
72
|
-
"@things-factory/export-ui": "^5.0.0-alpha.
|
|
73
|
-
"@things-factory/export-ui-csv": "^5.0.0-alpha.
|
|
74
|
-
"@things-factory/export-ui-excel": "^5.0.0-alpha.
|
|
75
|
-
"@things-factory/geography": "^5.0.0-alpha.
|
|
76
|
-
"@things-factory/grist-ui": "^5.0.0-alpha.
|
|
77
|
-
"@things-factory/help": "^5.0.0-alpha.
|
|
78
|
-
"@things-factory/i18n-base": "^5.0.0-alpha.
|
|
79
|
-
"@things-factory/integration-fulfillment": "^5.0.0-alpha.
|
|
80
|
-
"@things-factory/integration-lmd": "^5.0.0-alpha.
|
|
81
|
-
"@things-factory/lite-menu": "^5.0.0-alpha.
|
|
82
|
-
"@things-factory/marketplace-base": "^5.0.0-alpha.
|
|
83
|
-
"@things-factory/more-ui": "^5.0.0-alpha.
|
|
84
|
-
"@things-factory/notification": "^5.0.0-alpha.
|
|
85
|
-
"@things-factory/oauth2-client": "^5.0.0-alpha.
|
|
86
|
-
"@things-factory/pdf": "^5.0.0-alpha.
|
|
87
|
-
"@things-factory/product-base": "^5.0.0-alpha.
|
|
88
|
-
"@things-factory/resource-ui": "^5.0.0-alpha.
|
|
89
|
-
"@things-factory/scene-data-transform": "^5.0.0-alpha.
|
|
90
|
-
"@things-factory/scene-excel": "^5.0.0-alpha.
|
|
91
|
-
"@things-factory/scene-firebase": "^5.0.0-alpha.
|
|
92
|
-
"@things-factory/scene-form": "^5.0.0-alpha.
|
|
93
|
-
"@things-factory/scene-google-map": "^5.0.0-alpha.
|
|
94
|
-
"@things-factory/scene-graphql": "^5.0.0-alpha.
|
|
95
|
-
"@things-factory/scene-label": "^5.0.0-alpha.
|
|
96
|
-
"@things-factory/scene-marker": "^5.0.0-alpha.
|
|
97
|
-
"@things-factory/scene-mqtt": "^5.0.0-alpha.
|
|
98
|
-
"@things-factory/scene-restful": "^5.0.0-alpha.
|
|
99
|
-
"@things-factory/scene-visualizer": "^5.0.0-alpha.
|
|
100
|
-
"@things-factory/setting-ui": "^5.0.0-alpha.
|
|
101
|
-
"@things-factory/system-ui": "^5.0.0-alpha.
|
|
102
|
-
"@things-factory/warehouse-base": "^5.0.0-alpha.
|
|
44
|
+
"@operato/ghost-print": "1.0.0-alpha.45",
|
|
45
|
+
"@operato/scene-chartjs": "^1.0.0-alpha.4",
|
|
46
|
+
"@operato/scene-clock": "^1.0.0-alpha.4",
|
|
47
|
+
"@operato/scene-clone": "^1.0.0-alpha.4",
|
|
48
|
+
"@operato/scene-compass": "^1.0.0-alpha.4",
|
|
49
|
+
"@operato/scene-gauge": "^1.0.0-alpha.4",
|
|
50
|
+
"@operato/scene-grist": "^1.0.0-alpha.4",
|
|
51
|
+
"@operato/scene-half-roundrect": "^1.0.0-alpha.4",
|
|
52
|
+
"@operato/scene-indoor-map": "^1.0.0-alpha.4",
|
|
53
|
+
"@operato/scene-integration": "^1.0.0-alpha.4",
|
|
54
|
+
"@operato/scene-legend": "^1.0.0-alpha.4",
|
|
55
|
+
"@operato/scene-news-ticker": "^1.0.0-alpha.4",
|
|
56
|
+
"@operato/scene-progressbar": "^1.0.0-alpha.4",
|
|
57
|
+
"@operato/scene-random": "^1.0.0-alpha.4",
|
|
58
|
+
"@operato/scene-switch": "^1.0.0-alpha.4",
|
|
59
|
+
"@operato/scene-tab": "^1.0.0-alpha.4",
|
|
60
|
+
"@operato/scene-table": "^1.0.0-alpha.4",
|
|
61
|
+
"@operato/scene-timer": "^1.0.0-alpha.4",
|
|
62
|
+
"@operato/scene-wheel-sorter": "^1.0.0-alpha.4",
|
|
63
|
+
"@things-factory/apptool-ui": "^5.0.0-alpha.22",
|
|
64
|
+
"@things-factory/attachment-base": "^5.0.0-alpha.22",
|
|
65
|
+
"@things-factory/auth-ui": "^5.0.0-alpha.22",
|
|
66
|
+
"@things-factory/biz-base": "^5.0.0-alpha.22",
|
|
67
|
+
"@things-factory/board-service": "^5.0.0-alpha.22",
|
|
68
|
+
"@things-factory/board-ui": "^5.0.0-alpha.22",
|
|
69
|
+
"@things-factory/code-ui": "^5.0.0-alpha.22",
|
|
70
|
+
"@things-factory/context-ui": "^5.0.0-alpha.22",
|
|
71
|
+
"@things-factory/dashboard": "^5.0.0-alpha.22",
|
|
72
|
+
"@things-factory/export-ui": "^5.0.0-alpha.22",
|
|
73
|
+
"@things-factory/export-ui-csv": "^5.0.0-alpha.22",
|
|
74
|
+
"@things-factory/export-ui-excel": "^5.0.0-alpha.22",
|
|
75
|
+
"@things-factory/geography": "^5.0.0-alpha.22",
|
|
76
|
+
"@things-factory/grist-ui": "^5.0.0-alpha.22",
|
|
77
|
+
"@things-factory/help": "^5.0.0-alpha.22",
|
|
78
|
+
"@things-factory/i18n-base": "^5.0.0-alpha.22",
|
|
79
|
+
"@things-factory/integration-fulfillment": "^5.0.0-alpha.22",
|
|
80
|
+
"@things-factory/integration-lmd": "^5.0.0-alpha.22",
|
|
81
|
+
"@things-factory/lite-menu": "^5.0.0-alpha.22",
|
|
82
|
+
"@things-factory/marketplace-base": "^5.0.0-alpha.22",
|
|
83
|
+
"@things-factory/more-ui": "^5.0.0-alpha.22",
|
|
84
|
+
"@things-factory/notification": "^5.0.0-alpha.22",
|
|
85
|
+
"@things-factory/oauth2-client": "^5.0.0-alpha.22",
|
|
86
|
+
"@things-factory/pdf": "^5.0.0-alpha.22",
|
|
87
|
+
"@things-factory/product-base": "^5.0.0-alpha.22",
|
|
88
|
+
"@things-factory/resource-ui": "^5.0.0-alpha.22",
|
|
89
|
+
"@things-factory/scene-data-transform": "^5.0.0-alpha.22",
|
|
90
|
+
"@things-factory/scene-excel": "^5.0.0-alpha.22",
|
|
91
|
+
"@things-factory/scene-firebase": "^5.0.0-alpha.22",
|
|
92
|
+
"@things-factory/scene-form": "^5.0.0-alpha.22",
|
|
93
|
+
"@things-factory/scene-google-map": "^5.0.0-alpha.22",
|
|
94
|
+
"@things-factory/scene-graphql": "^5.0.0-alpha.22",
|
|
95
|
+
"@things-factory/scene-label": "^5.0.0-alpha.22",
|
|
96
|
+
"@things-factory/scene-marker": "^5.0.0-alpha.22",
|
|
97
|
+
"@things-factory/scene-mqtt": "^5.0.0-alpha.22",
|
|
98
|
+
"@things-factory/scene-restful": "^5.0.0-alpha.22",
|
|
99
|
+
"@things-factory/scene-visualizer": "^5.0.0-alpha.22",
|
|
100
|
+
"@things-factory/setting-ui": "^5.0.0-alpha.22",
|
|
101
|
+
"@things-factory/system-ui": "^5.0.0-alpha.22",
|
|
102
|
+
"@things-factory/warehouse-base": "^5.0.0-alpha.22"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@things-factory/builder": "^5.0.0-alpha.
|
|
105
|
+
"@things-factory/builder": "^5.0.0-alpha.22",
|
|
106
106
|
"@types/node-fetch": "^2.5.7"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8e06de9c59237f1800b2ff4f1c53162a0228342a"
|
|
109
109
|
}
|
|
@@ -42,6 +42,8 @@ export const addReleaseOrderResolver = {
|
|
|
42
42
|
]
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
+
const marketplaceOrderItems: MarketplaceOrderItem[] = marketplaceOrder.marketplaceOrderItems
|
|
46
|
+
|
|
45
47
|
let marketplaceOrderShippings: MarketplaceOrderShipping[] = await getRepository(MarketplaceOrderShipping).find({
|
|
46
48
|
where: { orderNoRef: marketplaceOrder.orderNo, domain },
|
|
47
49
|
order: { subOrderNoRef: 'ASC' },
|
|
@@ -64,7 +66,7 @@ export const addReleaseOrderResolver = {
|
|
|
64
66
|
.toString()
|
|
65
67
|
.padStart(2, '0')}`
|
|
66
68
|
|
|
67
|
-
|
|
69
|
+
var newReleaseOrder: any = {
|
|
68
70
|
releaseDate,
|
|
69
71
|
type: 'b2c',
|
|
70
72
|
transporter: marketplaceOrder.shippingProvider,
|
|
@@ -122,86 +124,82 @@ export const addReleaseOrderResolver = {
|
|
|
122
124
|
await getRepository(MarketplaceOrder).save(marketplaceOrder)
|
|
123
125
|
}
|
|
124
126
|
} catch (e) {}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
125
129
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (!product) {
|
|
133
|
-
product = await getRepository(ProductBundle).findOne({
|
|
134
|
-
where: { domain, sku: oi.product.sku }
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
let mosis: MarketplaceOrderShippingItem[] = marketplaceOrderShippingItems.filter(
|
|
139
|
-
mosi => mosi.product.sku === product.sku
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
let moi: MarketplaceOrderItem = mosis[0].marketplaceOrderItem
|
|
130
|
+
var invoiceProducts = await Promise.all(
|
|
131
|
+
marketplaceOrderItems.map(async mi => {
|
|
132
|
+
let product: Product = await getRepository(Product).findOne({
|
|
133
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
134
|
+
})
|
|
143
135
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
product: { sku: product.sku },
|
|
149
|
-
qty: oi.releaseQty,
|
|
150
|
-
unitPrice: (moi?.originalPrice || 0) / moi.qty,
|
|
151
|
-
paidPrice: (moi?.paidPrice || 0) / moi.qty
|
|
152
|
-
}
|
|
136
|
+
let productBundle: ProductBundle
|
|
137
|
+
if (!product) {
|
|
138
|
+
productBundle = await getRepository(ProductBundle).findOne({
|
|
139
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
153
140
|
})
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
let newInvoice = {
|
|
157
|
-
invoiceProducts,
|
|
158
|
-
releaseGood: { id: releaseOrder.id, name: releaseOrder.name },
|
|
159
|
-
refNo1: newReleaseOrder.refNo.toString(),
|
|
160
|
-
refNo2: newReleaseOrder.refNo2.toString(),
|
|
161
|
-
issuedOn: new Date(),
|
|
162
|
-
from: marketplaceOrder.marketplaceStore.storeName,
|
|
163
|
-
fromContactPhone: '-',
|
|
164
|
-
fromAddress1: '-',
|
|
165
|
-
fromAddress2: null,
|
|
166
|
-
fromAddress3: null,
|
|
167
|
-
fromAddress4: null,
|
|
168
|
-
fromAddress5: null,
|
|
169
|
-
fromPostcode: null,
|
|
170
|
-
fromCity: null,
|
|
171
|
-
fromState: null,
|
|
172
|
-
fromCountry: null,
|
|
173
|
-
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
174
|
-
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
175
|
-
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
176
|
-
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
177
|
-
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
178
|
-
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
179
|
-
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
180
|
-
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
181
|
-
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
182
|
-
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
183
|
-
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
184
|
-
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
185
|
-
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
186
|
-
billingAddress1: releaseOrder.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
187
|
-
billingAddress2: null,
|
|
188
|
-
billingAddress3: null,
|
|
189
|
-
billingAddress4: null,
|
|
190
|
-
billingAddress5: null,
|
|
191
|
-
billingPostcode: '-',
|
|
192
|
-
billingCity: '-',
|
|
193
|
-
billingState: '-',
|
|
194
|
-
billingCountry: '-'
|
|
195
141
|
}
|
|
196
142
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
143
|
+
return {
|
|
144
|
+
sku: product ? product.sku : productBundle.sku,
|
|
145
|
+
name: product ? product.name : productBundle.name,
|
|
146
|
+
description: product ? product.description : productBundle.description,
|
|
147
|
+
qty: mi.qty,
|
|
148
|
+
unitPrice: (mi?.originalPrice || 0) / mi.qty,
|
|
149
|
+
paidPrice: (mi?.paidPrice || 0) / mi.qty,
|
|
150
|
+
discount: mi?.discount || 0,
|
|
151
|
+
shippingFeePaidByCustomer: mi?.shippingFeePaidByCustomer || 0
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
let newInvoice = {
|
|
157
|
+
invoiceProducts,
|
|
158
|
+
name: '-',
|
|
159
|
+
refNo1: newReleaseOrder.refNo.toString(),
|
|
160
|
+
refNo2: newReleaseOrder.refNo2.toString(),
|
|
161
|
+
issuedOn: new Date(),
|
|
162
|
+
from: marketplaceOrder.marketplaceStore.storeName,
|
|
163
|
+
fromContactPhone: '-',
|
|
164
|
+
fromAddress1: '-',
|
|
165
|
+
fromAddress2: null,
|
|
166
|
+
fromAddress3: null,
|
|
167
|
+
fromAddress4: null,
|
|
168
|
+
fromAddress5: null,
|
|
169
|
+
fromPostcode: null,
|
|
170
|
+
fromCity: null,
|
|
171
|
+
fromState: null,
|
|
172
|
+
fromCountry: null,
|
|
173
|
+
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
174
|
+
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
175
|
+
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
176
|
+
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
177
|
+
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
178
|
+
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
179
|
+
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
180
|
+
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
181
|
+
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
182
|
+
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
183
|
+
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
184
|
+
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
185
|
+
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
186
|
+
billingAddress1: newReleaseOrder.deliverTo.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
187
|
+
billingAddress2: null,
|
|
188
|
+
billingAddress3: null,
|
|
189
|
+
billingAddress4: null,
|
|
190
|
+
billingAddress5: null,
|
|
191
|
+
billingPostcode: '-',
|
|
192
|
+
billingCity: '-',
|
|
193
|
+
billingState: '-',
|
|
194
|
+
billingCountry: '-'
|
|
204
195
|
}
|
|
196
|
+
|
|
197
|
+
try {
|
|
198
|
+
await FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
199
|
+
customerBizplaceId,
|
|
200
|
+
invoice: newInvoice
|
|
201
|
+
})
|
|
202
|
+
} catch (e) {}
|
|
205
203
|
}
|
|
206
204
|
}
|
|
207
205
|
}
|
|
@@ -42,6 +42,8 @@ export const autoAddReleaseOrderResolver = {
|
|
|
42
42
|
for (var i = 0; i < marketplaceOrders.length; i++) {
|
|
43
43
|
const marketplaceOrder = marketplaceOrders[i]
|
|
44
44
|
|
|
45
|
+
const marketplaceOrderItems: MarketplaceOrderItem[] = marketplaceOrder.marketplaceOrderItems
|
|
46
|
+
|
|
45
47
|
const marketplaceOrderShippings: MarketplaceOrderShipping[] = await getRepository(MarketplaceOrderShipping).find({
|
|
46
48
|
where: { orderNoRef: marketplaceOrder.orderNo, domain },
|
|
47
49
|
order: { subOrderNoRef: 'ASC' },
|
|
@@ -64,7 +66,7 @@ export const autoAddReleaseOrderResolver = {
|
|
|
64
66
|
.toString()
|
|
65
67
|
.padStart(2, '0')}`
|
|
66
68
|
|
|
67
|
-
|
|
69
|
+
var newReleaseOrder: any = {
|
|
68
70
|
releaseDate,
|
|
69
71
|
type: 'b2c',
|
|
70
72
|
transporter: marketplaceOrder.shippingProvider,
|
|
@@ -122,86 +124,82 @@ export const autoAddReleaseOrderResolver = {
|
|
|
122
124
|
await getRepository(MarketplaceOrder).save(marketplaceOrder)
|
|
123
125
|
}
|
|
124
126
|
} catch (e) {}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
125
129
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (!product) {
|
|
133
|
-
product = await getRepository(ProductBundle).findOne({
|
|
134
|
-
where: { domain, sku: oi.product.sku }
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
let mosis: MarketplaceOrderShippingItem[] = marketplaceOrderShippingItems.filter(
|
|
139
|
-
mosi => mosi.product.sku === product.sku
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
let moi: MarketplaceOrderItem = mosis[0].marketplaceOrderItem
|
|
130
|
+
var invoiceProducts = await Promise.all(
|
|
131
|
+
marketplaceOrderItems.map(async mi => {
|
|
132
|
+
let product: Product = await getRepository(Product).findOne({
|
|
133
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
134
|
+
})
|
|
143
135
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
product: { sku: product.sku },
|
|
149
|
-
qty: oi.releaseQty,
|
|
150
|
-
unitPrice: (moi?.originalPrice || 0) / moi.qty,
|
|
151
|
-
paidPrice: (moi?.paidPrice || 0) / moi.qty
|
|
152
|
-
}
|
|
136
|
+
let productBundle: ProductBundle
|
|
137
|
+
if (!product) {
|
|
138
|
+
productBundle = await getRepository(ProductBundle).findOne({
|
|
139
|
+
where: { domain, sku: mi.marketplaceProductVariation.sku }
|
|
153
140
|
})
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
let newInvoice = {
|
|
157
|
-
invoiceProducts,
|
|
158
|
-
releaseGood: { id: releaseOrder.id, name: releaseOrder.name },
|
|
159
|
-
refNo1: newReleaseOrder.refNo.toString(),
|
|
160
|
-
refNo2: newReleaseOrder.refNo2.toString(),
|
|
161
|
-
issuedOn: new Date(),
|
|
162
|
-
from: marketplaceOrder.marketplaceStore.storeName,
|
|
163
|
-
fromContactPhone: '-',
|
|
164
|
-
fromAddress1: '-',
|
|
165
|
-
fromAddress2: null,
|
|
166
|
-
fromAddress3: null,
|
|
167
|
-
fromAddress4: null,
|
|
168
|
-
fromAddress5: null,
|
|
169
|
-
fromPostcode: null,
|
|
170
|
-
fromCity: null,
|
|
171
|
-
fromState: null,
|
|
172
|
-
fromCountry: null,
|
|
173
|
-
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
174
|
-
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
175
|
-
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
176
|
-
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
177
|
-
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
178
|
-
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
179
|
-
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
180
|
-
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
181
|
-
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
182
|
-
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
183
|
-
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
184
|
-
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
185
|
-
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
186
|
-
billingAddress1: releaseOrder.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
187
|
-
billingAddress2: null,
|
|
188
|
-
billingAddress3: null,
|
|
189
|
-
billingAddress4: null,
|
|
190
|
-
billingAddress5: null,
|
|
191
|
-
billingPostcode: '-',
|
|
192
|
-
billingCity: '-',
|
|
193
|
-
billingState: '-',
|
|
194
|
-
billingCountry: '-'
|
|
195
141
|
}
|
|
196
142
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
143
|
+
return {
|
|
144
|
+
sku: product ? product.sku : productBundle.sku,
|
|
145
|
+
name: product ? product.name : productBundle.name,
|
|
146
|
+
description: product ? product.description : productBundle.description,
|
|
147
|
+
qty: mi.qty,
|
|
148
|
+
unitPrice: (mi?.originalPrice || 0) / mi.qty,
|
|
149
|
+
paidPrice: (mi?.paidPrice || 0) / mi.qty,
|
|
150
|
+
discount: mi?.discount || 0,
|
|
151
|
+
shippingFeePaidByCustomer: mi?.shippingFeePaidByCustomer || 0
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
let newInvoice = {
|
|
157
|
+
invoiceProducts,
|
|
158
|
+
name: '-',
|
|
159
|
+
refNo1: newReleaseOrder.refNo.toString(),
|
|
160
|
+
refNo2: newReleaseOrder.refNo2.toString(),
|
|
161
|
+
issuedOn: new Date(),
|
|
162
|
+
from: marketplaceOrder.marketplaceStore.storeName,
|
|
163
|
+
fromContactPhone: '-',
|
|
164
|
+
fromAddress1: '-',
|
|
165
|
+
fromAddress2: null,
|
|
166
|
+
fromAddress3: null,
|
|
167
|
+
fromAddress4: null,
|
|
168
|
+
fromAddress5: null,
|
|
169
|
+
fromPostcode: null,
|
|
170
|
+
fromCity: null,
|
|
171
|
+
fromState: null,
|
|
172
|
+
fromCountry: null,
|
|
173
|
+
deliverTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
174
|
+
deliverToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
175
|
+
deliveryAddress1: newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
176
|
+
deliveryAddress2: newReleaseOrder.deliverTo.deliveryAddress2,
|
|
177
|
+
deliveryAddress3: newReleaseOrder.deliverTo.deliveryAddress3,
|
|
178
|
+
deliveryAddress4: newReleaseOrder.deliverTo.deliveryAddress4,
|
|
179
|
+
deliveryAddress5: newReleaseOrder.deliverTo.deliveryAddress5,
|
|
180
|
+
deliveryPostcode: newReleaseOrder.deliverTo.postalCode || '-',
|
|
181
|
+
deliveryCity: newReleaseOrder.deliverTo.city || '-',
|
|
182
|
+
deliveryState: newReleaseOrder.deliverTo.state || '-',
|
|
183
|
+
deliveryCountry: newReleaseOrder.deliverTo.country || '-',
|
|
184
|
+
billTo: newReleaseOrder.deliverTo.attentionTo || '-',
|
|
185
|
+
billToPhone: newReleaseOrder.deliverTo.phone1 || '-',
|
|
186
|
+
billingAddress1: newReleaseOrder.deliverTo.billingAddress || newReleaseOrder.deliverTo.deliveryAddress1 || '-',
|
|
187
|
+
billingAddress2: null,
|
|
188
|
+
billingAddress3: null,
|
|
189
|
+
billingAddress4: null,
|
|
190
|
+
billingAddress5: null,
|
|
191
|
+
billingPostcode: '-',
|
|
192
|
+
billingCity: '-',
|
|
193
|
+
billingState: '-',
|
|
194
|
+
billingCountry: '-'
|
|
204
195
|
}
|
|
196
|
+
|
|
197
|
+
try {
|
|
198
|
+
await FulfillmentAPI.createSalesInvoice(fulfilmentCenter, {
|
|
199
|
+
customerBizplaceId,
|
|
200
|
+
invoice: newInvoice
|
|
201
|
+
})
|
|
202
|
+
} catch (e) {}
|
|
205
203
|
}
|
|
206
204
|
}
|
|
207
205
|
}
|
|
@@ -82,12 +82,18 @@ etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
82
82
|
})
|
|
83
83
|
let orderItems: MarketplaceOrderItem[] = order.marketplaceOrderItems
|
|
84
84
|
|
|
85
|
+
const marketplaceStore: MarketplaceStore = order.marketplaceStore
|
|
86
|
+
|
|
87
|
+
const marketplaceTransporter: MarketplaceTransporter = await getRepository(MarketplaceTransporter).findOne({
|
|
88
|
+
where: { marketplaceStore },
|
|
89
|
+
relations: ['pickupTransporter']
|
|
90
|
+
})
|
|
91
|
+
|
|
85
92
|
for (const orderItem of orderItems) {
|
|
86
93
|
if (orderItem.marketplaceOrderShippingItems[0].marketplaceOrderShipping !== null) {
|
|
87
94
|
const orderShippingItems: MarketplaceOrderShippingItem[] = orderItem.marketplaceOrderShippingItems
|
|
88
95
|
const orderShipping: MarketplaceOrderShipping = orderShippingItems[0].marketplaceOrderShipping
|
|
89
96
|
const fulfillmentCenter: FulfillmentCenter = orderShipping?.fulfillmentCenter
|
|
90
|
-
const marketplaceStore: MarketplaceStore = order.marketplaceStore
|
|
91
97
|
|
|
92
98
|
const currentDate: Date = new Date()
|
|
93
99
|
|
|
@@ -98,11 +104,6 @@ etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
98
104
|
customerBizplace => customerBizplace.company.domain.id == order?.domain.id
|
|
99
105
|
).id
|
|
100
106
|
|
|
101
|
-
const marketplaceTransporter: MarketplaceTransporter = await getRepository(MarketplaceTransporter).findOne({
|
|
102
|
-
where: { marketplaceStore },
|
|
103
|
-
relations: ['pickupTransporter']
|
|
104
|
-
})
|
|
105
|
-
|
|
106
107
|
let patch = {
|
|
107
108
|
id: orderShipping.releaseOrderId,
|
|
108
109
|
trackingNo: trackingNo,
|
|
@@ -117,14 +118,11 @@ etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
117
118
|
|
|
118
119
|
await orderShippingRepo.update(
|
|
119
120
|
{ id: orderShipping.id },
|
|
120
|
-
{ trackingNo: trackingNo, airwayBill: awbUrl, updatedAt: currentDate }
|
|
121
|
+
{ trackingNo: trackingNo, airwayBill: awbUrl, updatedAt: currentDate, transporter: marketplaceTransporter?.pickupTransporter.name || orderShipping.transporter }
|
|
121
122
|
)
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
const storeId = order.marketplaceStore.id
|
|
126
|
-
const marketplaceStore: MarketplaceStore = await StoreAPI.getMarketplaceStore(storeId)
|
|
127
|
-
|
|
128
126
|
// to-do update tracking no to every marketplaces
|
|
129
127
|
if (marketplaceStore.platform === 'woocommerce' || marketplaceStore.platform === 'shopify') {
|
|
130
128
|
const note = 'http://ets.sntglobal.com/?mod=tracking&action=index&orders=' + trackingNo
|
|
@@ -139,7 +137,8 @@ etraxRouter.post(`/lmd/etrax/status_update`, async (context, next) => {
|
|
|
139
137
|
trackingUrl: note,
|
|
140
138
|
trackingNo,
|
|
141
139
|
order: orderInfo,
|
|
142
|
-
note
|
|
140
|
+
note,
|
|
141
|
+
transporter: marketplaceTransporter?.pickupTransporter.name
|
|
143
142
|
})
|
|
144
143
|
|
|
145
144
|
if (marketplaceStore.platform === 'woocommerce') {
|
package/translations/en.json
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"field.required_branch": "required branch",
|
|
115
115
|
"field.required_sender": "required sender",
|
|
116
116
|
"field.required_tracking": "required tracking",
|
|
117
|
+
"field.reserve_enabled": "reserve enabled",
|
|
117
118
|
"field.reserve_qty": "reserve qty",
|
|
118
119
|
"field.ro_created": "ro created",
|
|
119
120
|
"field.save": "save",
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
"field.town": "town",
|
|
146
147
|
"field.tracking_no": "tracking no",
|
|
147
148
|
"field.tracking_url": "tracking URL",
|
|
149
|
+
"field.transporter": "transporter",
|
|
148
150
|
"field.type": "type",
|
|
149
151
|
"field.unit": "unit",
|
|
150
152
|
"field.uom_value": "UOM value",
|
package/translations/ko.json
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"field.required_branch": "[ko] required branch",
|
|
115
115
|
"field.required_sender": "[ko] required sender",
|
|
116
116
|
"field.required_tracking": "[ko] required tracking",
|
|
117
|
+
"field.reserve_enabled": "[ko] reserve enabled",
|
|
117
118
|
"field.reserve_qty": "[ko] reserve qty",
|
|
118
119
|
"field.ro_created": "[ko] ro created",
|
|
119
120
|
"field.save": "[ko] save",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"field.town": "[ko] town",
|
|
145
146
|
"field.tracking_no": "[ko] tracking no",
|
|
146
147
|
"field.tracking_url": "[ko] tracking URL",
|
|
148
|
+
"field.transporter": "[ko] transporter",
|
|
147
149
|
"field.type": "[ko] type",
|
|
148
150
|
"field.unit": "[ko] unit",
|
|
149
151
|
"field.uom_value": "[ko] UOM value",
|
package/translations/ms.json
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"field.required_branch": "[ms] required branch",
|
|
115
115
|
"field.required_sender": "[ms] required sender",
|
|
116
116
|
"field.required_tracking": "[ms] required tracking",
|
|
117
|
+
"field.reserve_enabled": "[ms] reserve enabled",
|
|
117
118
|
"field.reserve_qty": "[ms] reserve qty",
|
|
118
119
|
"field.ro_created": "[ms] ro created",
|
|
119
120
|
"field.save": "[ms] save",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"field.town": "[ms] town",
|
|
145
146
|
"field.tracking_no": "[ms] tracking no",
|
|
146
147
|
"field.tracking_url": "[ms] tracking URL",
|
|
148
|
+
"field.transporter": "[ms] transporter",
|
|
147
149
|
"field.type": "[ms] type",
|
|
148
150
|
"field.unit": "[ms] unit",
|
|
149
151
|
"field.uom_value": "[ms] UOM value",
|
package/translations/zh.json
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"field.required_branch": "[zh] required branch",
|
|
115
115
|
"field.required_sender": "[zh] required sender",
|
|
116
116
|
"field.required_tracking": "[zh] required tracking",
|
|
117
|
+
"field.reserve_enabled": "[zh] reserve enabled",
|
|
117
118
|
"field.reserve_qty": "[zh] reserve qty",
|
|
118
119
|
"field.ro_created": "[zh] ro created",
|
|
119
120
|
"field.save": "[zh] save",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"field.town": "[zh] town",
|
|
145
146
|
"field.tracking_no": "[zh] tracking no",
|
|
146
147
|
"field.tracking_url": "[zh] tracking URL",
|
|
148
|
+
"field.transporter": "[zh] transporter",
|
|
147
149
|
"field.type": "[zh] type",
|
|
148
150
|
"field.unit": "[zh] unit",
|
|
149
151
|
"field.uom_value": "[zh] UOM value",
|