mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-24 06:44:20 +00:00
Add invoice_id
This commit is contained in:
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InvoiceDetails extends Model
|
||||
{
|
||||
protected $fillable = ['order','description','quantity', 'stock_code', 'unit_price_rmb', 'unit_price_rm', 'total'];
|
||||
protected $fillable = ['invoice_id', 'order','description','quantity', 'stock_code', 'unit_price_rmb', 'unit_price_rm', 'total'];
|
||||
|
||||
public function invoice() {
|
||||
return $this->belongsTo('App/Invoice');
|
||||
|
||||
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InvoiceStatuses extends Model
|
||||
{
|
||||
protected $fillable = ['status','comment'];
|
||||
protected $fillable = ['status','comment', 'invoice_id'];
|
||||
|
||||
public function invoice() {
|
||||
return $this->belongsTo('App/Invoice');
|
||||
|
||||
Reference in New Issue
Block a user