[FIX] Credit and debit were being calculated wrong

Merged Gabriel Davini requested to merge 8.0-FIX_credit_debit_computation into 8.0-stage

Merge request reports