Jump to content

Calculating tax on billable items


tasgray

Recommended Posts

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? 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated