fix: installment split

This commit is contained in:
puriphatt 2024-10-15 09:42:37 +07:00
parent 0b83c943c0
commit 3ff4c9d4f4

View file

@ -132,8 +132,8 @@ watch(
);
watch(
() => paySplitCount.value,
(newCount, oldCount) => {
() => [paySplitCount.value, summaryPrice.value.finalPrice],
([newCount, _newF], [oldCount, _oldF]) => {
if (newCount !== null && oldCount !== null) {
const totalAmount = summaryPrice.value.finalPrice;
@ -342,7 +342,6 @@ watch(
:label="$t('quotation.amount')"
:model-value="formatNumberDecimal(period.amount, 2)"
dense
readonly
outlined
bg-color="input-border"
>