rial
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>
|
||||
|
||||
@@ -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 }>();
|
||||
|
||||
@@ -152,7 +152,7 @@ const ProformaInvoice: FC = () => {
|
||||
title: 'مجموع',
|
||||
render: (item) =>
|
||||
item.total
|
||||
? Number(item.total).toLocaleString('fa-IR') + ' تومان'
|
||||
? Number(item.total).toLocaleString('fa-IR') + ' ریال'
|
||||
: '-',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -122,7 +122,7 @@ const CreateUser: FC = () => {
|
||||
|
||||
<div className="mt-6">
|
||||
<Input
|
||||
label="حداکثر اعتبار (تومان)"
|
||||
label="حداکثر اعتبار (ریال)"
|
||||
type="number"
|
||||
min={0}
|
||||
placeholder="۰"
|
||||
|
||||
@@ -168,7 +168,7 @@ const UpdateUser: FC = () => {
|
||||
|
||||
<div className="mt-6">
|
||||
<Input
|
||||
label="حداکثر اعتبار (تومان)"
|
||||
label="حداکثر اعتبار (ریال)"
|
||||
type="number"
|
||||
min={0}
|
||||
placeholder="۰"
|
||||
|
||||
Reference in New Issue
Block a user