Skip to content

Commit

Permalink
unused relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Oct 13, 2017
1 parent 051757b commit 705b704
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions app/Models/Expense/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ public function status()
return $this->belongsTo('App\Models\Expense\BillStatus', 'bill_status_code', 'code');
}

public function item()
{
return $this->belongsTo('App\Models\Expense\BillItem', 'id', 'bill_id');
}

public function items()
{
return $this->hasMany('App\Models\Expense\BillItem');
Expand All @@ -74,11 +69,6 @@ public function totals()
return $this->hasMany('App\Models\Expense\BillTotal');
}

public function payment()
{
return $this->belongsTo('App\Models\Expense\BillPayment', 'id', 'bill_id');
}

public function payments()
{
return $this->hasMany('App\Models\Expense\BillPayment');
Expand Down
10 changes: 0 additions & 10 deletions app/Models/Income/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ public function status()
return $this->belongsTo('App\Models\Income\InvoiceStatus', 'invoice_status_code', 'code');
}

public function item()
{
return $this->belongsTo('App\Models\Income\InvoiceItem', 'id', 'invoice_id');
}

public function payment()
{
return $this->belongsTo('App\Models\Income\InvoicePayment', 'id', 'invoice_id');
}

public function items()
{
return $this->hasMany('App\Models\Income\InvoiceItem');
Expand Down

0 comments on commit 705b704

Please sign in to comment.