@managesome/eposmatic-toolkit 0.2.230 → 0.2.231

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.
@@ -480,17 +480,19 @@ function calculateCartOrderInfoAndSyncData(data, courses, listnerSettings, calcu
480
480
  // ===============================><===============================
481
481
  // Add delivery fee to grand_total
482
482
  let delivery_cost = 0;
483
- if (listnerSettings != null) {
484
- delivery_cost = (0, utils_1.getDeliveryAmt)({
485
- platform: data.platform,
486
- contemporary_delivery_cost: data.delivery_details?.delivery_cost ?? 0,
487
- delivery_free_over: listnerSettings.delivery_free_over,
488
- delivery_min_cost: listnerSettings.delivery_min_cost,
489
- payable_price: payablePrice,
490
- });
491
- }
492
- else if (data.delivery_details != null) {
493
- delivery_cost = data.delivery_details.delivery_cost;
483
+ if (isDeliveryOrder) {
484
+ if (listnerSettings != null) {
485
+ delivery_cost = (0, utils_1.getDeliveryAmt)({
486
+ platform: data.platform,
487
+ contemporary_delivery_cost: data.delivery_details?.delivery_cost ?? 0,
488
+ delivery_free_over: listnerSettings.delivery_free_over,
489
+ delivery_min_cost: listnerSettings.delivery_min_cost,
490
+ payable_price: payablePrice,
491
+ });
492
+ }
493
+ else if (data.delivery_details != null) {
494
+ delivery_cost = data.delivery_details.delivery_cost;
495
+ }
494
496
  }
495
497
  grand_total += delivery_cost;
496
498
  // Add packaging fee to grand_total
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.230",
3
+ "version": "0.2.231",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",