@medusajs/promotion 2.6.2-snapshot-20250311001644 → 2.6.2-snapshot-20250311083444

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.
@@ -1 +1 @@
1
- {"version":3,"file":"buy-get.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-actions/buy-get.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAWlC,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAyBD,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,cAAc,CAAC,YAAY,EACtC,YAAY,EAAE,qBAAqB,EAAE,EACrC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAClD,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAC/C,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,GACjD,cAAc,CAAC,cAAc,EAAE,CAiMjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,cAmDpC"}
1
+ {"version":3,"file":"buy-get.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-actions/buy-get.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAWlC,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAyBD,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,cAAc,CAAC,YAAY,EACtC,YAAY,EAAE,qBAAqB,EAAE,EACrC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAClD,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAC/C,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,GACjD,cAAc,CAAC,cAAc,EAAE,CA+LjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,cAmDpC"}
@@ -102,9 +102,7 @@ function getComputedActionsForBuyGet(promotion, itemsContext, methodIdPromoValue
102
102
  const item = itemsMap.get(targetItem.item_id);
103
103
  const appliedPromoValue = methodIdPromoValueMap.get(item.id) ?? utils_1.MathBN.convert(0);
104
104
  const multiplier = utils_1.MathBN.min(targetItem.quantity, remainingQtyToApply);
105
- const applicableAmount = utils_1.MathBN.mult(utils_1.MathBN.div(item.subtotal, item.quantity), multiplier);
106
- const applicablePercentage = promotion.application_method?.value ?? 100;
107
- const amount = utils_1.MathBN.mult(applicableAmount, applicablePercentage).div(100);
105
+ const amount = utils_1.MathBN.mult(utils_1.MathBN.div(item.subtotal, item.quantity), multiplier);
108
106
  const newRemainingQtyToApply = utils_1.MathBN.sub(remainingQtyToApply, multiplier);
109
107
  if (utils_1.MathBN.lt(newRemainingQtyToApply, 0) || utils_1.MathBN.lte(amount, 0)) {
110
108
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"buy-get.js","sourceRoot":"","sources":["../../../src/utils/compute-actions/buy-get.ts"],"names":[],"mappings":";;AA2CA,kEAuMC;AAED,4CAmDC;AAlSD,qDAMkC;AAClC,gDAAwD;AACxD,mCAAwD;AAOxD,SAAS,WAAW,CAAC,CAAwB,EAAE,CAAwB;IACrE,OAAO,cAAM,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AACnD,CAAC;AAED;;;EAGE;AACF,SAAS,2BAA2B,CAClC,YAAqC,EACrC,KAAyC;IAEzC,OAAO,YAAY;SAChB,MAAM,CAA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gG;QAChG,IAAI,CAAC,CAAC,kBAAkB,CAAC,KAAK,GAAG,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;YAC5D,OAAO,CAAC,CAAA,CAAC,2BAA2B;QACtC,CAAC;aAAM,IAAI,CAAC,CAAC,kBAAkB,CAAC,KAAK,GAAG,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;YACnE,OAAO,CAAC,CAAC,CAAA,CAAC,0BAA0B;QACtC,CAAC;QAED;;;;UAIE;QACF,IAAI,CAAC,CAAC,IAAI,KAAK,qBAAa,CAAC,MAAM,EAAE,CAAC;YACpC,IACE,CAAC,CAAC,kBAAkB,CAAC,sBAAsB;gBAC3C,CAAC,CAAC,kBAAkB,CAAC,sBAAsB,EAC3C,CAAC;gBACD,OAAO,CAAC,CAAA;YACV,CAAC;iBAAM,IACL,CAAC,CAAC,kBAAkB,CAAC,sBAAsB;gBAC3C,CAAC,CAAC,kBAAkB,CAAC,sBAAsB,EAC3C,CAAC;gBACD,OAAO,CAAC,CAAC,CAAA;YACX,CAAC;YAED,IACE,CAAC,CAAC,kBAAkB,CAAC,iBAAiB;gBACtC,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,EACtC,CAAC;gBACD,OAAO,CAAC,CAAA;YACV,CAAC;iBAAM,IACL,CAAC,CAAC,kBAAkB,CAAC,iBAAiB;gBACtC,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,EACtC,CAAC;gBACD,OAAO,CAAC,CAAC,CAAA;YACX,CAAC;QACH,CAAC;QAED,OAAO,CAAC,CAAA,CAAC,iDAAiD;IAC5D,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,CAAA,CAAC,+DAA+D;IAC1E,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/promotion",
3
- "version": "2.6.2-snapshot-20250311001644",
3
+ "version": "2.6.2-snapshot-20250311083444",
4
4
  "description": "Medusa Promotion module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "orm:cache:clear": " MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
37
37
  },
38
38
  "devDependencies": {
39
- "@medusajs/framework": "2.6.2-snapshot-20250311001644",
40
- "@medusajs/test-utils": "2.6.2-snapshot-20250311001644",
39
+ "@medusajs/framework": "2.6.2-snapshot-20250311083444",
40
+ "@medusajs/test-utils": "2.6.2-snapshot-20250311083444",
41
41
  "@mikro-orm/cli": "6.4.3",
42
42
  "@mikro-orm/core": "6.4.3",
43
43
  "@mikro-orm/migrations": "6.4.3",
@@ -50,7 +50,7 @@
50
50
  "typescript": "^5.6.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@medusajs/framework": "2.6.2-snapshot-20250311001644",
53
+ "@medusajs/framework": "2.6.2-snapshot-20250311083444",
54
54
  "@mikro-orm/core": "6.4.3",
55
55
  "@mikro-orm/migrations": "6.4.3",
56
56
  "@mikro-orm/postgresql": "6.4.3",