repzo-sap-absjo 1.0.28 → 1.0.29
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/changelog.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
- [actions/payment] add the field UserId where it equals USERID of the SAP API REP @maramalshen
|
|
11
11
|
- [commands/price_list_disabled] new command: Disabled PriceListItems from Repzo if it is not found on SAP @maramalshen
|
|
12
12
|
- [commands/measureunit] create unique measure-unit for each product, by inject ITEMCODE in integration_meta.id @maramalshen
|
|
13
|
+
- [actions/create_invoice, actions/create_return_invoice] add new key: U_ISTDQR = ubl_qr || ubl_clearance_qr @maramalshen
|
|
13
14
|
|
|
14
15
|
### Changed
|
|
15
16
|
|
|
@@ -349,6 +349,11 @@ export const create_invoice = async (event, options) => {
|
|
|
349
349
|
Note: repzo_invoice.comment,
|
|
350
350
|
WarehouseCode: repzo_warehouse.code,
|
|
351
351
|
LinesDetails: items,
|
|
352
|
+
U_ISTDQR: repzo_invoice.ubl_qr
|
|
353
|
+
? repzo_invoice.ubl_qr
|
|
354
|
+
: repzo_invoice.ubl_clearance_qr
|
|
355
|
+
? repzo_invoice.ubl_clearance_qr
|
|
356
|
+
: undefined,
|
|
352
357
|
};
|
|
353
358
|
// console.dir(sap_invoice, { depth: null });
|
|
354
359
|
actionLog.addDetail(
|
|
@@ -253,7 +253,7 @@ export const create_return_invoice = async (event, options) => {
|
|
|
253
253
|
Brand:
|
|
254
254
|
(_o = repzo_product.integration_meta) === null || _o === void 0
|
|
255
255
|
? void 0
|
|
256
|
-
: _o.BRAND,
|
|
256
|
+
: _o.BRAND,
|
|
257
257
|
Department:
|
|
258
258
|
((_p =
|
|
259
259
|
repzo_rep === null || repzo_rep === void 0
|
|
@@ -263,7 +263,7 @@ export const create_return_invoice = async (event, options) => {
|
|
|
263
263
|
: _p.DEPARTMENTCODE) ||
|
|
264
264
|
((_q = options.data) === null || _q === void 0
|
|
265
265
|
? void 0
|
|
266
|
-
: _q.DepartmentCode),
|
|
266
|
+
: _q.DepartmentCode),
|
|
267
267
|
Return_Reason:
|
|
268
268
|
item_return_reason === null || item_return_reason === void 0
|
|
269
269
|
? void 0
|
|
@@ -287,6 +287,11 @@ export const create_return_invoice = async (event, options) => {
|
|
|
287
287
|
Note: repzo_invoice.comment,
|
|
288
288
|
WarehouseCode: repzo_warehouse.code,
|
|
289
289
|
LinesDetails: return_items,
|
|
290
|
+
U_ISTDQR: repzo_invoice.ubl_qr
|
|
291
|
+
? repzo_invoice.ubl_qr
|
|
292
|
+
: repzo_invoice.ubl_clearance_qr
|
|
293
|
+
? repzo_invoice.ubl_clearance_qr
|
|
294
|
+
: undefined,
|
|
290
295
|
};
|
|
291
296
|
// console.dir(sap_return_invoice, { depth: null });
|
|
292
297
|
actionLog.addDetail(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repzo-sap-absjo",
|
|
3
3
|
"description": "repzo SAP ABS jo integration",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.29",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"jsonwebtoken": "^8.5.1",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
47
|
"moment-timezone": "^0.5.34",
|
|
48
|
-
"repzo": "^1.0.
|
|
48
|
+
"repzo": "^1.0.103",
|
|
49
49
|
"uuid": "^8.3.2"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -35,6 +35,7 @@ interface SAPInvoice {
|
|
|
35
35
|
Note?: string; // "",
|
|
36
36
|
WarehouseCode?: string; // "VS21"; // Required
|
|
37
37
|
LinesDetails: SAPInvoiceItem[];
|
|
38
|
+
U_ISTDQR?: string;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
interface SAPOpenInvoice {
|
|
@@ -297,6 +298,11 @@ export const create_invoice = async (event: EVENT, options: Config) => {
|
|
|
297
298
|
Note: repzo_invoice.comment,
|
|
298
299
|
WarehouseCode: repzo_warehouse.code,
|
|
299
300
|
LinesDetails: items,
|
|
301
|
+
U_ISTDQR: repzo_invoice.ubl_qr
|
|
302
|
+
? repzo_invoice.ubl_qr
|
|
303
|
+
: repzo_invoice.ubl_clearance_qr
|
|
304
|
+
? repzo_invoice.ubl_clearance_qr
|
|
305
|
+
: undefined,
|
|
300
306
|
};
|
|
301
307
|
|
|
302
308
|
// console.dir(sap_invoice, { depth: null });
|
|
@@ -28,6 +28,7 @@ interface SAPInvoice {
|
|
|
28
28
|
Note?: string; // "",
|
|
29
29
|
WarehouseCode?: string; // "VS21"; // Required
|
|
30
30
|
LinesDetails: SAPInvoiceItem[];
|
|
31
|
+
U_ISTDQR?: string;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
interface ReturnReason {
|
|
@@ -220,6 +221,11 @@ export const create_return_invoice = async (event: EVENT, options: Config) => {
|
|
|
220
221
|
Note: repzo_invoice.comment,
|
|
221
222
|
WarehouseCode: repzo_warehouse.code,
|
|
222
223
|
LinesDetails: return_items,
|
|
224
|
+
U_ISTDQR: repzo_invoice.ubl_qr
|
|
225
|
+
? repzo_invoice.ubl_qr
|
|
226
|
+
: repzo_invoice.ubl_clearance_qr
|
|
227
|
+
? repzo_invoice.ubl_clearance_qr
|
|
228
|
+
: undefined,
|
|
223
229
|
};
|
|
224
230
|
|
|
225
231
|
// console.dir(sap_return_invoice, { depth: null });
|