1
0
forked from poc/pds

added migration, model, resource , grid table

This commit is contained in:
dhanabalan
2025-04-08 17:26:00 +05:30
parent 5fd16612fc
commit 3381cfca7c
10 changed files with 540 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class InvoiceValidation extends Model
{
use SoftDeletes;
protected $fillable = [
'sticker_master_id',
'plant_id',
'invoice_number',
'serial_number',
'motor_scanned_status',
'pump_scanned_status',
'capacitor_scanned_status',
'scanned_status_set',
'scanned_status',
'panel_box_supplier',
'panel_box_serial_number',
'load_rate',
'upload_status',
'batch_number',
'quantity',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function stickerMaster(): BelongsTo
{
return $this->belongsTo(StickerMaster::class);
}
}