diff --git a/resources/views/form/rapport-gennovadc/1750326824-c1c033e6-9d6e-4647-b0dd-d3d28e6953e5.blade.php b/resources/views/form/rapport-gennovadc/1750326824-c1c033e6-9d6e-4647-b0dd-d3d28e6953e5.blade.php index 91ee74ff..1912cfcf 100644 --- a/resources/views/form/rapport-gennovadc/1750326824-c1c033e6-9d6e-4647-b0dd-d3d28e6953e5.blade.php +++ b/resources/views/form/rapport-gennovadc/1750326824-c1c033e6-9d6e-4647-b0dd-d3d28e6953e5.blade.php @@ -267,7 +267,7 @@ $brandData2 = [ {{isset($sub->formdata->encicarb_500_week2) ? (int)$sub->formdata->encicarb_500_week2: ''}} - {{isset($sub->formdata->encicarb_100_week2) ? (int)$sub->formdata->encicarb_100_week1: ''}} + {{isset($sub->formdata->encicarb_100_week2) ? (int)$sub->formdata->encicarb_100_week2: ''}} {{isset($sub->formdata->dynulta_week2) ? (int)$sub->formdata->dynulta_week2: ''}} @@ -965,8 +965,8 @@ $brandData2 = [ // Keep only PLAN fields editable (plan with value that user filled while making plan and week selection fields) $('#execution-vintor_4k_units').prop('readonly', true); - $('#execution-vintor_6k_units').prop('readonly', true); $('#execution-vintor_10k_units').prop('readonly', true); + $('#execution-vintor_6k_units').prop('readonly', true); $('#execution-encicarb_500_units').prop('readonly', true); $('#execution-encicarb_100_units').prop('readonly', true); $('#execution-dynulta_units').prop('readonly', true); @@ -1612,6 +1612,23 @@ $brandData2 = [ }) + $('#execution-vintor_6k_week1_exe,#execution-vintor_6k_week2_exe,#execution-vintor_6k_week3_exe,#execution-vintor_6k_week4_exe').on('keyup',function(){ + + let d = parseInt($('#execution-vintor_6k_week4_exe').val()) || 0; + + let total = d; + + $('#execution-vintor_6k_units_execution').val(total); + + let oldPlanValue = $('#execution-vintor_6k_units').val(); + + let percentage = ((total / oldPlanValue) * 100).toFixed(2); + + $('#execution-vintor_6k_percent').val(percentage); + + }) + + $('#execution-vintor_10k_week1_exe,#execution-vintor_10k_week2_exe,#execution-vintor_10k_week3_exe,#execution-vintor_10k_week4_exe').on('keyup',function(){ let d=parseInt($('#execution-vintor_10k_week4_exe').val())||0; @@ -1761,7 +1778,7 @@ $brandData2 = [ $('#execution-execution_month').attr({"required":false}); - $('#execution-vintor_4k_units,#execution-vintor_10k_units,#execution-encicarb_500_units,#execution-encicarb_100_units,#execution-encicarb_100_units,#execution-epofer_4k_units,#execution-epofer_10k_units,#execution-dynulta_units').prop('readonly',false); + $('#execution-vintor_4k_units,#execution-vintor_6k_units,#execution-vintor_10k_units,#execution-encicarb_500_units,#execution-encicarb_100_units,#execution-encicarb_100_units,#execution-epofer_4k_units,#execution-epofer_10k_units,#execution-dynulta_units').prop('readonly',false); // $('#execution-vintor_4k_units,#execution-vintor_10k_units,#execution-encicarb_500_units,#execution-encicarb_100_units,#execution-encicarb_100_units,#execution-epofer_4k_units,#execution-epofer_10k_units,#execution-dynulta_units').on('keyup',function(){ // let week=$('#execution-select_plan_week').val();