// improve invoice and order payment
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11306 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -488,4 +488,15 @@ class OrderInvoiceCore extends ObjectModel
|
||||
{
|
||||
return $this->getTotalPaid() == $this->total_paid_tax_incl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.5.0.2
|
||||
* @return Collection of Order payment
|
||||
*/
|
||||
public function getOrderPaymentCollection()
|
||||
{
|
||||
$order_payments = new Collection('OrderPayment');
|
||||
$order_payments->where('id_order_invoice = '.(int)$this->id);
|
||||
return $order_payments;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user