Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Small but expensive changes to audit report.
James Cole109d96ad16ca
diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.phpindex 2f2d480b73..04a20db7f5 100644--- a/app/Http/Controllers/ReportController.php+++ b/app/Http/Controllers/ReportController.php@@ -177,11 +177,11 @@ class ReportController extends Controller/** @var TransactionJournal $journal */foreach ($journals as $journal) {$journal->before = $startBalance;- $transactionAmount = $journal->source_amount;+ $transactionAmount = TransactionJournal::amount($journal);// get currently relevant transaction:if (intval($journal->destination_account_id) === $account->id) {- $transactionAmount = $journal->destination_amount;+ $transactionAmount = TransactionJournal::amountPositive($journal);}$newBalance = bcadd($startBalance, $transactionAmount);$journal->after = $newBalance;diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex b886ce6817..adaa5586c7 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -656,6 +656,7 @@ return ['report_audit' => 'Transaction history overview for :start until :end','quick_link_reports' => 'Quick links','quick_link_default_report' => 'Default financial report',+ 'quick_link_audit_report' => 'Transaction history overview','report_this_month_quick' => 'Current month, all accounts','report_this_year_quick' => 'Current year, all accounts','report_this_fiscal_year_quick' => 'Current fiscal year, all accounts',