rial to toman

This commit is contained in:
hamid zarghami
2026-02-21 12:34:27 +03:30
parent 369ad837ee
commit 1cf254de13
3 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -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="mt-6 bg-[#F5F7FC] h-12 px-4 flex justify-between items-center rounded-xl">
<div className="text-[#888888] text-[13px]">مبلغ کل:</div> <div className="text-[#888888] text-[13px]">مبلغ کل:</div>
<div className="font-semibold text-[13px]"> <div className="font-semibold text-[13px]">
{totalAmount.toLocaleString("fa-IR")} ریال {totalAmount.toLocaleString("fa-IR")} تومان
</div> </div>
</div> </div>
</div> </div>
+7 -8
View File
@@ -150,7 +150,7 @@ const ProformaInvoice: FC = () => {
title: 'مجموع', title: 'مجموع',
render: (item) => render: (item) =>
item.total 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) const confirmed = isInvoiceConfirmed(item.status)
return ( return (
<span <span
className={`inline-flex h-6 items-center rounded-full px-2.5 text-xs ${ 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 ? 'bg-green-100 text-green-800' : 'bg-amber-100 text-amber-800' }`}
}`}
> >
{confirmed ? 'تایید شده' : 'تایید نشده'} {confirmed ? 'تایید شده' : 'تایید نشده'}
</span> </span>
@@ -190,10 +189,10 @@ const ProformaInvoice: FC = () => {
pagination={ pagination={
meta && meta.totalPages > 1 meta && meta.totalPages > 1
? { ? {
currentPage: meta.page, currentPage: meta.page,
totalPages: meta.totalPages, totalPages: meta.totalPages,
onPageChange: setPage, onPageChange: setPage,
} }
: undefined : undefined
} }
/> />
@@ -94,7 +94,7 @@ const InvoiceItemRow: FC<Props> = ({
label="مبلغ کل" label="مبلغ کل"
readOnly readOnly
value={total >= 0 ? total.toLocaleString("fa-IR") : "۰"} value={total >= 0 ? total.toLocaleString("fa-IR") : "۰"}
unit="ریال" unit="تومان"
/> />
</div> </div>