mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-25 15:56:33 -06:00
This should catch the missing piggy bank events.
This commit is contained in:
parent
f50b133f2e
commit
3dc794002f
@ -5,6 +5,11 @@ use FireflyIII\Events\Event;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Class JournalCreated
|
||||
*
|
||||
* @package FireflyIII\Events
|
||||
*/
|
||||
class JournalCreated extends Event {
|
||||
|
||||
use SerializesModels;
|
||||
@ -23,9 +28,6 @@ class JournalCreated extends Event {
|
||||
$this->journal = $journal;
|
||||
$this->piggyBankId = $piggyBankId;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -180,22 +180,19 @@ class TransactionController extends Controller
|
||||
case 'withdrawal':
|
||||
$subTitleIcon = 'fa-long-arrow-left';
|
||||
$subTitle = 'Expenses';
|
||||
//$journals = $this->_repository->getWithdrawalsPaginated(50);
|
||||
$types = ['Withdrawal'];
|
||||
$types = ['Withdrawal'];
|
||||
break;
|
||||
case 'revenue':
|
||||
case 'deposit':
|
||||
$subTitleIcon = 'fa-long-arrow-right';
|
||||
$subTitle = 'Revenue, income and deposits';
|
||||
// $journals = $this->_repository->getDepositsPaginated(50);
|
||||
$types = ['Deposit'];
|
||||
$types = ['Deposit'];
|
||||
break;
|
||||
case 'transfer':
|
||||
case 'transfers':
|
||||
$subTitleIcon = 'fa-arrows-h';
|
||||
$subTitleIcon = 'fa-exchange';
|
||||
$subTitle = 'Transfers';
|
||||
//$journals = $this->_repository->getTransfersPaginated(50);
|
||||
$types = ['Transfer'];
|
||||
$types = ['Transfer'];
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,7 @@ class JournalFormRequest extends Request
|
||||
case 'transfer':
|
||||
$rules['account_from_id'] = 'required|exists:accounts,id|belongsToUser:accounts|different:account_to_id';
|
||||
$rules['account_to_id'] = 'required|exists:accounts,id|belongsToUser:accounts|different:account_from_id';
|
||||
$rules['piggy_bank_id'] = 'exists:piggy_banks,id';
|
||||
$rules['category'] = 'between:1,255';
|
||||
break;
|
||||
default:
|
||||
|
@ -95,7 +95,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'log' => 'daily',
|
||||
'log' => 'syslog',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user