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="text-[#888888] text-[13px]">مبلغ کل:</div>
<div className="font-semibold text-[13px]">
{totalAmount.toLocaleString("fa-IR")} ریال
{totalAmount.toLocaleString("fa-IR")} تومان
</div>
</div>
</div>
+7 -8
View File
@@ -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>