industry taxes testing

This commit is contained in:
2019-01-05 23:06:06 -06:00
parent 72e156f484
commit b93264752e

View File

@@ -45,9 +45,9 @@ class StructureController extends Controller
$tax = StructureIndustryTaxJournal::select('amount')
->whereBetween('date', [$date['start'], $date['end']])
->sum('amount');
$taxes[] = ['date' => $date['start'], 'tax' => $tax];
$taxes[] = ['date' => $date['start'], 'tax' => number_format($tax, 2, '.', ',')];
}
return view('structures.industrytaxes')->with('taxes', $taxes);
}