new: add warning icon for tariffs without price list in offer form select

This commit is contained in:
Valentin Lab
2026-03-16 16:41:17 +01:00
parent 2563398df2
commit d8f95c667c
3 changed files with 10 additions and 1 deletions

View File

@@ -69,6 +69,11 @@ class Tariffs
return Tariff::pluck('status_id', 'id')->toArray();
}
public static function getPriceListCountMap()
{
return Tariff::withCount('price_lists')->pluck('price_lists_count', 'id')->toArray();
}
public static function getModel()
{
return Tariff::query();