refactor: view document customer name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
puriphatt 2025-07-14 09:57:01 +07:00
parent 22e11cf699
commit 40e6d1ba1c
3 changed files with 6 additions and 0 deletions

View file

@ -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';
@ -85,6 +86,7 @@ function titleMode(mode: View): string {
<article>
<b>{{ $t('quotation.customer') }}</b>
<span>
{{ getCustomerName(customer, { noCode: true, locale: 'tha' }) }}
{{
formatAddress({
address: customer.address,

View file

@ -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';
@ -85,6 +86,7 @@ function titleMode(mode: View): string {
<article>
<b>กค</b>
<span>
{{ getCustomerName(customer, { noCode: true, locale: 'tha' }) }}
{{
formatAddress({
address: customer.address,

View file

@ -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';
@ -85,6 +86,7 @@ function titleMode(mode: View): string {
<article>
<b>กค</b>
<span>
{{ getCustomerName(customer, { noCode: true, locale: 'tha' }) }}
{{
formatAddress({
address: customer.address,