repzo-sap-absjo 1.0.25 → 1.0.26

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
@@ -23,6 +23,7 @@
23
23
  - [command/price_list] fix bug in priceList-item @maramalshen
24
24
  - [actions/**] don't update integration_meta.sync_to_sap_succeeded if it is already true @maramalshen
25
25
  - [actions/create_invoice] include item.get_promotion in MEO_Serial & Promotion_Name @maramalshen
26
+ - fix bug in is_matched in client & product @maramalshen
26
27
 
27
28
  ### Removed
28
29
 
@@ -231,7 +231,7 @@ export const sync_client = async (commandEvent) => {
231
231
  paymentTerm: paymentTerm ? paymentTerm._id : undefined,
232
232
  sv_priceList: priceList ? priceList._id : undefined,
233
233
  disabled: sap_client.ACTIVE == "Y" ? false : true,
234
- payment_type: sap_client.PAYMENTTERM ? "credit" : "cash", // sap_client.CLIENTGROUP == "Cash Van"
234
+ payment_type: sap_client.PAYMENTTERM ? "credit" : "cash",
235
235
  integrated_client_balance:
236
236
  client_credit_consumed && Math.round(client_credit_consumed * 1000),
237
237
  };
@@ -366,7 +366,7 @@ const is_matched = (body_1, body_2) => {
366
366
  }
367
367
  }
368
368
  for (let i = 0; i < integration_meta_keys.length; i++) {
369
- const key = keys[i];
369
+ const key = integration_meta_keys[i];
370
370
  if (
371
371
  ((_d =
372
372
  (_c =
@@ -473,7 +473,7 @@ const is_matched = (body_1, body_2) => {
473
473
  }
474
474
  }
475
475
  for (let i = 0; i < integration_meta_keys.length; i++) {
476
- const key = keys[i];
476
+ const key = integration_meta_keys[i];
477
477
  if (
478
478
  ((_d =
479
479
  (_c =
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.25",
4
+ "version": "1.0.26",
5
5
  "homepage": "",
6
6
  "keywords": [],
7
7
  "author": {
@@ -351,7 +351,7 @@ const is_matched = (
351
351
  }
352
352
  }
353
353
  for (let i = 0; i < integration_meta_keys.length; i++) {
354
- const key = keys[i];
354
+ const key = integration_meta_keys[i];
355
355
  if (
356
356
  body_1?.integration_meta?.[key]?.toString() !==
357
357
  body_2?.integration_meta?.[key]?.toString()
@@ -368,7 +368,7 @@ const is_matched = (
368
368
  }
369
369
  }
370
370
  for (let i = 0; i < integration_meta_keys.length; i++) {
371
- const key = keys[i];
371
+ const key = integration_meta_keys[i];
372
372
  if (
373
373
  body_1?.integration_meta?.[key]?.toString() !==
374
374
  body_2?.integration_meta?.[key]?.toString()