Implement events for cron expenses; add processing of daily/monthly expenses #136

This commit is contained in:
Nabeel Shahzad
2018-03-16 20:12:56 -05:00
parent d34de098e5
commit 067fb0f9f0
24 changed files with 623 additions and 118 deletions
@@ -25,7 +25,7 @@ class CreateJournalTransactionsTable extends Migration
$table->string('ref_class', 50)->nullable();
$table->string('ref_class_id', 36)->nullable();
$table->timestamps();
$table->dateTime('post_date');
$table->date('post_date');
$table->primary('id');
$table->index('journal_id');
+18 -2
View File
@@ -216,6 +216,22 @@ expenses:
ref_class_id: 1
created_at: now
updated_at: now
- name: Catering Staff
amount: 1000
type: 1
active: 1
ref_class: App\Models\Subfleet
ref_class_id: 1
created_at: now
updated_at: now
- name: Maintenance
amount: 1000
type: 1
active: 1
ref_class: App\Models\Aircraft
ref_class_id: 1
created_at: now
updated_at: now
fares:
- id: 1
@@ -448,7 +464,7 @@ journals:
id: 1
ledger_id: null
type: 0
balance: 23710000
balance: 7870000
currency: USD
morphed_type: App\Models\Airline
morphed_id: 1
@@ -458,7 +474,7 @@ journals:
id: 2
ledger_id: null
type: 1
balance: 45000
balance: 15000
currency: USD
morphed_type: App\Models\User
morphed_id: 1