Add tariff unities management

This commit is contained in:
Ludovic CANDELLIER
2022-01-22 19:26:35 +01:00
parent 6f04a8e7b7
commit f35650b234
15 changed files with 261 additions and 27 deletions

View File

@@ -78,7 +78,7 @@ class Varieties
public static function store($data)
{
return isset($data['id']) ? self::update($data) : self::create($data);
return ($data['id'] ?? false) ? self::update($data) : self::create($data);
}
public static function create($data)