round shipment quote net value to 2 decimal digits
this should help us prevent rounding errors downstream when converting back to net in odoo (SYS#6033)
This commit is contained in:
parent
7064ff40db
commit
1c17795687
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "sysmocom/shopware6-shipcloud-live",
|
"name": "sysmocom/shopware6-shipcloud-live",
|
||||||
"description": "shipcloud live quote pluging",
|
"description": "shipcloud live quote pluging",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"type": "shopware-platform-plugin",
|
"type": "shopware-platform-plugin",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|
|
@ -202,7 +202,7 @@ class SmcDeliveryProcessor implements CartProcessorInterface, CartDataCollectorI
|
||||||
$transport_insurance = (0.0035 * $value);
|
$transport_insurance = (0.0035 * $value);
|
||||||
|
|
||||||
/* convert into a gross price, as API returns net */
|
/* convert into a gross price, as API returns net */
|
||||||
$quote_eur_gross = ($quote_eur + $margin + $transport_insurance);
|
$quote_eur_gross = round($quote_eur + $margin + $transport_insurance), 2);
|
||||||
if ($context->getTaxState() === CartPrice::TAX_STATE_GROSS) {
|
if ($context->getTaxState() === CartPrice::TAX_STATE_GROSS) {
|
||||||
/* FIXME: don't use static 19% but destination country specific rate */
|
/* FIXME: don't use static 19% but destination country specific rate */
|
||||||
$quote_eur_gross = $quote_eur_gross * 1.19;
|
$quote_eur_gross = $quote_eur_gross * 1.19;
|
||||||
|
|
Loading…
Reference in New Issue