Merge branch 'devops-staging' into 'main'

Devops staging

See merge request empatnusabangsa/ppob/ppob-frontend!183
This commit is contained in:
Rahman Efendi 2022-08-05 05:43:45 +00:00
commit 37a73aeeeb

View File

@ -196,6 +196,18 @@ export const DetailUser = observer(() => {
dataIndex: "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",
dataIndex: "price",
@ -274,6 +286,8 @@ export const DetailUser = observer(() => {
key: "failed_reason",
},
];
if (store.authentication.userData.role !== "Admin") delete column[1];
if (store.authentication.userData.role !== "Admin") delete column[2];
const routeData = [
{