diff --git a/src/pages/05_quotation/peview/ViewForm.vue b/src/pages/05_quotation/peview/ViewForm.vue index bfd72ae7..1c6b3f9f 100644 --- a/src/pages/05_quotation/peview/ViewForm.vue +++ b/src/pages/05_quotation/peview/ViewForm.vue @@ -198,7 +198,10 @@ onMounted(async () => { ? a.vatExcluded : precisionRound(a.vat + vat); a.finalPrice = precisionRound( - a.totalPrice - a.totalDiscount + a.vat - Number(obj.discount || 0), + a.totalPrice - + a.totalDiscount + + a.vat - + Number(data.value?.discount || 0), ); return a; @@ -253,7 +256,7 @@ function print() {
| {{ $t('peview.rank') }} | {{ $t('peview.productCode') }} | @@ -264,7 +267,7 @@ function print() {{{ $t('peview.vat') }} | {{ $t('peview.value') }} |
|---|---|---|---|
| {{ i + 1 }} | {{ v.code }} | {{ v.detail }} | @@ -290,7 +293,7 @@ function print() { class="q-mb-md" cellpadding="0" > -|
| {{ $t('general.total') }} | @@ -299,7 +302,7 @@ function print() { | ||
| {{ $t('general.discount') }} | {{ formatNumberDecimal(summaryPrice.totalDiscount, 2) || 0 }} ฿ @@ -318,14 +321,19 @@ function print() { | ||
| {{ $t('general.totalVatExcluded') }} | {{ formatNumberDecimal(summaryPrice.vatExcluded, 2) || 0 }} ฿ | ||
| {{ $t('general.vat', { msg: '7%' }) }} | ++ {{ formatNumberDecimal(summaryPrice.vat, 2) }} ฿ + | +||
| {{ $t('general.totalVatIncluded') }} | @@ -341,12 +349,6 @@ function print() { | ||
| {{ $t('general.vat', { msg: '7%' }) }} | -- {{ formatNumberDecimal(summaryPrice.vat, 2) }} ฿ - | -||
| {{ $t('general.discountAfterVat') }} | @@ -498,7 +500,7 @@ td { background-color: hsla(var(--orange-5-hsl) / 0.1); } -.color-tr:nth-child(odd) { +.color-tr > tr:nth-child(odd) { background-color: hsla(var(--orange-5-hsl) / 0.1); } |