add where for cut off

This commit is contained in:
Jagad R R
2025-01-12 13:34:35 +07:00
parent 3127b3b5d7
commit 6efaa99220
7 changed files with 90 additions and 30 deletions
+7
View File
@@ -40,4 +40,11 @@ class BudgetHelper
return $availableBudget;
}
public static function getClosingDate($cabang_id)
{
$budget = BudgetControl::where('cabang_id', $cabang_id)->orderBy('created_at', 'desc')->first();
return $budget->closing_at;
}
}