diff --git a/public/images/customer-CORP-avartar-female.png b/public/images/customer-CORP-avartar-female.png
index 4cbb894f..446ef866 100644
Binary files a/public/images/customer-CORP-avartar-female.png and b/public/images/customer-CORP-avartar-female.png differ
diff --git a/public/images/customer-CORP-avartar-male.png b/public/images/customer-CORP-avartar-male.png
index ae177f60..6ad95d7d 100644
Binary files a/public/images/customer-CORP-avartar-male.png and b/public/images/customer-CORP-avartar-male.png differ
diff --git a/public/images/customer-PERS-avartar-female.png b/public/images/customer-PERS-avartar-female.png
index c3ba574e..ca0a2bf1 100644
Binary files a/public/images/customer-PERS-avartar-female.png and b/public/images/customer-PERS-avartar-female.png differ
diff --git a/public/images/customer-PERS-avartar-male.png b/public/images/customer-PERS-avartar-male.png
index ce0ab20c..e9fd15fe 100644
Binary files a/public/images/customer-PERS-avartar-male.png and b/public/images/customer-PERS-avartar-male.png differ
diff --git a/public/images/employee-avatar-female.png b/public/images/employee-avatar-female.png
index ce9370f1..66ace3a0 100644
Binary files a/public/images/employee-avatar-female.png and b/public/images/employee-avatar-female.png differ
diff --git a/public/images/employee-avatar-male.png b/public/images/employee-avatar-male.png
index aaf5fb1f..a8daa8ff 100644
Binary files a/public/images/employee-avatar-male.png and b/public/images/employee-avatar-male.png differ
diff --git a/public/no-img-female.png b/public/no-img-female.png
index 95f959ff..4e177dca 100644
Binary files a/public/no-img-female.png and b/public/no-img-female.png differ
diff --git a/public/no-img-man.png b/public/no-img-man.png
index f0ccba15..861f356a 100644
Binary files a/public/no-img-man.png and b/public/no-img-man.png differ
diff --git a/public/option/option.json b/public/option/option.json
index 963c4ad2..c5ea33cd 100644
--- a/public/option/option.json
+++ b/public/option/option.json
@@ -183,15 +183,15 @@
"prefix": [
{
- "label": "MR",
+ "label": "Mr",
"value": "mr"
},
{
- "label": "MRS",
+ "label": "Mrs",
"value": "mrs"
},
{
- "label": "MISS",
+ "label": "Miss",
"value": "miss"
}
],
diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue
index c10d63fc..83c268ba 100644
--- a/src/components/01_branch-management/BranchCard.vue
+++ b/src/components/01_branch-management/BranchCard.vue
@@ -89,7 +89,15 @@ defineProps<{
-
| - - {{ formatNumberDecimal(v.discount, 2) }} ฿ - + {{ formatNumberDecimal(v.discount, 2) }} | {{ formatNumberDecimal(v.vat, 2) }} @@ -352,6 +346,7 @@ function closeAble() { |
| {{ $t('preview.pricePerUnit') }} | {{ $t('preview.value') }} | + {{ console.log(chunks) }} + {{ console.log(chunk) }}|||||
|---|---|---|---|---|---|---|
| {{ i + 1 }} | {{ v.product.product.code }} | {{ v.product.product.name }} | -- {{ formatNumberDecimal(calcPricePerUnit(v.product.product), 2) }} + | + {{ + formatNumberDecimal( + calcPricePerUnit(v.product.product) + + (v.product.product.calcVat + ? calcPricePerUnit(v.product.product) * + (config?.vat || 0.07) + : 0), + 2, + ) + }} | -- {{ formatNumberDecimal(calcPrice(v.list), 2) }} + | + {{ + formatNumberDecimal( + calcPrice(v.product.product, v.list.length, v.product.vat), + 2, + ) + }} | - - {{ formatNumberDecimal(v.discount, 2) }} ฿ - + {{ formatNumberDecimal(v.discount, 2) }} |
{{ formatNumberDecimal(v.vat, 2) }}
@@ -435,8 +413,8 @@ function print() {
{{
formatNumberDecimal(
summaryPrice.totalPrice -
- summaryPrice.totalDiscount -
- summaryPrice.vatExcluded,
+ summaryPrice.totalDiscount +
+ summaryPrice.vat,
2,
)
}}
@@ -514,8 +492,9 @@ function print() {
v-html="
convertTemplate(data?.remark || '', {
'quotation-payment': {
- paymentType: 'Full',
+ paymentType: data?.payCondition || 'Full',
amount: summaryPrice.finalPrice,
+ installments: data?.paySplit,
},
'quotation-labor': {
name:
diff --git a/src/pages/12_debit-note/document-view/ViewHeader.vue b/src/pages/12_debit-note/document-view/ViewHeader.vue
index cf2c055c..e9c4624d 100644
--- a/src/pages/12_debit-note/document-view/ViewHeader.vue
+++ b/src/pages/12_debit-note/document-view/ViewHeader.vue
@@ -3,7 +3,6 @@ import { dateFormat } from 'src/utils/datetime';
// NOTE: Import stores
import { formatAddress } from 'src/utils/address';
-import { getCustomerName } from 'src/stores/utils';
// NOTE Import Types
import { Branch } from 'src/stores/branch/types';
@@ -79,16 +78,13 @@ function titleMode(mode: View): string {
})
}}
- {{ $t('branch.form.taxNo') }} {{ branch.taxNo }}
- {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }}
+ เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }}
+ เบอร์โทร {{ branch.telephoneNo }}
{{ branch.webUrl }}
- {{ getCustomerName(customer, { noCode: true, locale: 'tha' }) }}
-
{{
formatAddress({
address: customer.address,
@@ -105,18 +101,8 @@ function titleMode(mode: View): string {
})
}}
-
- {{
- customer.customer.customerType === 'CORP'
- ? `${$t('customer.form.legalPersonNo')} `
- : `${$t('customer.form.taxpayyerNo')} `
- }}{{
- customer.customer.customerType === 'CORP'
- ? customer.codeCustomer
- : customer.citizenId
- }}
-
- {{ $t('taskOrder.telephone') }} {{ customer.telephoneNo }}
+ เลขประจำตัวผู้เสียภาษี {{ customer.citizenId }}
+ เบอร์โทร {{ customer.telephoneNo }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('general.status') }}
-
-
-
-
-
-
-
- {{
- $i18n.locale === 'eng'
- ? props.row.nameEN
- : props.row.name
- }}
-
-
- {{ props.row.code }}
-
-
-
- {{ props.row.nameEN }}
-
-
-
-
-
-
-
-
-
-
- '); } else { return [ - `**** ${i18n.global.t('general.additional')}`, - `- ${i18n.global.t('quotation.paymentCondition')} ${i18n.global.t('quotation.type.Split')}${context?.paymentType === 'SplitCustom' ? ` (${i18n.global.t('general.specify')}) ` : ' '}${context?.installments?.length} ${i18n.global.t('quotation.receiptDialog.installments')}`, - ...(context?.installments?.map((v) => { - const installmentName = v.name ? ` (${v.name})` : ''; - return ` ${i18n.global.t('quotation.periodNo')} ${v.no}${installmentName} ${i18n.global.t('general.amount')} ${formatNumberDecimal(v.amount, 2)}`; - }) || []), + '**** เงื่อนไขเพิ่มเติม', + `- เงื่อนไขการชำระเงิน แบบแบ่งจ่าย${context?.paymentType === 'SplitCustom' ? ' กำหนดเอง ' : ' '}${context?.installments?.length} งวด`, + ...(context?.installments?.map( + (v) => + ` งวดที่ ${v.no} จำนวน ${formatNumberDecimal(v.amount, 2)}`, + ) || []), ].join(' '); } }, @@ -74,14 +73,14 @@ const templates = { const employee = v.request.employee; const branch = v.request.quotation.customerBranch; return ( - ` ${i + 1}. ` + - ` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : i18n.global.locale.value == 'tha' ? branch.registerName : branch.registerNameEN}_` + + `${i + 1}. ` + + ` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `นายจ้าง ${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : branch.registerName}_` + `${employee.namePrefix}. ${employee.firstNameEN} ${employee.lastNameEN} `.toUpperCase() + `${!!v.failedType && v.failedType !== 'other' ? `${i18n.global.t(`taskOrder.${v.failedType}`)}` : !!v.failedComment ? v.failedComment : ''}` ); }); return [ - `- ${item.product.name} ${i18n.global.t('price', { price: price })} `, + `- ${item.product.name} ราคา ${price} บาท`, '', ...list, '', |