Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Order/Invoice/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function info($invoiceIncrementId)
* @param boolean $includeComment
* @return string
*/
public function create($orderIncrementId, $itemsQty, $comment = null, $email = false, $includeComment = false)
public function create($orderIncrementId, $itemsQty = [], $comment = null, $email = false, $includeComment = false)
{
$order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);

Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Order/Invoice/Api/V2.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Mage_Sales_Model_Order_Invoice_Api_V2 extends Mage_Sales_Model_Order_Invoi
* @param bool $includeComment
* @return string
*/
public function create($invoiceIncrementId, $itemsQty, $comment = null, $email = false, $includeComment = false)
public function create($invoiceIncrementId, $itemsQty = [], $comment = null, $email = false, $includeComment = false)
{
$order = Mage::getModel('sales/order')->loadByIncrementId($invoiceIncrementId);
$itemsQty = $this->_prepareItemQtyData($itemsQty);
Expand Down