Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
emerson committed Jul 6, 2017
2 parents 967dc38 + ddb8f56 commit 459daab
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Observer/CaptureObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ public function execute(\Magento\Framework\Event\Observer $observer)
}
}

$orderlines[] = (new OrderLine(
'Shipping',
'shipping',
1,
$invoice->getShippingInclTax()
))->setGoodsType('shipment');
if ($invoice->getShippingInclTax()) {
$orderlines[] = (new OrderLine(
'Shipping',
'shipping',
1,
$invoice->getShippingInclTax()
))->setGoodsType('shipment');
}

$api = new CaptureReservation($this->systemConfig->getAuth());
if ($invoice->getTransactionId()) {
Expand Down

0 comments on commit 459daab

Please sign in to comment.