Skip to content

Commit

Permalink
Add getInvoicesCollection (#2703)
Browse files Browse the repository at this point in the history
Co-authored-by: sv3n <github-sr@hotmail.com>
  • Loading branch information
2 people authored and fballiano committed Dec 19, 2022
1 parent c0ea4b2 commit 8260205
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/code/core/Mage/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2135,10 +2135,20 @@ public function getInvoiceCollection()
}

/**
* Retrieve order shipments collection
*
* @return Mage_Sales_Model_Resource_Order_Shipment_Collection|false
*/
* Retrieve order invoices collection
*
* @return Mage_Sales_Model_Resource_Order_Invoice_Collection
*/
public function getInvoicesCollection()
{
return $this->getInvoiceCollection();
}

/**
* Retrieve order shipments collection
*
* @return Mage_Sales_Model_Resource_Order_Shipment_Collection|false
*/
public function getShipmentsCollection()
{
if (empty($this->_shipments)) {
Expand Down

0 comments on commit 8260205

Please sign in to comment.