added default value
This commit is contained in:
@ -31,7 +31,7 @@ class InvoiceItemTax extends Model
|
||||
|
||||
public function tax()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Setting\Tax')->withDefault(['name' => trans('general.na')]);
|
||||
return $this->belongsTo('App\Models\Setting\Tax')->withDefault(['name' => trans('general.na'), 'rate' => 0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user