renamed income/expense

This commit is contained in:
denisdulici
2019-12-31 15:49:09 +03:00
parent e2189158b9
commit 2428feb73b
235 changed files with 815 additions and 2147 deletions

View File

@ -24,7 +24,7 @@ class Category extends Model
public function bills()
{
return $this->hasMany('App\Models\Expense\Bill');
return $this->hasMany('App\Models\Purchase\Bill');
}
public function expense_transactions()
@ -39,7 +39,7 @@ class Category extends Model
public function invoices()
{
return $this->hasMany('App\Models\Income\Invoice');
return $this->hasMany('App\Models\Sale\Invoice');
}
public function items()

View File

@ -30,7 +30,7 @@ class Currency extends Model
public function bills()
{
return $this->hasMany('App\Models\Expense\Bill', 'currency_code', 'code');
return $this->hasMany('App\Models\Purchase\Bill', 'currency_code', 'code');
}
public function contacts()
@ -55,7 +55,7 @@ class Currency extends Model
public function invoices()
{
return $this->hasMany('App\Models\Income\Invoice', 'currency_code', 'code');
return $this->hasMany('App\Models\Sale\Invoice', 'currency_code', 'code');
}
public function transactions()

View File

@ -37,12 +37,12 @@ class Tax extends Model
public function bill_items()
{
return $this->hasMany('App\Models\Expense\BillItemTax');
return $this->hasMany('App\Models\Purchase\BillItemTax');
}
public function invoice_items()
{
return $this->hasMany('App\Models\Income\InvoiceItemTax');
return $this->hasMany('App\Models\Sale\InvoiceItemTax');
}
/**