feat: open status in bill.

This commit is contained in:
elforjani3
2020-12-16 12:55:01 +02:00
parent 153b71184f
commit cc1f81241c
8 changed files with 124 additions and 30 deletions

View File

@@ -138,4 +138,8 @@ export const fetchDueBills = ({ vendorId }) => (dispatch) => new Promise((resolv
}
resolve(response);
}).catch(error => { reject(error) });
});
});
export const openBill = ({ id }) => {
return (dispatch) => ApiService.post(`purchases/bills/${id}/open`);
};