mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: add delete reconcile & handle error.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user