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

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