mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
fix(finance): preserve visibility and settlement updates
This commit is contained in:
@@ -111,10 +111,11 @@ export function buildCategoryBreakdownData({
|
||||
});
|
||||
}
|
||||
|
||||
categories.sort((a, b) => b.currentAmount - a.currentAmount);
|
||||
const filtered = categories.filter((c) => c.currentAmount > 0);
|
||||
filtered.sort((a, b) => b.currentAmount - a.currentAmount);
|
||||
|
||||
return {
|
||||
categories,
|
||||
categories: filtered,
|
||||
currentTotal,
|
||||
previousTotal,
|
||||
};
|
||||
|
||||
@@ -111,6 +111,7 @@ export async function fetchCategoryDetails(
|
||||
sanitizedNote,
|
||||
eq(transactions.period, previousPeriod),
|
||||
or(
|
||||
isNull(transactions.note),
|
||||
ne(transactions.note, INITIAL_BALANCE_NOTE),
|
||||
isNull(financialAccounts.excludeInitialBalanceFromIncome),
|
||||
eq(financialAccounts.excludeInitialBalanceFromIncome, false),
|
||||
|
||||
@@ -50,6 +50,7 @@ export const excludeAutoGeneratedEntryNotes = () =>
|
||||
|
||||
export const excludeInitialBalanceWhenConfigured = () =>
|
||||
or(
|
||||
isNull(transactions.note),
|
||||
ne(transactions.note, INITIAL_BALANCE_NOTE),
|
||||
isNull(financialAccounts.excludeInitialBalanceFromIncome),
|
||||
eq(financialAccounts.excludeInitialBalanceFromIncome, false),
|
||||
|
||||
Reference in New Issue
Block a user