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

Shipping VAT value is not taken into account

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2014.07, 5.3.3, 5.4-dev
    • Fix Version/s: 2014.11, 5.4.0-beta1
    • Component/s: Misc
    • Labels:

      Description

      Bug occurs only for shipping handler returning old shipping info.
      When you create custom shipping handler like this:

      class testShippingHandler
      {
          function __construct()
          {
          }
      
          function getShippingInfo( $productCollectionID )
          {
              return array(
                  'description' => ezpI18n::tr( 'design/standard/shop/shippinghandler/test', 'Example shipping cost' ),
                  'vat_value' => 10,
                  'cost' => 100,
                  'is_vat_inc' => 0
              );
          }
      
          function updateShippingInfo( $productCollectionID )
          {
          }
      
          function purgeShippingInfo( $productCollectionID )
          {
          }
      }
      

      your shipping info is processed in this block, where the new eZOrderItem is created incorrectly (VAT info). Compare this (ok) and this (incorrect).
      PR: https://github.com/ezsystems/ezpublish-legacy/pull/1098

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              karol_r Karol Radziuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: