Team 2 (Report Smartian POB-Onsubmit change)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 37s Details

This commit is contained in:
zeeshan 2026-09-28 17:13:05 +05:30
parent 4c718278a6
commit 35cd2119ed
1 changed files with 13 additions and 9 deletions

View File

@ -684,6 +684,15 @@ if (!empty($submissions->data->submissions)) {
$('#field-total_pob_value').val(totalValue);
});
$('#field-total_pob_units').prop("readonly","true");
$('#field-total_pob_value').prop("readonly","true");
$('#report-form').on('submit', function(event) {
event.preventDefault();
let val200 = parseFloat($('#field-foracort_200_rotacaps_60s_pob_value').val()) || 0;
let val400 = parseFloat($('#field-foracort_400_rotacaps_60s_pob_value').val()) || 0;
let syncrobrethe_200=parseFloat($('#field-foracort_inhaler_180_pob_value').val() ||0);
@ -703,15 +712,10 @@ if (!empty($submissions->data->submissions)) {
$('input[name="sb_adh_total"]').val(sbiAdhTotal);
$('input[name="adh_total"]').val(total);
});
$('#field-total_pob_units').prop("readonly","true");
$('#field-total_pob_value').prop("readonly","true");
$('#report-form').on('submit', function(event) {
event.preventDefault();
console.log("dpi_adh_total:", dpiAdhTotal);
console.log("mdi_adh_total:", mdiAdhTotal);
console.log("sb_adh_total:", sbiAdhTotal);
console.log("adh_total:", total);
$("#pageloader").fadeIn();
$.ajax({
type: "POST",