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="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,7 +7,7 @@ import { useGetInvoiceDetail } from './hooks/useInvoiceData';
|
|||||||
import InvoicePaymentsSection from './components/InvoicePaymentsSection';
|
import InvoicePaymentsSection from './components/InvoicePaymentsSection';
|
||||||
|
|
||||||
const formatAmount = (amount: number) =>
|
const formatAmount = (amount: number) =>
|
||||||
Number(amount).toLocaleString('fa-IR') + ' تومان';
|
Number(amount).toLocaleString('fa-IR') + ' ریال';
|
||||||
|
|
||||||
const DetailPerfomaInvoice: FC = () => {
|
const DetailPerfomaInvoice: FC = () => {
|
||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
|
|||||||
@@ -152,7 +152,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') + ' ریال'
|
||||||
: '-',
|
: '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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="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>
|
||||||
|
|||||||
@@ -99,7 +99,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>
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const statusBadgeClass: Record<PaymentStatusEnum, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatAmount = (amount: number) =>
|
const formatAmount = (amount: number) =>
|
||||||
Number(amount).toLocaleString('fa-IR') + ' تومان';
|
Number(amount).toLocaleString('fa-IR') + ' ریال';
|
||||||
|
|
||||||
const InvoicePaymentsSection: FC<Props> = ({ invoiceId }) => {
|
const InvoicePaymentsSection: FC<Props> = ({ invoiceId }) => {
|
||||||
const [page, setPage] = useState(1);
|
const [page, setPage] = useState(1);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ const Order: FC<Props> = ({ addNewItem }) => {
|
|||||||
|
|
||||||
<Input
|
<Input
|
||||||
{...formik.getFieldProps('discount')}
|
{...formik.getFieldProps('discount')}
|
||||||
label='مبلغ تخفیف به تومان'
|
label='مبلغ تخفیف به ریال'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ const EditOrder: FC<Props> = ({ addNewItem, initialValues }) => {
|
|||||||
|
|
||||||
<Input
|
<Input
|
||||||
{...formik.getFieldProps('discount')}
|
{...formik.getFieldProps('discount')}
|
||||||
label='مبلغ تخفیف به تومان'
|
label='مبلغ تخفیف به ریال'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const statusBadgeClass: Record<PaymentStatusEnum, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatAmount = (amount: number) =>
|
const formatAmount = (amount: number) =>
|
||||||
Number(amount).toLocaleString('fa-IR') + ' تومان';
|
Number(amount).toLocaleString('fa-IR') + ' ریال';
|
||||||
|
|
||||||
const getCustomerName = (item: PaymentType) => {
|
const getCustomerName = (item: PaymentType) => {
|
||||||
const user = item.invoice?.user;
|
const user = item.invoice?.user;
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ const CreateUser: FC = () => {
|
|||||||
|
|
||||||
<div className="mt-6">
|
<div className="mt-6">
|
||||||
<Input
|
<Input
|
||||||
label="حداکثر اعتبار (تومان)"
|
label="حداکثر اعتبار (ریال)"
|
||||||
type="number"
|
type="number"
|
||||||
min={0}
|
min={0}
|
||||||
placeholder="۰"
|
placeholder="۰"
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const UpdateUser: FC = () => {
|
|||||||
|
|
||||||
<div className="mt-6">
|
<div className="mt-6">
|
||||||
<Input
|
<Input
|
||||||
label="حداکثر اعتبار (تومان)"
|
label="حداکثر اعتبار (ریال)"
|
||||||
type="number"
|
type="number"
|
||||||
min={0}
|
min={0}
|
||||||
placeholder="۰"
|
placeholder="۰"
|
||||||
|
|||||||
Reference in New Issue
Block a user