Merge branch 'main' into 'devops-production'

Revert "fix product filter when page 2 and then filter didn't detect list item < 10"

See merge request empatnusabangsa/ppob/ppob-frontend!184
This commit is contained in:
Rahman Efendi 2022-08-05 05:44:54 +00:00
commit 784e4a71f6

View File

@ -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 = [
{ {