El valor de la base de devolución del IVA debe ser al mondo

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

El valor de la base de devolución del IVA debe ser al mondo

Postby mauricioriostbs » Thu Oct 22, 2015 5:39 am

El valor de la base de devolución del IVA debe ser <= al monto - IVA (plugin: payulatam)

Hello.
I´m having trouble with the base price for tax devolution.
When I'm going to pay the order the site prompts an error: "The tax devolution value must be >= to the amount - tax" (But in spanish)
What could be the problem?, Any clue? I´m using the last version of One page checkout, Virtuemart 3,0,9 and Payu payment gateway.

Thanks in advance for the help.
mauricioriostbs
 
Posts: 1
Joined: Thu Oct 22, 2015 5:00 am

Re: Devolution tax price

Postby admin » Fri Oct 23, 2015 11:07 am

hello, the vm3.0.9 has a few problems with the tax calculation especially when tax is applied on shipping and payment fees. there has been lot's of fixes in vm3.0.10 which should be fully safe to update from 3.0.9.x.

i can help you with this over ftp and backend to find out where the problem comes from, but ideally next week anytime between 11 to 18 GMT.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re Re: Devolution tax price

Postby mauricior@.....com » Thu Oct 29, 2015 3:00 pm

Hello

We can meet in Skype or you could give me your email? And i will send you the access to the ftp and backend.
Best regards
mauricior@.....com
 
Posts: 2
Joined: Thu Oct 29, 2015 2:49 pm

Re: Devolution tax price

Postby admin » Thu Oct 29, 2015 4:45 pm

hello mauricio, you can write us at info@rupostel.com and i will send you the skype contact. it's preferred to use our live chat on this site (it is more reliable then skype... )

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Devolution tax price

Postby mauricior@.....com » Thu Oct 29, 2015 5:36 pm

hello Stan,

When we can talk? rigth now ?

best regards
mauricior@.....com
 
Posts: 2
Joined: Thu Oct 29, 2015 2:49 pm

Re: El valor de la base de devolución del IVA debe ser al mondo

Postby admin » Wed Nov 04, 2015 6:07 pm

hello, i must had modified the plugin since it seems it's not compatible with your VM version:
/plugins/vmpayment/payulatam/payulatam.php

the original code inside function _getHtmlForm($method, $order, $cart)

Code: Select all
$iva = floatval($cart->pricesUnformatted['taxAmount']);
    $baseIva = 0;

    if($iva != 0) {
      $baseIva = floatval($cart->pricesUnformatted['basePrice']);
    }      if (isset($cart->pricesUnformatted['priceWithoutTax']))   {      $baseOva = floatval($cart->pricesUnformatted['priceWithoutTax']);


comment the above code, and add the proper lines like this:

Code: Select all

/*
      $iva = floatval($cart->pricesUnformatted['taxAmount']);
    $baseIva = 0;

    if($iva != 0) {
      $baseIva = floatval($cart->pricesUnformatted['basePrice']);
    }      if (isset($cart->pricesUnformatted['priceWithoutTax']))   {      $baseOva = floatval($cart->pricesUnformatted['priceWithoutTax']);    }   

*/      

$iva = floatval($order['details']['BT']->order_tax);    

$baseOva = floatval($order['details']['BT']->order_subtotal);




plugin version (just for the reference):
Code: Select all
<name>PayuLatam</name>
   <creationDate>April 7 2014</creationDate>
  <author>Payu Latam Development Team</author>
  <copyright>Copyright (C) 2014 Virtuemart Team. All rights reserved</copyright>
  <version>2.5</version>
  <description>Payu Latam Payment Plugin for VirtueMart</description>



best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x