repzo-sap-absjo 1.0.29 → 1.0.30

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
@@ -17,6 +17,7 @@
17
17
  - [commands/rep] delete hard code of rep.warehouse for reps start with: [WS, RET, MT] @maramalshen
18
18
  - [commands/client] decide if client is cash or credit depend on PAYMENTTERM instead of CLIENTGROUP @maramalshen
19
19
  - [actions/**] update integration_meta using repzo.updateIntegrationMeta instead of using service.update method to avoid infinity looping @maramalshen
20
+ - [actions/create_invoice, actions/create_return_invoice] RefNum: advanced_serial_number ||serial_number.formatted @maramalshen
20
21
 
21
22
  ### Fixed
22
23
 
@@ -333,7 +333,9 @@ export const create_invoice = async (event, options) => {
333
333
  });
334
334
  }
335
335
  const sap_invoice = {
336
- RefNum: repzo_invoice.serial_number.formatted,
336
+ RefNum:
337
+ repzo_invoice.advanced_serial_number ||
338
+ repzo_invoice.serial_number.formatted,
337
339
  SalPersCode:
338
340
  repzo_rep === null || repzo_rep === void 0
339
341
  ? void 0
@@ -271,7 +271,9 @@ export const create_return_invoice = async (event, options) => {
271
271
  });
272
272
  }
273
273
  const sap_return_invoice = {
274
- RefNum: repzo_invoice.serial_number.formatted,
274
+ RefNum:
275
+ repzo_invoice.advanced_serial_number ||
276
+ repzo_invoice.serial_number.formatted,
275
277
  SalPersCode:
276
278
  repzo_rep === null || repzo_rep === void 0
277
279
  ? void 0
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.29",
4
+ "version": "1.0.30",
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.103",
48
+ "repzo": "^1.0.109",
49
49
  "uuid": "^8.3.2"
50
50
  }
51
51
  }
@@ -285,7 +285,9 @@ export const create_invoice = async (event: EVENT, options: Config) => {
285
285
  }
286
286
 
287
287
  const sap_invoice: SAPInvoice = {
288
- RefNum: repzo_invoice.serial_number.formatted,
288
+ RefNum:
289
+ repzo_invoice.advanced_serial_number ||
290
+ repzo_invoice.serial_number.formatted,
289
291
  SalPersCode: repzo_rep?.integration_id,
290
292
  DocDate: moment(repzo_invoice.issue_date, "YYYY-MM-DD").format(
291
293
  "YYYYMMDD"
@@ -208,7 +208,9 @@ export const create_return_invoice = async (event: EVENT, options: Config) => {
208
208
  }
209
209
 
210
210
  const sap_return_invoice: SAPInvoice = {
211
- RefNum: repzo_invoice.serial_number.formatted,
211
+ RefNum:
212
+ repzo_invoice.advanced_serial_number ||
213
+ repzo_invoice.serial_number.formatted,
212
214
  SalPersCode: repzo_rep?.integration_id,
213
215
  DocDate: moment(repzo_invoice.issue_date, "YYYY-MM-DD").format(
214
216
  "YYYYMMDD"