@shushed/helpers 0.0.203-bug-erp-770-20251208162807 → 0.0.203-bug-erp-770-20251208222906

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.
@@ -599,7 +599,7 @@ function transformMasterOrder(payload) {
599
599
  const shipments = (mappedShipments.length || returnShipments.length)
600
600
  ? [...mappedShipments, ...returnShipments]
601
601
  : [];
602
- const shipping_method = (payload.shipments?.[0]?.shipping_agent_service_code) || null;
602
+ const shipping_method = (payload.shipments?.[0]?.shipping_agent_code) || (payload.shipments?.[0]?.shipping_agent_service_code) || null;
603
603
  const merchReturnGrossFromCreditMemos = (payload.credit_memos || []).reduce((acc, cm) => {
604
604
  const lines = cm?.credit_memo_lines || [];
605
605
  let hasQualifying = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.203-bug-erp-770-20251208162807",
3
+ "version": "0.0.203-bug-erp-770-20251208222906",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",