feat: add delete reconcile & handle error.

This commit is contained in:
elforjani13
2021-12-08 18:51:21 +02:00
parent 56b1c36c9d
commit a948dd4236
7 changed files with 223 additions and 4 deletions

View File

@@ -125,6 +125,16 @@ export const handleDeleteErrors = (errors) => {
intent: Intent.DANGER,
});
}
if (
errors.find((error) => error.type === 'BILL_HAS_APPLIED_TO_VENDOR_CREDIT')
) {
AppToaster.show({
message: intl.get(
'bills.error.you_couldn_t_delete_bill_has_reconciled_with_vendor_credit',
),
intent: Intent.DANGER,
});
}
};
/**