Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Bug: Tax validation

$
0
0
Ok so I've set up a state tax rule... that's fine it works great when it's Idaho but, if I put into state ID or Id the tax is not applied I do realize the last form there is invalid. In any case what I needed to do was add 2 separate additional rules in the database table itself with Id and ID. Then of course it works except that it would probably be prudent to validate the input on the state/country boxes or just have a drop down. Ideally something to this effect. List countries states have their values set to the Country/State/Province CODE. This is important for 3rd party addon's and api's etc. Would rather not have to set up a hash-table of country codes just to parse the name to the code for api. While of course the devs of WHMCS would have to set up a hash-table,assoc array or whatever. Same concept in this case. Either way set up your hash-table in the tax look-up or clientsdetails array so that internally whatever the customer selects is converted to Country/State/Province code have one entry related to said Country/State/Province code. Then no matter what they enter as long as it's a valid entry. Raise error if not or just have a select. Tax is applied. I will be duct taping the template together to add this validation in the meantime.

In the words of the Late Dale Earnhardt Sr. Nothin a little duct tape can't fix.

Viewing all articles
Browse latest Browse all 13458

Trending Articles