Merge Invoice and Bill into Document

This commit is contained in:
Burak Çakırel
2020-12-24 01:28:38 +03:00
parent 830cc05957
commit 0c1424db47
436 changed files with 31655 additions and 37350 deletions

View File

@ -59,7 +59,7 @@ class Transaction extends Model
public function bill()
{
return $this->belongsTo('App\Models\Purchase\Bill', 'document_id');
return $this->belongsTo('App\Models\Document\Document', 'document_id');
}
public function category()
@ -79,7 +79,12 @@ class Transaction extends Model
public function invoice()
{
return $this->belongsTo('App\Models\Sale\Invoice', 'document_id');
return $this->belongsTo('App\Models\Document\Document', 'document_id');
}
public function document()
{
return $this->belongsTo('App\Models\Document\Document', 'document_id');
}
public function recurring()