Optimise product tables

This commit is contained in:
Deon George
2022-04-22 15:23:08 +10:00
parent e1a4db700f
commit 16cc0c9f8d
10 changed files with 88 additions and 24 deletions

View File

@@ -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');
}
/**