Merge branch 'devops-staging' into 'main'
Devops staging See merge request empatnusabangsa/ppob/ppob-frontend!183
This commit is contained in:
commit
37a73aeeeb
|
@ -196,6 +196,18 @@ export const DetailUser = observer(() => {
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
key: "name",
|
key: "name",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Supplier",
|
||||||
|
dataIndex: "supplier_name",
|
||||||
|
key: "supplier_name",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Profit Produk",
|
||||||
|
dataIndex: "profit_produk",
|
||||||
|
key: "",
|
||||||
|
render: (text, record) =>
|
||||||
|
record.price - record.product_price
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Harga",
|
title: "Harga",
|
||||||
dataIndex: "price",
|
dataIndex: "price",
|
||||||
|
@ -274,6 +286,8 @@ export const DetailUser = observer(() => {
|
||||||
key: "failed_reason",
|
key: "failed_reason",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
if (store.authentication.userData.role !== "Admin") delete column[1];
|
||||||
|
if (store.authentication.userData.role !== "Admin") delete column[2];
|
||||||
|
|
||||||
const routeData = [
|
const routeData = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user