@pisell/pisellos 0.0.302 → 0.0.303
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.
|
@@ -521,6 +521,9 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
521
521
|
summaryDeposit.hasDeposit = true;
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
|
+
|
|
525
|
+
// 将总金额四舍五入到两位小数
|
|
526
|
+
summaryDeposit.total = new Decimal(summaryDeposit.total).toDecimalPlaces(2, Decimal.ROUND_HALF_UP).toNumber();
|
|
524
527
|
return summaryDeposit;
|
|
525
528
|
}
|
|
526
529
|
|
|
@@ -321,6 +321,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
|
|
|
321
321
|
summaryDeposit.hasDeposit = true;
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
+
summaryDeposit.total = new import_decimal.default(summaryDeposit.total).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
|
|
324
325
|
return summaryDeposit;
|
|
325
326
|
}
|
|
326
327
|
/**
|