mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
WIP: allocate landed cost.
This commit is contained in:
@@ -21,7 +21,8 @@ export function useCreateLandedCost(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
(id) => apiRequest.post(`purchases/landed-cost/bills/${id}/allocate`),
|
||||
([id, values]) =>
|
||||
apiRequest.post(`purchases/landed-cost/bills/${id}/allocate`, values),
|
||||
{
|
||||
onSuccess: (res, id) => {
|
||||
// Common invalidate queries.
|
||||
|
||||
Reference in New Issue
Block a user