feat(FE-311): Disable approval actions when rejected

This commit is contained in:
rstubryan
2025-12-10 13:56:13 +07:00
parent 429f5ffb62
commit 7be32326a9
3 changed files with 11 additions and 3 deletions
@@ -180,7 +180,10 @@ const PurchaseOrderDetail = ({
});
const showApprovalButton =
approvalStep !== null && approvalStep >= 1 && approvalStep <= 3;
approvalStep !== null &&
approvalStep >= 1 &&
approvalStep <= 3 &&
initialValues?.latest_approval?.action !== 'REJECTED';
const canDeleteItems = useMemo(() => {
if (!initialValues?.latest_approval) return false;