diff --git a/app/Library/Finances/JumpBridgeTax.php b/app/Library/Finances/JumpBridgeTax.php index b1cfa44d5..7b168943f 100644 --- a/app/Library/Finances/JumpBridgeTax.php +++ b/app/Library/Finances/JumpBridgeTax.php @@ -131,8 +131,7 @@ class JumpBridgeTax { public function OverallTax() { //Get the total usage - $usage = DB::table('jump_bridge_journal') - ->whereBetween('date', [$this->date, $this->date->addDays($this->days)]) + $usage = JumpBridgeJournal::whereBetween('date', [$this->date, $this->date->addDays($this->days)]) ->sum(['amount']); //Return the usage