@@ -12,6 +12,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string $tax_rate
|
||||
* @property int|null $equipment_id
|
||||
* @property int|null $spare_part_id
|
||||
* @property int|null $catalogue_entry_id
|
||||
* @property array<string,mixed>|null $catalogue_snapshot
|
||||
*/
|
||||
class RequisitionItem extends Model
|
||||
{
|
||||
@@ -23,6 +25,6 @@ class RequisitionItem extends Model
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['quantity' => 'decimal:3', 'tax_rate' => 'decimal:2'];
|
||||
return ['quantity' => 'decimal:3', 'tax_rate' => 'decimal:2', 'catalogue_entry_id' => 'integer', 'catalogue_snapshot' => 'array'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user