ranjith-dev #705

Merged
jothi merged 3 commits from ranjith-dev into master 2026-06-05 03:49:00 +00:00
Showing only changes of commit 8afafb52cd - Show all commits

View File

@@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
class SerialValidation extends Model class SerialValidation extends Model
{ {
use Prunable; // use Prunable;
use SoftDeletes; use SoftDeletes;
protected $fillable = [ protected $fillable = [
@@ -30,6 +30,9 @@ class SerialValidation extends Model
'batch_number', 'batch_number',
'quantity', 'quantity',
'operator_id', 'operator_id',
'created_by',
'updated_by',
'panel_box_code',
]; ];
public function plant(): BelongsTo public function plant(): BelongsTo
@@ -47,8 +50,8 @@ class SerialValidation extends Model
return $this->belongsTo(StickerMaster::class, 'sticker_master_id'); return $this->belongsTo(StickerMaster::class, 'sticker_master_id');
} }
public function prunable(): Builder // public function prunable(): Builder
{ // {
return static::where('created_at', '<=', now()->subMonthsNoOverflow(6)); // return static::where('created_at', '<=', now()->subMonthsNoOverflow(6));
} // }
} }