Skip to content

Commit

Permalink
fix(moneymanagerex#82): take DELETEDTIME into account in Budget Monit…
Browse files Browse the repository at this point in the history
…oring
  • Loading branch information
nuvitong committed Jan 27, 2023
1 parent fd6686a commit c3d599a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/Budget/BudgetMonitoring/sqlcontent.sql
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ actuals AS (
where 1=1
and t.TransCode <> 'Transfer'
and t.Status <> 'V'
AND ifnull(t.deletedtime, '') = ''
and TransDate between (select begin_date from PeriodSelection limit 1) and (select end_date from PeriodSelection limit 1)
AND a.accountType NOT IN (SELECT accountType FROM IgnoredAccountTypes)
AND a.accountName NOT IN (SELECT accountName FROM IgnoredAccountNames)
Expand All @@ -160,6 +161,7 @@ actuals AS (
where 1=1
and t.TransCode = 'Transfer'
and t.Status <> 'V'
AND ifnull(t.deletedtime, '') = ''
and TransDate between (select begin_date from PeriodSelection limit 1) and (select end_date from PeriodSelection limit 1)
AND a.accountType NOT IN (SELECT accountType FROM IgnoredAccountTypes)
AND a.accountName NOT IN (SELECT accountName FROM IgnoredAccountNames)
Expand All @@ -176,6 +178,7 @@ actuals AS (
WHERE 1=1
AND t.TransCode = 'Transfer'
AND t.Status <> 'V'
AND ifnull(t.deletedtime, '') = ''
and TransDate between (select begin_date from PeriodSelection limit 1) and (select end_date from PeriodSelection limit 1)
AND a.accountType NOT IN (SELECT accountType FROM IgnoredAccountTypes)
AND a.accountName NOT IN (SELECT accountName FROM IgnoredAccountNames)
Expand Down

0 comments on commit c3d599a

Please sign in to comment.