Once you figure this out itâs fairly straight forward but it took me quite some time to figure it out.
this specific request is heavily dependent on JavaScript.
using this file modules/AOS_Products_Quotes/line_items.js
copy this file into your custom folder
/custom/modules/AOS_Products_Quotes/line_items.js
look in that file for âVATâ and start modifying the javascript file.
What I have done is taken the current tax drop down and duplicated it with a slightly different name âvat_pstâ in my case and then do the calculations based on the new dropdowns.
I looked for a php/mysql solution when the answer was to brush up on the JavaScript which from what iâve seen in the developer videos is the direction that sugar is going in. ie more and more javascript.
Sorry I donât have a specific answer but hopefully that helps.
Thanks to smugford and Ian, I am not a pro in php and/or Java, I can edit, add or change anything but I am not able to find which one we need to add. We are ready to pay if someone know how to do.
Were you able to post a âhow toâ Iâd be interested in that? Spain has the same issue with dealers. VAT 21% + 5,2% R.E. which I need to display separately.
Hi Cperrot,
We are already at the same point here, Maybe no one have found the solution? Iâm not able to find the complete solution for now because we have a lot of job.
thanks for your reply. I am amazed that SutieCRM OpenSales cannot be used in Canada at all and that no one is actually taking this problem up as a feature request.
I just finished today one approach which works for me. It probably is not suitable for Canadian taxes as this would need to be calculated on line items. However I imagine the approach would be fairly similar.
This is the scenario. In Spain when the tax office had some issues with the VAT payments of e.g. XYZ Ltd. they propagate the responsability to the company selling products and services to XYZ Ltd. Instead of XYZ Ltd charging 21% to their customers. All companies selling to XYZ Ltd need to add 5.2% to their invoices in addition of the 21% VAT. Therefore the Tax office gets the VAT from the vendors to XYZ Ltd and XYZ Ltd. does not charge any VAT.
Here are the steps I have taken.
Created new custom fields for R.E. Tax Amt and R.E. Taxlist 0.0% and 5.2%
Assign the new fields to the Invoice form where you want them to be.
Do a âQuick Repair and Rebuildâ for the changes to activate.
change the javascript to factor in my new tax in file modules\AOS_Products_Quotes\line_items.js
change in function following section in function function calculateTotal(key) starting at line 800
/start custom code for R.E. Tax cperrot 15.4.2016/
var retaxlist = get_value(key+âretaxlist_câ);
var retax_amt = subtotal * (retaxlist/100);
set_value(key+âretax_câ,retax_amt);
/end custom code for R.E. Tax/
I am fed up with this problem. Looking for service providers who can do it for me. I need to customize my Quotes and Invoice modules to meet GST requirements in India. I need following:
I need to add three types of tax rates with their corresponding dropdown lists : sGST, cGST and IGST. All these three taxes need to be accounted for calculation of tax.
There are other options like exempted and NA not sure how they can be included in calculations.
Interested folks can connect with their quote on rucha@letsexcel.in
Canadian or any other Custom Tax additions can be done by customising modules/AOS_Products_Quotes/line_items.js and modules/AOS_Products_Quotes/Line_Items.php files. It is not straight forward unless you are a good developer. If people are frustrated with what they can not achieve with their limited skills, it would be better to get a knowledgeable person from crm domain on board.