feat: add number format
This commit is contained in:
@@ -286,7 +286,19 @@ export const PartnerComponent = observer((props) => {
|
||||
<Input />
|
||||
</Form.Item>
|
||||
)}
|
||||
|
||||
{!idData && (
|
||||
<Form.Item
|
||||
name="phone_number"
|
||||
label="Phone Number"
|
||||
rules={[
|
||||
idData
|
||||
? { required: false }
|
||||
: { required: true, message: "Please input password phone number!" },
|
||||
]}
|
||||
>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
)}
|
||||
{!isChangePassword && (
|
||||
<>
|
||||
<Form.Item
|
||||
|
||||
@@ -66,10 +66,12 @@ export const SupplierComponent = observer((props) => {
|
||||
key: ["coa", "amount"],
|
||||
width: "20%",
|
||||
render: (text, record) =>
|
||||
new Intl.NumberFormat("id-ID", {
|
||||
style: "currency",
|
||||
currency: "IDR",
|
||||
}).format(text),
|
||||
text
|
||||
? new Intl.NumberFormat("id-ID", {
|
||||
style: "currency",
|
||||
currency: "IDR",
|
||||
}).format(text)
|
||||
: "-",
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
|
||||
Reference in New Issue
Block a user