categories for invoices/bills

This commit is contained in:
denisdulici
2018-04-23 22:17:20 +03:00
parent a81e1c76b9
commit 1af5720915
18 changed files with 215 additions and 182 deletions

View File

@ -60,6 +60,11 @@ class Bill extends Model
*/
protected $cloneable_relations = ['items', 'totals'];
public function category()
{
return $this->belongsTo('App\Models\Setting\Category');
}
public function vendor()
{
return $this->belongsTo('App\Models\Expense\Vendor');