mksharmil 02:27:13 | I have written a functions to calculate subtotal+tax+Other Charges.
but the problem is in this line: tax rate is fetched by AJAX respond text 'txtHint3'.
This is the pic of my work ![]() I want it to be calculated as I choose tax name from the drop down list. See 1. In 1st row 'Gtotal of sale enries' is the total calculation of sales. 2. In 2nd row Drop down list of tax names. 3. next box is of tax rate fetched by Ajax. 4. The last box in 2nd row is for calculation of tax amount(should contain 0.00 if no tax is selected). 5. 3rd Row is for adding packing & forwarding Charges(should contain 0.00 if no value is available). 6. 4rth Row is for other Charges(should contain 0.00 if no value is available). 7. The last Row is for Gross Total. I Hope you understand the problem and can help me. |
smo1234 02-27-2013 | This is what I understand In the 2nd row you have two text boxes. First one ( small one ) will list the tax rate after selection of tax type from the drop down list. Once this value or percentage of tax is available the right most text box will calculate the tax based on the tax rate and the Total Sales Entries. Other text boxes are for entry only and based on these the final rate will be calculated. All the calculations can be done by JavaScript. Use the onblur event to trigger the calculations. |
smo1234 02-28-2013 | Using this concept a good tax calculator can be developed. |
mksharmil 03-09-2013 | Ya that's it. Thanks a lot again!!! |