Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19612

Shop rounding problem in ezorder.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2012.5
    • Fix Version/s: None
    • Component/s: Legacy > Webshop
    • Labels:
      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 );
      

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            rootnoob scrieler _
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: