diff --git a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php index b6bd4064..90a9adfe 100644 --- a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php +++ b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php @@ -443,6 +443,8 @@ $('#execution-total').prop('readonly',true); //$('#execution-time').prop('disabled', true) $('#execution-core_value').parent().hide(); + $('#execution-core_value').attr('required',false); + let selected = JSON.parse($(this).attr('plan_details')); console.log("Plan Detail : ", selected); @@ -600,11 +602,12 @@ $('#execution-msl_code').prop('readonly', true); $('#execution-speciality').prop('readonly', true); $('#execution-core_value').parent().hide(); + $('#execution-core_value').attr('required',false); + const monthNames = [ - "January", "February", "March", "April", "May", "June", - "July", "August", "September", "October", "November", "December" + "Oct-26", "Nov-26", "Dec-26" ]; $('#execution-plan_date').on('change', function () { @@ -613,7 +616,7 @@ if (selectedDateVal) { // 'YYYY-MM-DD' split karun month extract karane (timezone issue yet nahi) const parts = selectedDateVal.split('-'); - const monthIndex = parseInt(parts[1], 10) - 1; // 0-based index (0 = January) + const monthIndex = parts[1]; // 0-based index (0 = January) const monthName = monthNames[monthIndex]; // Dropdown madhe toh month select karne @@ -673,6 +676,8 @@ $('#field-msl_code').prop('readonly', true); $('#field-speciality').prop('readonly', true); $('#field-core_value').parent().hide(); + $('#field-core_value').attr('required',false); + @@ -682,8 +687,7 @@ $(document).ready(function () { const monthNames = [ - "January", "February", "March", "April", "May", "June", - "July", "August", "September", "October", "November", "December" + "Oct-26", "Nov-26", "Dec-26" ]; $('#field-plan_date').on('change', function () { @@ -692,7 +696,7 @@ if (selectedDateVal) { // 'YYYY-MM-DD' split karun month extract karane (timezone issue yet nahi) const parts = selectedDateVal.split('-'); - const monthIndex = parseInt(parts[1], 10) - 1; // 0-based index (0 = January) + const monthIndex = parts[1]; // 0-based index (0 = January) const monthName = monthNames[monthIndex]; // Dropdown madhe toh month select karne