Add tariff unities management

This commit is contained in:
Ludovic CANDELLIER
2022-01-22 19:26:35 +01:00
parent 2be53d581e
commit 8c9fc66b89
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)