refactor: debit note pay type
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s

This commit is contained in:
puriphatt 2025-07-15 13:57:26 +07:00
parent 1360aca7e9
commit 642dec8de9
4 changed files with 7 additions and 2 deletions

View file

@ -240,7 +240,7 @@ watch(
? payTypeOption.filter((v) => v.value === 'Full') ? payTypeOption.filter((v) => v.value === 'Full')
: payTypeOption : payTypeOption
" "
:readonly :readonly="readonly || debitNote"
id="pay-type" id="pay-type"
:model-value="payType" :model-value="payType"
@update:model-value=" @update:model-value="

View file

@ -21,6 +21,7 @@ import useOcrStore from 'stores/ocr';
// NOTE: Import Components // NOTE: Import Components
import { import {
AddButton,
SaveButton, SaveButton,
EditButton, EditButton,
UndoButton, UndoButton,
@ -53,6 +54,9 @@ import { SideMenu } from 'src/components';
import BasicInformation from 'components/03_customer-management/employee/BasicInformation.vue'; import BasicInformation from 'components/03_customer-management/employee/BasicInformation.vue';
import { AddressForm } from 'src/components/form'; import { AddressForm } from 'src/components/form';
import ExpirationDate from 'src/components/03_customer-management/ExpirationDate.vue'; import ExpirationDate from 'src/components/03_customer-management/ExpirationDate.vue';
import FormEmployeeHealthCheck from 'src/components/03_customer-management/FormEmployeeHealthCheck.vue';
import FormEmployeeWorkHistory from 'src/components/03_customer-management/FormEmployeeWorkHistory.vue';
import FormEmployeeOther from 'src/components/03_customer-management/FormEmployeeOther.vue';
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;

View file

@ -1134,10 +1134,10 @@ async function submitAccepted() {
view === QuotationStatus.Accepted view === QuotationStatus.Accepted
" "
:total-price="summaryPrice.finalPrice" :total-price="summaryPrice.finalPrice"
:pay-split="[]"
class="q-mb-md" class="q-mb-md"
v-model:pay-type="currentFormData.payCondition" v-model:pay-type="currentFormData.payCondition"
v-model:pay-split-count="currentFormData.paySplitCount" v-model:pay-split-count="currentFormData.paySplitCount"
v-model:pay-split="currentFormData.paySplit"
v-model:final-discount="currentFormData.discount" v-model:final-discount="currentFormData.discount"
v-model:pay-bill-date="currentFormData.payBillDate" v-model:pay-bill-date="currentFormData.payBillDate"
v-model:summary-price="summaryPrice" v-model:summary-price="summaryPrice"

View file

@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { AddButton } from 'components/button'; import { AddButton } from 'components/button';
import ToggleButton from 'src/components/button/ToggleButton.vue';
import WorkerItem from 'src/components/05_quotation/WorkerItem.vue'; import WorkerItem from 'src/components/05_quotation/WorkerItem.vue';
defineProps<{ defineProps<{