@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 (
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|