This should catch the missing piggy bank events.

This commit is contained in:
James Cole 2015-03-24 20:54:25 +01:00
parent f50b133f2e
commit 3dc794002f
4 changed files with 11 additions and 11 deletions

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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:

View File

@ -95,7 +95,7 @@ return [
|
*/
'log' => 'daily',
'log' => 'syslog',
/*
|--------------------------------------------------------------------------