Home Forums Support How to change the amounts calculated on an invoice

This topic contains 6 replies, has 2 voices, and was last updated by  pmouratis 5 months, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20891

    pmouratis
    Participant

    Is there any way to change the calculations made by Invoice Ninja when creating an invoice? When trying to import a booking voucher (that is the official terminology that was given to us by the hotel owner, which describes a document that states that a client has reserved and paid for a room and contains the paid amount, the tax calculated from the paid amount and the price per stay excluding tax) into Invoice Ninja we get some differences because Booking.com makes some rounding (up or down to make the price round to two decimals). The import process is to add the price per stay to the “Create Invoice Section” and then let Invoice Ninja do its magic to calculate the rest of the amounts (paid amount and tax). Although the differences are in cents of a euro, Booking.com requires the hotel to issue a document (invoice + receipt) that has identical numbers with its voucher, otherwise the hotel owner needs to transfer the excess of money (cents) to Booking.com . Is there any way to either change or add the rounding process of Invoice Ninja when creating an Invoice or at least arbitrarily add the numbers to the invoice so when it is created corresponds to the numbers the Booking.com voucher has?

    Best Regards,

    Panagiotis

    #20892

    Hillel Coren
    Keymaster

    You could create a custom invoice surcharge called ‘Adjustment’ on Settings > Invoice Settings.

    #20960

    pmouratis
    Participant

    Dear Hillel,

    this is an excellent solution but at the same time one that involves manual input from the user and users might make errors. Is there a way to add a round() function make the Amount an integer?

    Best Regards,

    Panagiotis Mouratis

    #20961

    Hillel Coren
    Keymaster

    It may be possible by self hosting the app and modifying the code.

    #20963

    pmouratis
    Participant

    Would it be possible to point us to a set of files or a file where the calculations are performed?

    #20964

    Hillel Coren
    Keymaster
    #20965

    pmouratis
    Participant

    You’re the man, Hillel!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Posted in: