The SimpleInvoices forum has moved to Google Plus - this forum is now read-only
When VAT already included in price
  • modirmodir July 2011

    Hi,

    In all our prices is the VAT already included. But we need to provide at the end of an invoice a sentence similar to: "In these prices is the 8% VAT of Euro 123.45 included."

    How can I change the calculation of the VAT?

  • Hi modir,

    You can change the tax rates in Settings >> Tax Rates.

    If you would like to display the text on an invoice you could possibly use the notes section.

    Cheers,
    Matt

  • modirmodir July 2011

    Hi Matt,

    I don't want to add the tax rates. I know how to do this. Our problem is that our prices are including the tax so we do not have to add the tax at the end. We only have to show how much taxes are included.

    Cheers,
    Raffael

  • Ah I see.

    You could either list your items exclusive of tax and then use the traditional tax system to sow the amount of tax and totals or you could manually write the amount of tax into the notes section.

    If your a programmer you could also modify the invoice template so that it displays an extra row showing the tax.

    Hope this helps.

  • modirmodir July 2011

    Hi Matt,

    I am a programmer and I want to modify SI. In the template is only the command that prints out the tax. The calculation is done somewhere else. And I would like to know where? I sadly never got a reply from Justin on this.

    Are you one of the developers as well? I would like to change the code in a way that it would allow everyone to choose how the tax should be handled. What would be the best way to do this?

    Raffael

  • Hi Raffael,

    I was a developer on this project for a little while but I haven't been that active recently.

    The app uses the smarty templating system.
    I think that the code in this file is used to assign the variables used in the templates. So if you assign a new smarty variable here you should be able to access it in the template.
    http://code.google.com/p/simpleinvoices/source/browse/trunk/sys/modules/invoices/details.php

    If you do your logic in that file and then this file is used to display the invoice:
    http://code.google.com/p/simpleinvoices/source/browse/trunk/sys/templates/invoices/default/template.tpl

    I haven't tested any of this I'm just going on what I can see in the code, but let me know if you can't get it working.
    I would suggest that you just do this change on your version initially as you have a fairly unique use case for this feature.
    Possibly post a feature request in the issue tracker on Google code and then we can see if more people are demanding the same feature before including it in future releases.

    I hope this helps
    Matt

  • modirmodir July 2011

    Hi Matt,

    Thanks for the help. But it is not quite right.

    In /modules/invoices/details.php I have only this:
    $taxes = getTaxes();

    The calculation will be done in another function. But I will search for it. The whole code is a little strange. It is somewhere written that it should be MVC. But there are still too many functions and no clear distinction between models, views and controllers. And within the views it is not always clear what should be in the view "class" and what in the template.

    The use case is actually not that unique. In most European countries you need to show the full price (including the taxes) if you are selling to people. Only if you are selling to companies you can leave the taxes away in the price per product/service.

    Raffael

Categories

Tagged