items import/export

This commit is contained in:
denisdulici
2020-01-20 23:18:47 +03:00
parent 6923a3d6e4
commit b119deca9f
4 changed files with 43 additions and 8 deletions

View File

@ -41,7 +41,7 @@ class Item 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]);
}
public function bill_items()