buy x get y incorrect TAX


  • Default avatar
    jordi_    
     5 years ago
    0

    I've defined a coupon buy x get y.
    I want to get one Y product with (TAX 21%) for free when I buy an X product (with tax 10%).
    In the cart I get

    X product price 37.27 TAX(10%) 3.73 TOTAL 41.00
    Y product price  8.07   TAX(21%) 1.69   TOTAL 9.76

           Total products                                                  50.76
           coupon free product Y                                     -9.76
          TOTAL                    TAX            4.37               41.00
                                          (TAX10%)   3.01
                                          (TAX21%)   1.36

    The total tax is incorrect, if I have defined 100% discount over Y product  the TAX 21% should be 0.
    So the Total should be  the same as if I only bought X product.

    Please how can I solve this issue? It's very important.

    Thanks,
    Jordi

  • Your avatar
    seyi    
     5 years ago
    0

    Do you have discount before tax setup in configuration?
  • Default avatar
    jordi_    
     5 years ago
    0

    I've tried it but the result is the same, the only thig that change is in the coupon line print also the negative TAX, but the Totals are the same.
    X product price 37.27 TAX(10%) 3.73 TOTAL 41.00
    Y product price  8.07   TAX(21%) 1.69   TOTAL 9.76

           Total products                                                  50.76
           coupon free product Y            -1.69               -9.76

          TOTAL                    TAX            4.37               41.00
                                          (TAX10%)   3.01
                                          (TAX21%)   1.36

  • Your avatar
    seyi    
     5 years ago
    0

    Is this a Virtuemart site?  If so, how is the tax setup?
  • Default avatar
    jordi_    
     5 years ago  last edited 5 years ago
    0

    Yes is virtuemart.
    There are tow taxes 21% and 10% each product aply only one tax. Product category select the tax to apply.
    The tax setup for 21% VAT is this (the same setup for 10% VAT).


    Setup for IVA 21%
  • Your avatar
    seyi    
     5 years ago
    0

    Ok, try this, in admin > awocoupon, go to configuration, and in the url add '&vmx=1', so that your url reads like

    ...administrator/index.php?option=com_awocoupon&view=config&vmx=1

    You should then see the option 'use injection mode', set it to yes and save.

    Then go to awocoupon > installation check and make sure the injection is installed and try it again.
  • Default avatar
    jordi_    
     5 years ago  last edited 5 years ago
    0

    Hello,
    I try the steps in the last post and when I check installation I get error  file www/administrator/components/com_virtuemart/helpers/calculationh.php not installed.
    Then I try to update my installation dowloading the las file in my account
    <creationDate>2018-05-13</creationDate>
    <version>3.5.5.0</version>
    but is not working it has modified my DB but not installed correctly.
    I get the warning
    JInstaller: :Instalar: the file /home/aw2au1gn/tmp/install_5af9aa8129df1/media/customers/ not exist
    Unable to read archive (zip)
    and the error:
    Error  Installing component

    How can I make a good Install?
    Thanks
    Jordi

    I've restored from backup at version 3.5.9.3. Now with use injection mode and  discount before tax setup, the total tax result is correct but the detail tax is incorrect, now the total bill tax is less than the detail tax sum.

    X product price 37.27 TAX(10%) 3.73 TOTAL 41.00
    Y product price  8.07   TAX(21%) 1.69   TOTAL 9.76

           Total products                                                  50.76
           coupon free product Y            -1.69               -9.76

          TOTAL                    TAX            3.73               41.00
                                          (TAX10%)   3.73
                                          (TAX21%)   1.69

    I have checked it in DB and the same amounts in virtuemart_orders table, order_billTaxAmount=3.73, but orderTax=5.42 and the detail in order_billTax is also incorrect. The same in the table virtuemart_order_calc_rules.
  • Your avatar
    seyi    
     5 years ago
    0

    The latest version 3.5.5.3 should fix this.
  • Default avatar
    jordi_    
     5 years ago
    0

    Hello with this last release the VAT TAX calculation is ok, with the option discount before tax.

    But there is a new issue the cart not refresh always. If you are in the cart and have an automatic coupon discount, and adds manually a new coupon, the coupon is added but the cart not refresh the totals, you must force the refresh going to the cart link and reload the page.

    Regards
  • Your avatar
    seyi    
     5 years ago
    0

    This is fixed in the latest version, 3.5.5.4.