fix price
This commit is contained in:
@@ -130,9 +130,10 @@ import { canRetryPargar, pargarStatusLabel } from '@/pages/menuPages/accounting/
|
||||
import {
|
||||
formatTransactionAmount,
|
||||
parsePargarPayload,
|
||||
pargarAmountLabel,
|
||||
pargarCustomerLabel,
|
||||
pargarDescLabel,
|
||||
pargarMetalAmountLabel,
|
||||
pargarRialAmountLabel,
|
||||
pargarTypeLabel
|
||||
} from '@/pages/menuPages/accounting/utils/pargarDisplay'
|
||||
import { toJalali } from '@core/utils/useDataTime'
|
||||
@@ -155,7 +156,23 @@ const columns = [
|
||||
},
|
||||
{ title: 'مشتری', dataIndex: 'customer.name', key: 'customer.name', type: 'Text', customRender: (r: any) => pargarCustomerLabel(r.record) },
|
||||
{ title: 'نوع', dataIndex: 'type', key: 'type', type: 'Text', customRender: (r: any) => pargarTypeLabel(r.record.type) },
|
||||
{ title: 'مقدار', dataIndex: 'amount', key: 'amount', type: 'Number', customRender: (r: any) => pargarAmountLabel(r.record) },
|
||||
{
|
||||
title: 'مقدار',
|
||||
dataIndex: 'amount',
|
||||
key: 'amount',
|
||||
type: 'Number',
|
||||
filterable: false,
|
||||
customRender: (r: any) => pargarMetalAmountLabel(r.record),
|
||||
},
|
||||
{
|
||||
title: 'مبلغ ریالی',
|
||||
dataIndex: 'rial_amount',
|
||||
key: 'rial_amount',
|
||||
type: 'Text',
|
||||
filterable: false,
|
||||
sortable: false,
|
||||
customRender: (r: any) => pargarRialAmountLabel(r.record),
|
||||
},
|
||||
{ title: 'شرح', dataIndex: 'desc', key: 'desc', type: 'Text', customRender: (r: any) => pargarDescLabel(r.record) },
|
||||
{
|
||||
title: 'وضعیت',
|
||||
@@ -197,7 +214,8 @@ const infoItems = computed(() => {
|
||||
{ label: 'موبایل', value: row.customer?.mobile || '-' },
|
||||
{ label: 'کد حساب پرگار', value: payload?.accountId || row.pargar_ref || '-' },
|
||||
{ label: 'نوع', value: pargarTypeLabel(row.type) },
|
||||
{ label: 'مقدار', value: pargarAmountLabel(row) },
|
||||
{ label: 'مقدار', value: pargarMetalAmountLabel(row) },
|
||||
{ label: 'مبلغ ریالی', value: pargarRialAmountLabel(row) },
|
||||
{ label: 'شرح', value: pargarDescLabel(row) },
|
||||
{ label: 'تعداد سطر سند', value: payload?.transactions.length ? String(payload.transactions.length) : '-' },
|
||||
{ label: 'زمان ثبت', value: row.created_at ? toJalali(row.created_at) : '-' },
|
||||
|
||||
Reference in New Issue
Block a user