feat: add column sisa saldo in admin partner

This commit is contained in:
rahman 2022-08-12 18:28:38 +07:00
parent fcbc1640ca
commit 8946922b5b

View File

@ -168,6 +168,16 @@ export const Profile = observer(() => {
currency: "IDR",
}).format(text),
},
{
title: "Sisa Saldo",
dataIndex: "balance_remaining",
key: "balance_remaining",
render: (text) =>
new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(text),
},
{
title: "Pembeli",
dataIndex: "buyer",
@ -342,6 +352,7 @@ export const Profile = observer(() => {
},
},
];
if (store.authentication.userData.role !== "Admin Partner") delete columns[2];
const styleSaldoTitle = store.ui.mediaQuery.isDesktop
? {
display: "flex",