- fix filter list product when in page 2 dst
- add biaya admin in list product
This commit is contained in:
parent
3def5a72aa
commit
e1c7c673a7
|
@ -89,6 +89,16 @@ export const ProductComponent = observer((props) => {
|
|||
currency: "IDR",
|
||||
}).format(text),
|
||||
},
|
||||
{
|
||||
title: "Biaya Admin",
|
||||
dataIndex: "admin_price",
|
||||
key: "admin_price",
|
||||
render: (text) =>
|
||||
new Intl.NumberFormat("id-ID", {
|
||||
style: "currency",
|
||||
currency: "IDR",
|
||||
}).format(text),
|
||||
},
|
||||
{
|
||||
title: "Supplier",
|
||||
dataIndex: "supplier_name",
|
||||
|
@ -303,6 +313,7 @@ export const ProductComponent = observer((props) => {
|
|||
let pageNumber = page.current;
|
||||
store.authentication.userData.role === "Admin" ? store.product.pageSize = page.pageSize : store.product.pageSizeProductPartner = page.pageSize;
|
||||
store.authentication.userData.role === "Admin" ? store.product.page = pageNumber - 1 : store.product.pageProductPartner = pageNumber - 1
|
||||
store.product.filterSubCategory = filterSubCategories
|
||||
modalLoader.setLoading(true);
|
||||
store.authentication.userData.role === "Admin Partner"
|
||||
? await store.product.getProductPartner(
|
||||
|
|
|
@ -72,6 +72,16 @@ export const ProductDetail = observer(() => {
|
|||
currency: "IDR",
|
||||
}).format(text),
|
||||
},
|
||||
{
|
||||
title: "Biaya Admin",
|
||||
dataIndex: "admin_price",
|
||||
key: "admin_price",
|
||||
render: (text) =>
|
||||
new Intl.NumberFormat("id-ID", {
|
||||
style: "currency",
|
||||
currency: "IDR",
|
||||
}).format(text),
|
||||
},
|
||||
{
|
||||
title: "Tanggal Berlaku",
|
||||
dataIndex: "startDate",
|
||||
|
|
Loading…
Reference in New Issue
Block a user