jump bridge statistics

This commit is contained in:
2018-12-26 22:46:45 -06:00
parent 2200521df6
commit fbfb45ddd0
2 changed files with 7 additions and 8 deletions
+4 -5
View File
@@ -131,10 +131,9 @@ class JumpBridgeTax {
public function OverallTax() {
//Get the total usage
$usage = DB::table('jump_bridge_journal')
->select('amount')
->whereTime('date', '>', $this->date)
->sum('amount');
$usage = JumpBridgeJournal::select('amount')
->whereTime('date', '>', $this->date)
->sum('amount');
//Return the usage
return $usage;
@@ -147,7 +146,7 @@ class JumpBridgeTax {
$usage = DB::table('jump_bridge_journal')
->select('amount')
->where('context_id', $structure)
->sum(['amount']);
->sum('amount');
return $usage;
}