Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Merge branch 'develop' into 5.8-dev
James Coleeff631276ea4
diff --cc app/TransactionRules/Actions/UpdatePiggybank.phpindex 71e0c3cd30,85584d7c09..2f55051b10--- a/app/TransactionRules/Actions/UpdatePiggybank.php+++ b/app/TransactionRules/Actions/UpdatePiggybank.php@@@ -89,18 -88,14 +89,18 @@@ class UpdatePiggybank implements Actionif ((int)$source->account_id === (int)$piggyBank->account_id) {Log::debug('Piggy bank account is linked to source, so remove amount from piggy bank.');- $this->removeAmount($journal, $piggyBank, $destination->amount);+ $this->removeAmount($piggyBank, $journalObj, $destination->amount);+ event(new TriggeredAuditLog($this->action->rule, $journalObj, 'remove_from_piggy', null, ['currency_symbol' => $journalObj->transactionCurrency->symbol, 'decimal_places' => $journalObj->transactionCurrency->decimal_places, 'amount' => $destination->amount, 'piggy' => $piggyBank->name]));+return true;}if ((int)$destination->account_id === (int)$piggyBank->account_id) {Log::debug('Piggy bank account is linked to source, so add amount to piggy bank.');- $this->addAmount($journal, $piggyBank, $destination->amount);+ $this->addAmount($piggyBank, $journalObj, $destination->amount);+ event(new TriggeredAuditLog($this->action->rule, $journalObj, 'add_to_piggy', null, ['currency_symbol' => $journalObj->transactionCurrency->symbol, 'decimal_places' => $journalObj->transactionCurrency->decimal_places, 'amount' => $destination->amount, 'piggy' => $piggyBank->name]));+return true;}Log::info(