feat(warehouse) add warehouse propover.

This commit is contained in:
elforjani13
2022-01-30 18:04:56 +02:00
parent e4af460c0d
commit 2aa26959e9
6 changed files with 198 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
import React from 'react';
import { RadioFieldCell } from 'components/DataTableCells';
/**
* Retrieve warehouse entries columns.
*/
export function useWarehouseEntriesColumns() {
return React.useMemo(
() => [
{
Header: 'Warehouse Name',
accessor: 'warehouse_name',
Cell: RadioFieldCell,
width: 120,
disableSortBy: true,
className: 'name',
},
{
id: 'quantity',
Header: 'Quantity on Hand',
accessor: 'quantity',
disableSortBy: true,
align: 'right',
width: '100',
},
{
id: 'availiable_for_sale',
Header: 'Availiable for Sale',
accessor: 'availiable_for_sale',
disableSortBy: true,
align: 'right',
width: '100',
},
],
[],
);
}