diff --git a/app/Views/editrequisitionform.php b/app/Views/editrequisitionform.php
index a2ad78a8..9f02ab4d 100644
--- a/app/Views/editrequisitionform.php
+++ b/app/Views/editrequisitionform.php
@@ -38,24 +38,9 @@ if (!empty($ReqPOType)) {
window.onload = function() {
var serviceScheduleType = '';
if (serviceScheduleType != '') {
- if (serviceScheduleType != 'Recurring') {
- $('#DisplayScheduleDiv').show();
- $('#ServicePeriodOption').hide();
- $('#NoServices').hide();
-
- } else {
- $('#DisplayScheduleDiv').show();
- $('#ServicePeriodOption').hide();
- $('#NoServices').hide();
- }
-
-
-
+ $('#DisplayScheduleDiv').show();
} else {
- document.getElementById('DisplayScheduleDiv').style.display = 'none';
- $('#ServicePeriodOption').hide();
- $('#NoServices').hide();
-
+ $('#DisplayScheduleDiv').hide();
}
}
@@ -97,7 +82,6 @@ if (!empty($ReqPOType)) {
$data = array('name' => 'RequestType', 'value' => set_value('RequestType', $ReqType), 'id' => 'RequestType', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
-
@@ -130,55 +114,17 @@ if (!empty($ReqPOType)) {
?>
-
-
-
-
- ConfigValue) {
-
- $ServiceOptions[$SerOptionsel->ConfigValue] = $SerOptionsel->ConfigValue;
- }
- endforeach;
-
- foreach ($ServiceOption as $SerOption) :
- if ($servicePeriod != $SerOption->ConfigValue) {
- $ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
- }
- endforeach;
- }
- echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"');
- ?>
-
-
-
- 'ServiceNo', 'value' => set_value('ServiceNo', $noOfService), 'id' => 'ServiceNo', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);');
- echo form_input($data);
+ $selectedValue = set_value('ScheduleType') ? set_value('ScheduleType') : reset($SchType);
+ echo form_dropdown('ScheduleType', $SchType, $selectedValue, 'id="ScheduleType" class = "form-control searchabledropdown" data-toggle="select2"');
?>
@@ -240,27 +186,50 @@ if (!empty($ReqPOType)) {
-
+
+ 'ServiceNo', 'value' => set_value('ServiceNo', $noOfService), 'id' => 'ServiceNo', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);');
+ echo form_hidden($data);
+ ?>
+
+
+ ConfigValue) {
+
+ $ServiceOptions[$SerOptionsel->ConfigValue] = $SerOptionsel->ConfigValue;
+ }
+ endforeach;
+
+ foreach ($ServiceOption as $SerOption) :
+ if ($servicePeriod != $SerOption->ConfigValue) {
+ $ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
+ }
+ endforeach;
+ }
+ echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"');
+ ?>
+
-
-
-
+
@@ -413,6 +382,7 @@ if (!empty($ReqPOType)) {
-
-
- ConfigValue] = $SerOption->ConfigValue;
- endforeach;
- }
- echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"');
- ?>
-
-
-
- 'ServiceNo', 'value' => set_value('ServiceNo'), 'id' => 'ServiceNo', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);');
- echo form_input($data);
+ echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType" class = "form-control searchabledropdown" data-toggle="select2"');
?>
+
+
@@ -320,6 +317,7 @@ if (!empty($Emp)) {