Let a service unit use stock and machines

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:01:59 +02:00
co-authored by Claude Sonnet 5.5
parent d160854b79
commit 361a2974cf
16 changed files with 204 additions and 13 deletions
@@ -15,11 +15,12 @@ use Illuminate\Database\Eloquent\Model;
* @property int $id
* @property string $name
* @property bool $is_shared
* @property bool $uses_stock
* @property bool $is_active
* @property int $sort_order
*/
#[Table('service_units')]
#[Fillable(['name', 'is_shared', 'is_active', 'sort_order'])]
#[Fillable(['name', 'is_shared', 'uses_stock', 'is_active', 'sort_order'])]
#[UseFactory(ServiceUnitFactory::class)]
class ServiceUnitModel extends Model
{
@@ -33,6 +34,7 @@ class ServiceUnitModel extends Model
{
return [
'is_shared' => 'boolean',
'uses_stock' => 'boolean',
'is_active' => 'boolean',
'sort_order' => 'integer',
];