Add products module #46
This commit is contained in:
@@ -15,8 +15,8 @@ class LineItem extends Model
|
||||
'is_section',
|
||||
'title',
|
||||
'description',
|
||||
'unit_id',
|
||||
'quantity',
|
||||
'unit',
|
||||
'price',
|
||||
];
|
||||
|
||||
@@ -24,4 +24,9 @@ public function invoice()
|
||||
{
|
||||
return $this->belongsTo(Invoice::class);
|
||||
}
|
||||
|
||||
public function unit()
|
||||
{
|
||||
return $this->belongsTo(Unit::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user