mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Small updates for 3.9.1
This commit is contained in:
parent
8091dbfdfa
commit
08ff08685c
@ -32,10 +32,11 @@ class ConnectTransactionToPiggyBank
|
|||||||
*/
|
*/
|
||||||
public function handle(TransactionStored $event): bool
|
public function handle(TransactionStored $event): bool
|
||||||
{
|
{
|
||||||
echo '<pre>';
|
|
||||||
/** @var PiggyBankRepositoryInterface $repository */
|
/** @var PiggyBankRepositoryInterface $repository */
|
||||||
$repository = app(PiggyBankRepositoryInterface::class);
|
$repository = app(PiggyBankRepositoryInterface::class);
|
||||||
$transaction = $event->transaction;
|
$transaction = $event->transaction;
|
||||||
|
|
||||||
$piggyBank = $repository->find($transaction['piggy_bank_id']);
|
$piggyBank = $repository->find($transaction['piggy_bank_id']);
|
||||||
|
|
||||||
// valid piggy:
|
// valid piggy:
|
||||||
|
@ -34,6 +34,10 @@ class UpdateJournalConnection
|
|||||||
{
|
{
|
||||||
$journal = $event->journal;
|
$journal = $event->journal;
|
||||||
|
|
||||||
|
if (!$journal->isTransfer()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// get the event connected to this journal:
|
// get the event connected to this journal:
|
||||||
/** @var PiggyBankEvent $event */
|
/** @var PiggyBankEvent $event */
|
||||||
$event = PiggyBankEvent::where('transaction_journal_id', $journal->id)->first();
|
$event = PiggyBankEvent::where('transaction_journal_id', $journal->id)->first();
|
||||||
|
@ -4,7 +4,7 @@ declare(strict_types = 1);
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'chart' => 'chartjs',
|
'chart' => 'chartjs',
|
||||||
'version' => '3.9.0',
|
'version' => '3.9.1',
|
||||||
'csv_import_enabled' => true,
|
'csv_import_enabled' => true,
|
||||||
'maxUploadSize' => 5242880,
|
'maxUploadSize' => 5242880,
|
||||||
'allowedMimes' => ['image/png', 'image/jpeg', 'application/pdf'],
|
'allowedMimes' => ['image/png', 'image/jpeg', 'application/pdf'],
|
||||||
|
Loading…
Reference in New Issue
Block a user