Skip to content

Void Transaction are considered in cashflow report (both daily, montly, and transaction) #5437

@wolfsolver

Description

@wolfsolver

MMEX version:

  • 1.5.21
  • 1.6.0
  • 1.6.1
  • 1.6.2 Alpha
  • Other (please specify)

Note: bug reporters are expected to have verified the bug still exists
either in the last stable version of MMEX or on updated development code
(master branch).

Operating System:

  • Windows
  • Mac OSX (not tested)
  • Linux

Description of the bug

Recurring Transaction "VOID" expected to not be consider in cashflow.
example:

  • homepage sample screen with cash account 1-homepage
  • sample recurring transaction of type withdrawal "void"

2-recurring-void

* example of cashflow with evidence of "decrese" total

3-cashflow

Reproduction

Is the bug reproducible?

  • Always
  • Randomly
  • Happened only once

Reproduction steps:
as example here a file https://1drv.ms/u/s!AtPBR0zMvFhpjfxXOZmALjbz4HeE2w?e=QvTdJs
Step:

  • Create Recurring void Transaction
  • open Cashflow
  • see that amount of recurring void transaction is consider

Expected result:
Void transaction does not alter the total for account

Actual result:
void transaction alter the total for account

Additional information

Issue is present for any type of transaction (deposit, withdrawal and transfert).
I suppose that this need to be done on "cashflow.cpp" in function mmReportCashFlow::trueAmount by checking if transaction isf of type VOID. Suppose (but not sure) after line 45 somethings like
if (trx.STATUS == Model_Checking::VOID_) return 0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions