import { IProductSearchColumn } from "PosApi/Extend/Views/SearchView";
import { ICustomColumnsContext } from "PosApi/Extend/Views/CustomListColumns";
import { ProxyEntities } from "PosApi/Entities";
export default (context: ICustomColumnsContext): IProductSearchColumn[] => {
return [
{
title: "PRODUCT NUMBER",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.ProductNumber; },
ratio: 20,
collapseOrder: 1,
minWidth: 120
},
{
title: "PRODUCT NAME",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.Name; },
ratio: 20,
collapseOrder: 2,
minWidth: 120
},
{
title: "ORIGINAL PRICE",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.""; },
ratio: 15,
collapseOrder: 3,
minWidth: 120
},
{
title: "CURRENT price",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row."" ;},
ratio: 15,
collapseOrder: 4,
minWidth: 120
},
{
title: "rating",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row."" ;},
ratio: 20,
collapseOrder: 5,
minWidth: 120
},
{
title: " inventory",
computeValue: (row: ProxyEntities.ProductSearchResult): string => { return row.""; },
ratio: 10,
collapseOrder: 6,
minWidth: 120
}
];
};