diff --git a/public/images/customer-CORP-avartar-female.png b/public/images/customer-CORP-avartar-female.png index 446ef866..4cbb894f 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 6ad95d7d..ae177f60 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 ca0a2bf1..c3ba574e 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 e9fd15fe..ce0ab20c 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 66ace3a0..ce9370f1 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 a8daa8ff..aaf5fb1f 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 4e177dca..95f959ff 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 861f356a..f0ccba15 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 c5ea33cd..963c4ad2 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/quasar.config.ts b/quasar.config.ts index cc0715ad..38bb94c1 100644 --- a/quasar.config.ts +++ b/quasar.config.ts @@ -31,7 +31,7 @@ export default defineConfig((ctx) => { devServer: { host: '0.0.0.0', open: false, - port: 5173, + port: 5174, }, framework: { config: {}, diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index 83c268ba..c10d63fc 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -89,15 +89,7 @@ defineProps<{ -
+| - {{ formatNumberDecimal(v.discount, 2) }} + + {{ formatNumberDecimal(v.discount, 2) }} ฿ + | {{ formatNumberDecimal(v.vat, 2) }} @@ -346,7 +352,6 @@ 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) + - (v.product.product.calcVat - ? calcPricePerUnit(v.product.product) * - (config?.vat || 0.07) - : 0), - 2, - ) - }} + | + {{ formatNumberDecimal(calcPricePerUnit(v.product.product), 2) }} | -- {{ - formatNumberDecimal( - calcPrice(v.product.product, v.list.length, v.product.vat), - 2, - ) - }} + | + {{ formatNumberDecimal(calcPrice(v.list), 2) }} | - {{ formatNumberDecimal(v.discount, 2) }} + + {{ formatNumberDecimal(v.discount, 2) }} ฿ + |
{{ formatNumberDecimal(v.vat, 2) }}
@@ -413,8 +435,8 @@ function print() {
{{
formatNumberDecimal(
summaryPrice.totalPrice -
- summaryPrice.totalDiscount +
- summaryPrice.vat,
+ summaryPrice.totalDiscount -
+ summaryPrice.vatExcluded,
2,
)
}}
@@ -492,9 +514,8 @@ function print() {
v-html="
convertTemplate(data?.remark || '', {
'quotation-payment': {
- paymentType: data?.payCondition || 'Full',
+ paymentType: '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 e9c4624d..cf2c055c 100644
--- a/src/pages/12_debit-note/document-view/ViewHeader.vue
+++ b/src/pages/12_debit-note/document-view/ViewHeader.vue
@@ -3,6 +3,7 @@ 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';
@@ -78,13 +79,16 @@ function titleMode(mode: View): string {
})
}}
- เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }}
- เบอร์โทร {{ branch.telephoneNo }}
+ {{ $t('branch.form.taxNo') }} {{ branch.taxNo }}
+ {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }}
{{ branch.webUrl }}
+ {{ getCustomerName(customer, { noCode: true, locale: 'tha' }) }}
+
{{
formatAddress({
address: customer.address,
@@ -101,8 +105,18 @@ function titleMode(mode: View): string {
})
}}
- เลขประจำตัวผู้เสียภาษี {{ customer.citizenId }}
- เบอร์โทร {{ customer.telephoneNo }}
+
+ {{
+ 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 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('general.status') }}
+
+
+
+
+
+
+
+ {{
+ $i18n.locale === 'eng'
+ ? props.row.nameEN
+ : props.row.name
+ }}
+
+
+ {{ props.row.code }}
+
+
+
+ {{ props.row.nameEN }}
+
+
+
+
+
+
+
+
+
+
+ '); } else { return [ - '**** เงื่อนไขเพิ่มเติม', - `- เงื่อนไขการชำระเงิน แบบแบ่งจ่าย${context?.paymentType === 'SplitCustom' ? ' กำหนดเอง ' : ' '}${context?.installments?.length} งวด`, - ...(context?.installments?.map( - (v) => - ` งวดที่ ${v.no} จำนวน ${formatNumberDecimal(v.amount, 2)}`, - ) || []), + `**** ${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)}`; + }) || []), ].join(' '); } }, @@ -73,14 +74,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() : branch.registerName}_` + + ` ${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}_` + `${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} ราคา ${price} บาท`, + `- ${item.product.name} ${i18n.global.t('price', { price: price })} `, '', ...list, '', |