rerobe-js-orm 3.6.8 → 3.7.0
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.
|
@@ -434,7 +434,7 @@ class OrderHelpers {
|
|
|
434
434
|
const saleDiscountPresentmentAmount = subtotalOriginalPresentment - subtotalPricePresentmentWithSalePrice;
|
|
435
435
|
const creditDiscountPresentmentAmount = convertAndFixPrice(creditDiscountAmount || 0);
|
|
436
436
|
const additionalDiscountPresentmentAmount = convertAndFixPrice(additionalDiscount || 0);
|
|
437
|
-
const totalShippingPricePresentmentAmount = convertAndFixPrice(shippingPrice || 0);
|
|
437
|
+
const totalShippingPricePresentmentAmount = convertAndFixPrice(shippingPrice || 0, 5);
|
|
438
438
|
const itemsTaxPresentmentAmount = convertAndFixPrice(itemsTax || 0, 5);
|
|
439
439
|
const shippingFeeTaxPresentmentAmount = convertAndFixPrice(shippingFeeTax || 0, 5);
|
|
440
440
|
const totalTaxPresentmentAmount = convertAndFixPrice(totalTax || 0, 5);
|
|
@@ -462,9 +462,7 @@ class OrderHelpers {
|
|
|
462
462
|
subtotalPricePresentment: prepareMoneyObj(subtotalPricePresentmentAmount),
|
|
463
463
|
totalDiscountPresentment: prepareMoneyObj(Number(creditDiscountPresentmentAmount) + Number(additionalDiscountPresentmentAmount)),
|
|
464
464
|
totalShippingPricePresentment: prepareMoneyObj(totalShippingPricePresentmentAmount),
|
|
465
|
-
totalPricePresentment: prepareMoneyObj(Number(subtotalPricePresentmentAmount) +
|
|
466
|
-
Number(totalShippingPricePresentmentAmount) +
|
|
467
|
-
Number(shippingFeeTaxPresentmentAmount)),
|
|
465
|
+
totalPricePresentment: prepareMoneyObj(Number(subtotalPricePresentmentAmount) + Number(totalShippingPricePresentmentAmount)),
|
|
468
466
|
itemsTaxPresentment: prepareMoneyObj(itemsTaxPresentmentAmount),
|
|
469
467
|
shippingFeeTaxPresentment: prepareMoneyObj(shippingFeeTaxPresentmentAmount),
|
|
470
468
|
totalTaxPresentment: prepareMoneyObj(totalTaxPresentmentAmount),
|