invoicevtiger

How to Modify Invoice Total Calculation in Vtiger CRM?


I'm currently working with Vtiger CRM, and I need to modify the way the total for invoices is calculated. Specifically, I want to change the total calculation logic to include some custom business rules.

I've located the Invoice class in modules/Invoice/Invoice.php but i didnt know where to modify


Solution

  • If the calculations are not too complicated, you will probably be able to do it by modifying the templates.

    This is the template used to view the quotes/so/po/invoices:

    layouts/v7/modules/Inventory/LineItemsDetail.tpl
    

    And this is the template used to edit the quotes/so/po/invoices:

    layouts/v7/modules/Inventory/partials/LineItemsContent.tpl