scheduled jobs

This commit is contained in:
2018-11-23 01:23:50 -06:00
parent b6c93c81e0
commit 05b8e67648
8 changed files with 101 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ class FinancesController extends Controller
//Get the taxes for the corporation
$taxes = DB::table('CorpJournals')
->where(['corporation_id'=> $corpId, 'ref_type' => 'brokers_fee'])
->whereBetween($start, $end)
->whereBetween(['dateTime' => $start, 'dateTime' => $end])
->get();
foreach($taxes as $tax) {
$totalTax += $tax->amount;