rial to toman
This commit is contained in:
@@ -257,7 +257,7 @@ const CreateInvoice: FC = () => {
|
||||
<div className="mt-6 bg-[#F5F7FC] h-12 px-4 flex justify-between items-center rounded-xl">
|
||||
<div className="text-[#888888] text-[13px]">مبلغ کل:</div>
|
||||
<div className="font-semibold text-[13px]">
|
||||
{totalAmount.toLocaleString("fa-IR")} ریال
|
||||
{totalAmount.toLocaleString("fa-IR")} تومان
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -150,7 +150,7 @@ const ProformaInvoice: FC = () => {
|
||||
title: 'مجموع',
|
||||
render: (item) =>
|
||||
item.total
|
||||
? Number(item.total).toLocaleString('fa-IR') + ' ریال'
|
||||
? Number(item.total).toLocaleString('fa-IR') + ' تومان'
|
||||
: '-',
|
||||
},
|
||||
{
|
||||
@@ -160,9 +160,8 @@ const ProformaInvoice: FC = () => {
|
||||
const confirmed = isInvoiceConfirmed(item.status)
|
||||
return (
|
||||
<span
|
||||
className={`inline-flex h-6 items-center rounded-full px-2.5 text-xs ${
|
||||
confirmed ? 'bg-green-100 text-green-800' : 'bg-amber-100 text-amber-800'
|
||||
}`}
|
||||
className={`inline-flex h-6 items-center rounded-full px-2.5 text-xs ${confirmed ? 'bg-green-100 text-green-800' : 'bg-amber-100 text-amber-800'
|
||||
}`}
|
||||
>
|
||||
{confirmed ? 'تایید شده' : 'تایید نشده'}
|
||||
</span>
|
||||
@@ -190,10 +189,10 @@ const ProformaInvoice: FC = () => {
|
||||
pagination={
|
||||
meta && meta.totalPages > 1
|
||||
? {
|
||||
currentPage: meta.page,
|
||||
totalPages: meta.totalPages,
|
||||
onPageChange: setPage,
|
||||
}
|
||||
currentPage: meta.page,
|
||||
totalPages: meta.totalPages,
|
||||
onPageChange: setPage,
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -94,7 +94,7 @@ const InvoiceItemRow: FC<Props> = ({
|
||||
label="مبلغ کل"
|
||||
readOnly
|
||||
value={total >= 0 ? total.toLocaleString("fa-IR") : "۰"}
|
||||
unit="ریال"
|
||||
unit="تومان"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user