mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
25 lines
736 B
JavaScript
25 lines
736 B
JavaScript
import React from 'react';
|
|
|
|
import { CommercialDocEntriesTable } from 'components';
|
|
import { useInventoryAdjustmentEntriesColumns } from './utils';
|
|
import { useInventoryAdjustmentDrawerContext } from './InventoryAdjustmentDrawerProvider';
|
|
|
|
/**
|
|
* Inventory adjustment detail entries table.
|
|
*/
|
|
export default function InventoryAdjustmentDetailTable() {
|
|
// Inventory adjustment entries columns.
|
|
const columns = useInventoryAdjustmentEntriesColumns();
|
|
|
|
// Inventory adjustment details drawer context.
|
|
const { inventoryAdjustment } = useInventoryAdjustmentDrawerContext();
|
|
|
|
return (
|
|
<CommercialDocEntriesTable
|
|
columns={columns}
|
|
data={inventoryAdjustment.entries}
|
|
className={'table-constrant'}
|
|
/>
|
|
);
|
|
}
|