@shushed/helpers 0.0.200-bug-erp-727-20251126191912 → 0.0.200-bug-erp-727-20251127122328

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -110917,14 +110917,10 @@ function transformMasterOrder(payload) {
110917
110917
  }
110918
110918
  const discountCode = line.salesforce_promotion_id && line.salesforce_promotion_id.trim().length > 0 ? line.salesforce_promotion_id.trim() : null;
110919
110919
  let unit_price_status = "FD";
110920
- if (discountCode) {
110921
- unit_price_status = "POS";
110922
- } else {
110923
- const reason = (line.price_update_reason || "").toUpperCase();
110924
- if (reason === "PERM") unit_price_status = "MD";
110925
- else if (reason === "RRP") unit_price_status = "FD";
110926
- else if (reason === "POS") unit_price_status = "POS";
110927
- }
110920
+ const reason = (line.price_update_reason || "").toUpperCase();
110921
+ if (reason === "PERM") unit_price_status = "MD";
110922
+ else if (reason === "RRP") unit_price_status = "FD";
110923
+ else if (reason === "POS") unit_price_status = "POS";
110928
110924
  const discountPercent = Number(line.line_discount_percent || 0);
110929
110925
  const discountAmountRaw = Number(line.line_discount_amount || 0);
110930
110926
  let discountNet = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.200-bug-erp-727-20251126191912",
3
+ "version": "0.0.200-bug-erp-727-20251127122328",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",