mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat: editable po_date
This commit is contained in:
@@ -115,6 +115,19 @@ export const PurchaseApi = {
|
||||
},
|
||||
},
|
||||
|
||||
updatePoDate: async (
|
||||
purchaseRequestId: number,
|
||||
payload: { po_date: string }
|
||||
): Promise<BaseApiResponse<Purchase> | undefined> => {
|
||||
return await basePurchaseApi.customRequest<BaseApiResponse<Purchase>>(
|
||||
`${purchaseRequestId}/po-date`,
|
||||
{
|
||||
method: 'PATCH',
|
||||
payload,
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
async exportToExcel(initialQueryString: string) {
|
||||
const params = new URLSearchParams(initialQueryString);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user