feat: add number format

This commit is contained in:
2021-12-17 13:30:35 +07:00
parent 8c9a3b05de
commit b1317d141c
4 changed files with 63 additions and 46 deletions

View File

@@ -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

View File

@@ -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",