mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Small but expensive changes to audit report.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user