Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
4.2.0, 4.3.0beta1
-
None
Description
There is an error en the backward compapility code in ezshopoperationcollection which make it impossible to supply vat value. ezorderitems uses "vat_value", not vat
patch
--- shop/ezshopoperationcollection.php (revision 24182) +++ shop/ezshopoperationcollection.php (working copy) @@ -249,7 +249,7 @@ } else { - // Made for backwards compability, if the array order_items are not supplied. + // Made for backwards compability, if the array shipping_items are not supplied. if ( !isset( $shippingInfo['vat_value'] ) ) { $shippingInfo['vat_value'] = 0; @@ -263,7 +263,7 @@ $orderItem = new eZOrderItem( array( 'order_id' => $orderID, 'description' => $shippingInfo['description'], 'price' => $shippingInfo['cost'], - 'vat' => $shippingInfo['vat_value'], + 'vat_value' => $shippingInfo['vat_value'], 'is_vat_inc' => $shippingInfo['is_vat_inc'], 'type' => 'ezcustomshipping' ) ); $orderItem->store();