Optimise product tables
This commit is contained in:
@@ -263,7 +263,7 @@ class Invoice extends Model implements IDs
|
||||
{
|
||||
return $this->paymentitems
|
||||
->filter(function($item) { return ! $item->payment->pending_status; })
|
||||
->sum('alloc_amt');
|
||||
->sum('amount');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -293,7 +293,7 @@ class Invoice extends Model implements IDs
|
||||
{
|
||||
return $this->paymentitems
|
||||
->filter(function($item) { return $item->payment->pending_status; })
|
||||
->sum('alloc_amt');
|
||||
->sum('amount');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user