Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2012.5
-
None
Description
The totals from basket and order can be differently...
I found a round function in /kernel/classes/ezorder.php line 816 and 817, why?
Without it it works correctly.
$addedProducts[] = array( "id" => $productItem->attribute( 'id' ), "vat_value" => $vatValue, "item_count" => $count, "node_id" => $nodeID, "object_name" => $objectName, "price_ex_vat" => $priceExVAT, "price_inc_vat" => $priceIncVAT, "discount_percent" => $discountPercent, "total_price_ex_vat" => round( $count * $priceExVAT * $realPricePercent, 2 ), "total_price_inc_vat" => round( $count * $priceIncVAT * $realPricePercent, 2 ), 'item_object' => $productItem );
to
$addedProducts[] = array( "id" => $productItem->attribute( 'id' ), "vat_value" => $vatValue, "item_count" => $count, "node_id" => $nodeID, "object_name" => $objectName, "price_ex_vat" => $priceExVAT, "price_inc_vat" => $priceIncVAT, "discount_percent" => $discountPercent, "total_price_ex_vat" => $count * $priceExVAT * $realPricePercent, "total_price_inc_vat" => $count * $priceIncVAT * $realPricePercent, 'item_object' => $productItem );