This commit is contained in:
2026-05-24 16:08:44 +03:30
parent 2db729c679
commit 1140fbae3c
11 changed files with 11 additions and 11 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>
+1 -1
View File
@@ -7,7 +7,7 @@ import { useGetInvoiceDetail } from './hooks/useInvoiceData';
import InvoicePaymentsSection from './components/InvoicePaymentsSection';
const formatAmount = (amount: number) =>
Number(amount).toLocaleString('fa-IR') + ' تومان';
Number(amount).toLocaleString('fa-IR') + ' ریال';
const DetailPerfomaInvoice: FC = () => {
const { id } = useParams<{ id: string }>();
+1 -1
View File
@@ -152,7 +152,7 @@ const ProformaInvoice: FC = () => {
title: 'مجموع',
render: (item) =>
item.total
? Number(item.total).toLocaleString('fa-IR') + ' تومان'
? Number(item.total).toLocaleString('fa-IR') + ' ریال'
: '-',
},
{
+1 -1
View File
@@ -304,7 +304,7 @@ const UpdateInvoice: 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>
@@ -99,7 +99,7 @@ const InvoiceItemRow: FC<Props> = ({
label="مبلغ کل"
readOnly
value={total >= 0 ? total.toLocaleString("fa-IR") : "۰"}
unit="تومان"
unit="ریال"
/>
</div>
@@ -42,7 +42,7 @@ const statusBadgeClass: Record<PaymentStatusEnum, string> = {
};
const formatAmount = (amount: number) =>
Number(amount).toLocaleString('fa-IR') + ' تومان';
Number(amount).toLocaleString('fa-IR') + ' ریال';
const InvoicePaymentsSection: FC<Props> = ({ invoiceId }) => {
const [page, setPage] = useState(1);
+1 -1
View File
@@ -155,7 +155,7 @@ const Order: FC<Props> = ({ addNewItem }) => {
<Input
{...formik.getFieldProps('discount')}
label='مبلغ تخفیف به تومان'
label='مبلغ تخفیف به ریال'
/>
</div>
@@ -179,7 +179,7 @@ const EditOrder: FC<Props> = ({ addNewItem, initialValues }) => {
<Input
{...formik.getFieldProps('discount')}
label='مبلغ تخفیف به تومان'
label='مبلغ تخفیف به ریال'
/>
</div>
+1 -1
View File
@@ -45,7 +45,7 @@ const statusBadgeClass: Record<PaymentStatusEnum, string> = {
};
const formatAmount = (amount: number) =>
Number(amount).toLocaleString('fa-IR') + ' تومان';
Number(amount).toLocaleString('fa-IR') + ' ریال';
const getCustomerName = (item: PaymentType) => {
const user = item.invoice?.user;
+1 -1
View File
@@ -122,7 +122,7 @@ const CreateUser: FC = () => {
<div className="mt-6">
<Input
label="حداکثر اعتبار (تومان)"
label="حداکثر اعتبار (ریال)"
type="number"
min={0}
placeholder="۰"
+1 -1
View File
@@ -168,7 +168,7 @@ const UpdateUser: FC = () => {
<div className="mt-6">
<Input
label="حداکثر اعتبار (تومان)"
label="حداکثر اعتبار (ریال)"
type="number"
min={0}
placeholder="۰"