Hi,
I know only few basics of PHP. Pls advice me on writing code
Pls go through the attached screen shot of my app gini application.
I want to calculate some field values(CGST @ 1.5 %, SGST@ 1.5% on Taxable Amount) automatically; and the calculation should be done during text change event.
I have found before or after insert code to be written on hooks files . But it is not helpful for me. I need calculation to happen during text change event
PLEASE HELP
Regards,
SAMPATH
AUTO CALCULATION WHILE TEXT CHANGE EVENT
AUTO CALCULATION WHILE TEXT CHANGE EVENT
Regards,
SAMPATH
SAMPATH
Re: AUTO CALCULATION WHILE TEXT CHANGE EVENT
Hi,
you need to do this via Javascript (here in combination with jquery).
You can put the code in the <tablename>-dv.js file in the hooks folder.
You need to so something like:
$j('#taxalbleamount').on('change', function () {
var tax=+($j('#taxalbleamount').val());
$j('#cgst').val(tax*1.5/100);
$j('#sgst').val(tax*1.5/100);
$j('#billtotal').val(tax+tax*1.5/100+tax*1.5/100);
}
You need your identifiere of course, as I cannot see them .
you need to do this via Javascript (here in combination with jquery).
You can put the code in the <tablename>-dv.js file in the hooks folder.
You need to so something like:
$j('#taxalbleamount').on('change', function () {
var tax=+($j('#taxalbleamount').val());
$j('#cgst').val(tax*1.5/100);
$j('#sgst').val(tax*1.5/100);
$j('#billtotal').val(tax+tax*1.5/100+tax*1.5/100);
}
You need your identifiere of course, as I cannot see them .
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: AUTO CALCULATION WHILE TEXT CHANGE EVENT
THANKS YOU SOLVED MY PROBLEM
regards,
Sampath
regards,
Sampath
Regards,
SAMPATH
SAMPATH