tasgray Posted April 24, 2018 Share Posted April 24, 2018 Hi Everyone, We are currently writing a module which will create billable items. There is a small challenge with billable items when the tax rules are set to inclusive. In this scenario, the total price has to include tax and the amount of tax will vary depending on the tax rules configured in WHMCS. Rather than extracting the tax rules in code and then calculating the tax, does WHMCS provide a function which can provide the tax for me based on the customer and amount provided? 0 Quote Link to comment Share on other sites More sharing options...
Remitur Posted May 1, 2018 Share Posted May 1, 2018 The price you specify for any billable item is always excluding tax. You can configure WHMCS (setup => payments => tax rules) in order to show to the customer the prices inclusive or exclusive of VAT. But later it's a matter of WHMCS decide what tax has to be applied, calculate it and apply it... you works always on prices excluding taxes. 0 Quote Link to comment Share on other sites More sharing options...
tasgray Posted May 7, 2018 Author Share Posted May 7, 2018 On 5/2/2018 at 2:45 AM, Remitur said: The price you specify for any billable item is always excluding tax. You can configure WHMCS (setup => payments => tax rules) in order to show to the customer the prices inclusive or exclusive of VAT. But later it's a matter of WHMCS decide what tax has to be applied, calculate it and apply it... you works always on prices excluding taxes. Hi Remitur, When tax type is set to inclusive, billable item prices include tax. There is no way to override that behaviour. If the tax rules are complex it becomes difficult to calculate, and also redundant. It would be much easier if WHMCS gave us an API method to calculate tax for a given customer. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.