Discount in percent

milagino
milagino
Offline
0
Hello,

could you provide me the code and an instruction on how to modify the extension in that way, that I am able to add item-discount and subtotal-discount (see attached image) in percent.
I was already able to edit the calculation in the file /administrator/components/com_invoices/assets/items.js, but the computed_total (after saving the invoice) would still take my input as an absolute number, causing a different total.

Thank you very much!
Attachments:
Responses (1)
  • Accepted Answer

    Tuesday, July 28 2015, 11:32 AM - #Permalink
    0
    hello,

    we can't just "provide the code" because we don't have it, there are many changes required to achieve this, in several files...
    for startes, you need to change all the calculation rules to consider percents, mostly in file /components/com_invoices/helpers/helpers.php
    The reply is currently minimized Show
Your Reply