feat: add column partner fee in detail product role admin
This commit is contained in:
parent
6598dff0ba
commit
cd3d61d5f5
|
@ -136,6 +136,7 @@ export const ProductComponent = observer((props) => {
|
||||||
{
|
{
|
||||||
title: "Tindakan",
|
title: "Tindakan",
|
||||||
key: "action",
|
key: "action",
|
||||||
|
fixed: 'right',
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
|
@ -303,6 +304,7 @@ export const ProductComponent = observer((props) => {
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
width: store.ui.mediaQuery.isMobile ? 250 : "",
|
width: store.ui.mediaQuery.isMobile ? 250 : "",
|
||||||
}}
|
}}
|
||||||
|
scroll={role === "Admin Partner" ? false : { x: 1300 }}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
dataSource={
|
dataSource={
|
||||||
store.authentication.userData.role === "Admin Partner"
|
store.authentication.userData.role === "Admin Partner"
|
||||||
|
|
|
@ -81,6 +81,15 @@ export const ProductDetail = observer(() => {
|
||||||
style: "currency",
|
style: "currency",
|
||||||
currency: "IDR",
|
currency: "IDR",
|
||||||
}).format(text),
|
}).format(text),
|
||||||
|
}, {
|
||||||
|
title: "Partner fee",
|
||||||
|
dataIndex: "partner_fee",
|
||||||
|
key: "partner_fee",
|
||||||
|
render: (text) =>
|
||||||
|
new Intl.NumberFormat("id-ID", {
|
||||||
|
style: "currency",
|
||||||
|
currency: "IDR",
|
||||||
|
}).format(text),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Tanggal Berlaku",
|
title: "Tanggal Berlaku",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user