// 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:
aFolletete
2011-12-16 15:00:43 +00:00
parent eb14c43722
commit 5a4bc80867
2 changed files with 30 additions and 1 deletions
+11
View File
@@ -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;
}
}