refactor(FE-208,212,213): add action field to staff approval request payloads and implement rejection handling in PurchaseOrderDetail

This commit is contained in:
rstubryan
2025-11-20 23:05:12 +07:00
parent 24e2bcf35d
commit a6d187a8b3
3 changed files with 77 additions and 1 deletions
+2
View File
@@ -79,6 +79,7 @@ export type CreatePurchaseRequestPayload = {
};
export type CreateStaffApprovalRequestPayload = {
action: 'APPROVED' | 'REJECTED';
notes?: string | null;
items: {
product_id: number;
@@ -90,6 +91,7 @@ export type CreateStaffApprovalRequestPayload = {
};
export type UpdateStaffApprovalRequestPayload = {
action: 'APPROVED' | 'REJECTED';
notes?: string | null;
items: {
purchase_item_id: number;