0
Hi,
I recently installed IM 2.1.0 and discovered the new taxes features. I have a particular need related to Virtuemart: I need to customize the name of tax rule to be shown on invoice, depending on the Virtuemart rule itself. I'll try to explain what I mean.
I created some VM rules with VAT = 0%, some for invoicing to companies outside EU, others for total/global discount on invoice if user pays with a particular payment method (Note: I then set this 0% tax rule in payment method: this should be needed in order to have it in invoice, because having no tax rules associated to payment method, since it is 0, will likely mean not having this tax on IM invoice).
Now I want that for the 0% tax rule A, IM shows "text 1" while for 0% tax tule B, IM shows "text 2".
So I ask you whether it is possible to let IM recognize different Virtuemart taxes rules having same percentage value. My question is not strictly related to 0% vats: it is valid for any % vat percentage. I thought about getting VM id of the rule, rather than considering its name on VM, and other non-optimized solutions, without achieving the goal yet.
I analyzed and worked on /components/com_invoices/views/invoice/tmpl/default.php file, since it deals with taxes, items and all stuff template related. Natively, IM is not showing taxes rules with a value equal to 0%, but I already made a change in order to do this. I tried several ways to achieve my goal but it seems IM collects all taxes by value: so it can't make distinction between 2 separate rules that have the same % value. This is why I tried to get VM tax id. Please correct me if I am wrong and if there's a way to achieve the goal.

Thanks and regards

Vittorio
Responses (5)
  • Accepted Answer

    Saturday, July 16 2016, 09:44 AM - #Permalink
    0
    if I understand correctly what you're saying, you can't achieve this directly. some custom coding is needed.

    however, even it won't solve your case, you can have more than 1 tax with the same percentage (0%) in the same invoice, and have it shown separately... I don't see any problem with this.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 16 2016, 10:32 AM - #Permalink
    0
    Hi Germinal,
    I did not catch your answer. Please give a look at attached image. It is a part of one invoice generated for a customer purchasing from outside EU. You see 3 rows: product, shipment and payment. They are actually "linked" to 3 different taxes on VM taxes and rules, not the same one. But, as you can see, IM is showing me just one row with the total of 0% taxable and tax and not 3 elements, one for each rule.
    Note that without my modification about showing 0% taxes, you are not going to see any tax here!

    So how can I get 3 elements in invoice?

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 16 2016, 10:38 AM - #Permalink
    0
    yes, that's because it is not ASSIGNING any particular tax to each row. it is assigning the percentage (0%), but not a TAX ID, which is what you want. This is the part that requires custom coding.

    let me tell you as an example:

    in Invoice Manager, go to TAXES manager and create your 3 taxes. (1,2,3) as separate taxes.
    then, OPEN this invoice that was created.

    in each line, ASSIGN the correspondant tax name

    then let me know what you see on the invoice (frontend)
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 16 2016, 11:11 AM - #Permalink
    0
    Ok, so you are confirming that IM is not assigning taxes to IDs/names but to values.
    I tried to do what you suggested me, it works. I thought to this kind of solution too, but I did not implement it because I do not want to lose the automathism of creating invoice: currently invoices are automatically created after any VM order and my goal is certainly not to enter into any invoice to set manually taxes to items.
    I would like, if possible, any help for linking taxes to VM taxes id. I tried to do this by myself, maybe I am missing just some little step. However, I need just this. How to use IDs in order to change the name of taxes to be shown in invoice (text 1 and text 2 mentioned in my first post) or do anything else will be up to me.

    Please let me know.

    Vittorio
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 16 2016, 03:50 PM - #Permalink
    0
    no, I am not confirming that.

    IM can assign a tax to an ID/name per item. But it will be always the same. you need to use the last version of our virtuemart plugin for this.

    what it can't do (I mean, AUTOMATICALLY) is to assign each one (each row) to a different tax ID.
    the automatic mode only allows to assign 1 tax to all.

    As I mentioned already in my first response, to assign different tax ID/name to different rows, AUTOMATICALLY (using our integration plugin with VM), then some custom coding work is required.
    The reply is currently minimized Show
Your Reply