mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix(WarehouseTransfer).
This commit is contained in:
@@ -246,3 +246,26 @@ export function useItemWarehouseLocation(id, props) {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {*} id
|
||||
* @param {*} query
|
||||
* @param {*} props
|
||||
* @returns
|
||||
*/
|
||||
export function useItemInventoryCost(query, props) {
|
||||
return useRequestQuery(
|
||||
['ITEM_INVENTORY_COST', query],
|
||||
{
|
||||
method: 'get',
|
||||
url: `inventory/items-cost`,
|
||||
params: { ...query },
|
||||
},
|
||||
{
|
||||
select: (res) => res.data.costs,
|
||||
defaultData: [],
|
||||
...props,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user