[*] BO : Improvement invoices management
This commit is contained in:
@@ -1397,6 +1397,20 @@ class OrderCore extends ObjectModel
|
||||
return $order_invoices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all not paid invoices for the current order
|
||||
* @since 1.5.0.2
|
||||
* @return Collection of Order invoice not paid
|
||||
*/
|
||||
public function getNotPaidInvoicesCollection()
|
||||
{
|
||||
$invoices = $this->getInvoicesCollection();
|
||||
foreach ($invoices as $key => $invoice)
|
||||
if ($invoice->isPaid())
|
||||
unset($invoices[$key]);
|
||||
return $invoices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get total paid
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user