Skip to content

Commit

Permalink
Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
lsv committed Mar 30, 2017
1 parent 1a42c23 commit ddb8f56
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 ddb8f56

Please sign in to comment.