invoice update
This commit is contained in:
40
app/Models/InvoiceItem.php
Normal file
40
app/Models/InvoiceItem.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InvoiceItem extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'invoice_id',
|
||||
|
||||
'description',
|
||||
'ctn',
|
||||
'qty',
|
||||
'ttl_qty',
|
||||
'unit',
|
||||
'price',
|
||||
'ttl_amount',
|
||||
|
||||
'cbm',
|
||||
'ttl_cbm',
|
||||
|
||||
'kg',
|
||||
'ttl_kg',
|
||||
|
||||
'shop_no',
|
||||
];
|
||||
|
||||
/****************************
|
||||
* Relationships
|
||||
****************************/
|
||||
|
||||
public function invoice()
|
||||
{
|
||||
return $this->belongsTo(Invoice::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user