WIP: allocate landed cost.

This commit is contained in:
a.bouhuolia
2021-07-25 12:58:33 +02:00
parent 95edfe66b0
commit 77d987ef1f
13 changed files with 108 additions and 92 deletions

View File

@@ -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.