mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: wip uncategorize bank transaction
This commit is contained in:
@@ -85,3 +85,12 @@ export const validateUncategorizedTransactionsNotExcluded = (
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const validateTransactionShouldBeCategorized = (
|
||||
uncategorizedTransaction: any
|
||||
) => {
|
||||
if (!uncategorizedTransaction.categorized) {
|
||||
throw new ServiceError(ERRORS.TRANSACTION_NOT_CATEGORIZED);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user