feat: editable po_date

This commit is contained in:
Adnan Zahir
2026-04-25 22:47:59 +07:00
parent 2b3b6b9549
commit a1a0b71814
3 changed files with 219 additions and 21 deletions
+13
View File
@@ -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);