add where for cut off
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user