admin 4/3/2019 | |
This is possible but not straightforward and a fair amount of coding will be required. The main issue is that we do not have an API to access details table info on the master Add page. Also re-calculation should happen when details records are deleted, added or edited. |
A
|
ayctech 4/4/2019 |
I did it with jQuery |
E
|
ehwagner author 4/9/2019 |
I did it with jQuery in your case it would be input[name^=value_precio_total_detalle], the calculations I put in javascript onload of the detail so that it calculates in the cabezera go through all the selections $('select[name^=value_precio_total_detalle] option:selected').each(function() { if ($(this).val().length > 0) { add += Number($(this).val()); } }) if (add>0){ $("input[id^=value_precio_total_cobros]").val(add); }
|
E
|
ehwagner author 4/9/2019 |
This is possible but not straightforward and a fair amount of coding will be required. The main issue is that we do not have an API to access details table info on the master Add page. Also re-calculation should happen when details records are deleted, added or edited. The closest we have is an Invoice template where similar calculation is implemented: https://xlinesoft.com/invoice
|
A
|
ayctech 4/9/2019 |
I already understood what you want to do, is the sum of the details you are doing with the total function type = total? |
A
|
ayctech 4/11/2019 |
is a bit complicated as you want to do, you have to extract the number with jquery (the code below), turn it into an integer and remove the point with a function so you can add with the input of the header |