fix: specific account transactions.

fix: specific expense associated expense account graph.
fix: specific manual journal associated account and contact graph.
This commit is contained in:
a.bouhuolia
2021-04-25 23:41:54 +02:00
parent fcc95d9e01
commit c75109a975
7 changed files with 102 additions and 4 deletions

View File

@@ -641,7 +641,7 @@ export default class ExpensesService implements IExpensesService {
const expense = await expenseRepository.findOneById(expenseId, [
'paymentAccount',
'categories',
'categories.expenseAccount',
]);
if (!expense) {
throw new ServiceError(ERRORS.EXPENSE_NOT_FOUND);