Let a service unit use stock and machines
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user