Skip to content

Commit

Permalink
Release 4.0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliususoniswallee committed Dec 28, 2022
1 parent 18be705 commit a37c6a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tail -f var/log/wallee_payment*.log

## Documentation

[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.46/docs/en/documentation.html)
[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.47/docs/en/documentation.html)

## License

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@
"wallee/sdk": "3.0.1"
},
"type": "shopware-platform-plugin",
"version": "4.0.46"
"version": "4.0.47"
}
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.46/">
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.47/">
Source
</a>
</li>
Expand Down
12 changes: 2 additions & 10 deletions src/Core/Util/Payload/TransactionPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,8 @@ protected function getAdjustmentLineItem(array &$lineItems): ?LineItemCreate
return $lineItem->getAmountIncludingTax();
}, $lineItems));

// When tax_status is set to net (via Customer group), the amount is net instead of gross.
$tax_status = $this->transaction->getOrder()->getTaxStatus();
if ($tax_status == 'net') {
$transactionTotal = $this->transaction->getOrder()->getAmountNet();
}
else {
$transactionTotal = $this->transaction->getOrder()->getAmountTotal();
}
$adjustmentPrice = $transactionTotal - $lineItemPriceTotal;
$adjustmentPrice = self::round($adjustmentPrice);
$adjustmentPrice = $this->transaction->getOrder()->getAmountTotal() - $lineItemPriceTotal;
$adjustmentPrice = self::round($adjustmentPrice);

if (abs($adjustmentPrice) != 0) {
if ($this->settings->isLineItemConsistencyEnabled()) {
Expand Down

0 comments on commit a37c6a7

Please sign in to comment.