addio-admin-sdk 1.7.20 → 1.7.21
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 +9 -0
- package/dist/lib/Cart/index.js +3 -1
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/utils/cart.d.ts +5 -265
- package/dist/utils/cart.js +3 -1
- package/dist/utils/cart.js.map +1 -1
- package/dist/utils/discount.js +2 -1
- package/dist/utils/discount.js.map +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [04-07-2025]
|
|
2
|
+
|
|
3
|
+
### Calcul promotions sur sous-total excluant les frais - Retrait des escomptes supp. PA des "services"
|
|
4
|
+
|
|
5
|
+
- **Added**
|
|
6
|
+
- **Changed**
|
|
7
|
+
- Where services are excluded from subtotal when calculating promo amount, esc. supp. PA products (eg. ESCBOLDUC, ESCRINOX, etc...) are now considered "non-services" so they count towards subtotal on which to apply promo. Changed in functions : `_getSubtotalToCheck`, `getSubtotalToCheckForPromo` and `getOnlyServicesAndFeesSubtotal`.
|
|
8
|
+
- **Fixed**
|
|
9
|
+
|
|
1
10
|
## [08-05-2025]
|
|
2
11
|
|
|
3
12
|
### Première dates de disponibilité - Ajustements pour gazon en cueillette
|
package/dist/lib/Cart/index.js
CHANGED
|
@@ -2205,7 +2205,9 @@ var Cart = (function (_super) {
|
|
|
2205
2205
|
});
|
|
2206
2206
|
};
|
|
2207
2207
|
_this._getSubtotalToCheck = function (space, feePromosTotalRemoved, removeServiceFees) {
|
|
2208
|
-
var serviceFeeProducts = !!!removeServiceFees
|
|
2208
|
+
var serviceFeeProducts = !!!removeServiceFees
|
|
2209
|
+
? []
|
|
2210
|
+
: _this.data().items.filter(function (i) { return !!i.is_service && !(0, g2_1.isEscompteSuppItem)(i.sku); });
|
|
2209
2211
|
var serviceFeeSubtotal = !!!serviceFeeProducts.length
|
|
2210
2212
|
? 0
|
|
2211
2213
|
: (0, sumBy_1.default)(serviceFeeProducts, function (i) {
|