feat: add calc vat into product (will be calc in quotation)
This commit is contained in:
parent
08254d1b9f
commit
6c10c82fcc
5 changed files with 27 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ const formDataProduct = ref<ProductCreate>({
|
|||
productGroupId: '',
|
||||
remark: '',
|
||||
serviceCharge: 0,
|
||||
calcVat: true,
|
||||
agentPrice: 0,
|
||||
price: 0,
|
||||
process: 0,
|
||||
|
|
@ -982,12 +983,14 @@ async function assignFormDataProduct(data: Product) {
|
|||
detail: data.detail,
|
||||
name: data.name,
|
||||
code: data.code,
|
||||
calcVat: data.calcVat,
|
||||
image: undefined,
|
||||
status: data.status,
|
||||
expenseType: data.expenseType,
|
||||
vatIncluded: data.vatIncluded,
|
||||
selectedImage: data.selectedImage,
|
||||
};
|
||||
console.log(data.calcVat);
|
||||
formDataProduct.value = { ...prevProduct.value };
|
||||
}
|
||||
|
||||
|
|
@ -3519,6 +3522,7 @@ watch(
|
|||
v-model:agent-price="formDataProduct.agentPrice"
|
||||
v-model:service-charge="formDataProduct.serviceCharge"
|
||||
v-model:vat-included="formDataProduct.vatIncluded"
|
||||
v-model:calc-vat="formDataProduct.calcVat"
|
||||
dense
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -3702,6 +3706,7 @@ watch(
|
|||
v-model:agent-price="formDataProduct.agentPrice"
|
||||
v-model:service-charge="formDataProduct.serviceCharge"
|
||||
v-model:vat-included="formDataProduct.vatIncluded"
|
||||
v-model:calc-vat="formDataProduct.calcVat"
|
||||
dense
|
||||
:priceDisplay="priceDisplay"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue