-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
\ No newline at end of file
+ });
+
\ No newline at end of file
diff --git a/app/Views/alterpurchaseorder.php b/app/Views/alterpurchaseorder.php
index 9d688d81..886e6b22 100644
--- a/app/Views/alterpurchaseorder.php
+++ b/app/Views/alterpurchaseorder.php
@@ -1,6 +1,7 @@
"NO", "value" => "0"), array("name" => "YES", "value" => "1")
+ array("name" => "NO", "value" => "0"),
+ array("name" => "YES", "value" => "1")
);
$ReqType = '';
$CompanyAddress = '';
@@ -172,40 +173,40 @@ if (!empty($INRSYMBOL)) {
$(function() {
- $("#PODate").datepicker({
- // minDate : 'now',
- // maxDate : 'now',
- dateFormat: 'dd-mm-yy',
- changeMonth: true,
- changeYear: true,
- yearRange: '-100:+0'
- });
- $("#Deliverydt").datepicker({
- minDate: 'now',
- dateFormat: 'dd-mm-yy',
- changeMonth: true,
- changeYear: true,
- yearRange: '0:+10'
- });
+ // $("#PODate").datepicker({
+ // // minDate : 'now',
+ // // maxDate : 'now',
+ // dateFormat: 'dd-mm-yy',
+ // changeMonth: true,
+ // changeYear: true,
+ // yearRange: '-100:+0'
+ // });
+ // $("#Deliverydt").datepicker({
+ // minDate: 'now',
+ // dateFormat: 'dd-mm-yy',
+ // changeMonth: true,
+ // changeYear: true,
+ // yearRange: '0:+10'
+ // });
- $("#Date1").datepicker({
- // minDate : 'now',
- dateFormat: 'dd-mm-yy',
- changeMonth: true,
- changeYear: true,
- yearRange: '0:+10'
- });
+ // $("#Date1").datepicker({
+ // // minDate : 'now',
+ // dateFormat: 'dd-mm-yy',
+ // changeMonth: true,
+ // changeYear: true,
+ // yearRange: '0:+10'
+ // });
- $("#MRC").datepicker({
- // minDate : 'now',
- dateFormat: 'dd-mm-yy',
- changeMonth: true,
- changeYear: true,
- yearRange: '0:+10'
- });
+ // $("#MRC").datepicker({
+ // // minDate : 'now',
+ // dateFormat: 'dd-mm-yy',
+ // changeMonth: true,
+ // changeYear: true,
+ // yearRange: '0:+10'
+ // });
var SelectedMaterialList = {
Mat: []
@@ -1910,10 +1911,11 @@ if (!empty($INRSYMBOL)) {
$("#EditRevenueMaterialCode").select2();
$("#MaterialCode").select2();
$("#ServiceMaterialCode").select2();
+ $("#emergency_itemcode").select2();
+
});
- $("#emergency_itemcode").select2();
@@ -2020,140 +2022,146 @@ if (!empty($INRSYMBOL)) {
.num {
text-align: right;
}
+
.header-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 25px;
- }
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 25px;
+ }
- .header-container h2 {
- flex: 1;
- text-align: center;
- margin: 0;
- }
+ .header-container h2 {
+ flex: 1;
+ text-align: center;
+ margin: 0;
+ }
- .centered {
- display: flex;
- /* justify-content: center; */
- align-items: center;
- height: 10vh;
- }
+ .centered {
+ display: flex;
+ /* justify-content: center; */
+ align-items: center;
+ height: 10vh;
+ }
- .centered label,
- .centered input {
- margin: 0 5px;
- }
+ .centered label,
+ .centered input {
+ margin: 0 5px;
+ }
- .mandatory {
- color: red;
- text-align: right;
- background-color: white;
- }
+ .mandatory {
+ color: red;
+ text-align: right;
+ background-color: white;
+ }
-
-
-
-
-
- -
Report - Pending Purchase Order
+ .dataTables_filter {
+ width: 50%;
+ float: right;
+ text-align: right;
+ }
-
-
- 'form-label-left CreatealterPO ', 'name' => 'CreatealterPO', 'id' => 'CreatealterPO');
+
- echo form_open(base_url() . '/purchaseorder/addalterPO/', $attributes); ?>
-
-
-
-
-
-
- Emergency Purchase Order
-
+
+
+
-
-
-
-
- 'Select Request Type');
+
- if (!empty($RequestType)) {
+ 'form-label-left CreatealterPO ', 'name' => 'CreatealterPO', 'id' => 'CreatealterPO');
- foreach ($RequestType as $RID) :
- if ($RID->ConfigValue == "SERVICE" || $RID->ConfigValue == "REVENUE") {
- $options[$RID->ConfigValue] = $RID->ConfigValue;
- }
- endforeach;
- }
-
- echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="purpose"', 'class = "form-control select2"', 'required="true"');
-
- ?>
-
-
+
+
+
+ Emergency Purchase Order
+
-
-
+ echo form_open(base_url() . '/purchaseorder/addalterPO/', $attributes); ?>
+
+
+
+
+
-
+
-
+
'POType', 'value' => set_value('POType', $ReqType), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- 'Select Supplier');
- //print_r( $options);
+ $options = array("-1" => 'Select Request Type');
- if (!empty($Suplist)) {
- foreach ($Suplist as $SID) :
- $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName;
+ if (!empty($RequestType)) {
+
+ foreach ($RequestType as $RID) :
+ if ($RID->ConfigValue == "SERVICE" || $RID->ConfigValue == "REVENUE") {
+ $options[$RID->ConfigValue] = $RID->ConfigValue;
+ }
endforeach;
}
- echo form_dropdown('drpSupplier', $options, set_value('drpSupplier'), 'id="drpSupplier"', 'required="true"', 'class="form-control select2"');
+ echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="purpose"', 'class = "form-control select2"', 'required="true"');
?>
-
-
-
-
- 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
+
-
+
+
+
+
+ 'POType', 'value' => set_value('POType', $ReqType), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'Select Supplier');
+ //print_r( $options);
+
+ if (!empty($Suplist)) {
+ foreach ($Suplist as $SID) :
+ $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName;
+ endforeach;
+ }
+
+ echo form_dropdown('drpSupplier', $options, set_value('drpSupplier'), 'id="drpSupplier"', 'required="true"', 'class="form-control select2"');
+
+ ?>
+
+
+
+
+ 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
-
-
- Select Tax Range*
-
-
+
+
-
+ Select Tax Range*
+
- +
"Range", "id" => "Local", "value" => "0", 'checked' => set_radio('Range', '0', TRUE))); ?>
"Range", "id" => "Inter_state", "value" => "1", 'checked' => set_radio('Range', '1', FALSE))); ?>
+
-
- 'Selected Work Status');
- foreach ($WorkStatus as $WSID) :
- $options4[$WSID->StatusCode] = $WSID->StatusName;
- endforeach;
- }
- echo form_dropdown('workstatus', $options4, set_value('workstatus'), 'id="workstatusValue"', 'required="true"', 'class="form-control select2');
- ?>
-
-
- Select Delivery By*
-
-
+
-
+
+ 'Selected Work Status');
+ foreach ($WorkStatus as $WSID) :
+ $options4[$WSID->StatusCode] = $WSID->StatusName;
+ endforeach;
+ }
+ echo form_dropdown('workstatus', $options4, set_value('workstatus'), 'id="workstatusValue"', 'required="true"', 'class="form-control select2');
+ ?>
+
+
+ Select Delivery By*
+
- +
"DateRange", "id" => "Date", "value" => "0", 'checked' => set_radio('DateRange', '0', true))); ?>
"DateRange", "id" => "Schedule", "value" => "1", 'checked' => set_radio('DateRange', '1', false))); ?>
+
+
-
-
-
-
-
- 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
+
-
+
+
+ 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
-
-
+
+
-
-
+
+
+
+
+
+
+ 'txtcurrencytype', 'value' => set_value('txtcurrencytype'), 'id' => 'txtcurrencytype', 'class' => 'form-control', 'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtexachangerate', 'value' => set_value('txtexachangerate'), 'id' => 'txtexachangerate', 'class' => 'form-control', 'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
-
+
+
+ 'Select Department Name');
- 'txtcurrencytype', 'value' => set_value('txtcurrencytype'), 'id' => 'txtcurrencytype', 'class' => 'form-control', 'required' => 'true');
- echo form_input($data);
- ?>
+ if (!empty($DeptList)) {
+ foreach ($DeptList as $DID) :
+
+ $options1[$DID->DEPCode] = $DID->DEPCode . ' ' . ' - ' . ' ' . $DID->DepartmentName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('drpDepartment', $options1, set_value('drpDepartment'), 'id="DepartmentName"', 'class = "form-control select2"', 'required="true"', 'disabled="disabled"');
+
+ ?>
+
+
-
+
+
-
+ 'Cost Center Name');
- 'txtexachangerate', 'value' => set_value('txtexachangerate'), 'id' => 'txtexachangerate', 'class' => 'form-control', 'required' => 'true');
- echo form_input($data);
- ?>
+ if (!empty($CostList)) {
+
+ foreach ($CostList as $cost) :
+
+
+ $options2[$cost['CostCenterCode']] = $cost['CostCenterCode'] . ' ' . ' - ' . ' ' . $cost['CostCenterName'];
+
+ endforeach;
+ }
+
+ echo form_dropdown('CostCenterName', $options2, set_value('CostCenterName'), 'id="CostCenterName"', 'class="form-control select2"', 'required="true"', 'multiple="true"');
+
+ ?>
+
- To check Today's Foreign Exchange value
+
-
+
+
-
+
+ 'AvalBuget', 'value' => set_value('AvalBuget'), 'id' => 'AvalBuget', 'class' => 'form-control num', 'readonly' => 'true');
+ echo form_hidden($data);
+ // echo form_input($data);
+
+
+ ?>
+
-
-
-
-
-
-
- 'Select Department Name');
-
- if (!empty($DeptList)) {
-
- foreach ($DeptList as $DID) :
-
- $options1[$DID->DEPCode] = $DID->DEPCode . ' ' . ' - ' . ' ' . $DID->DepartmentName;
-
- endforeach;
- }
-
- echo form_dropdown('drpDepartment', $options1, set_value('drpDepartment'), 'id="DepartmentName"', 'class = "form-control select2"', 'required="true"', 'disabled="disabled"');
-
- ?>
-
-
-
-
-
-
- 'Cost Center Name');
-
-
- if (!empty($CostList)) {
-
- foreach ($CostList as $cost) :
-
-
- $options2[$cost['CostCenterCode']] = $cost['CostCenterCode'] . ' ' . ' - ' . ' ' . $cost['CostCenterName'];
-
- endforeach;
- }
-
- echo form_dropdown('CostCenterName', $options2, set_value('CostCenterName'), 'id="CostCenterName"', 'class="form-control select2"', 'required="true"', 'multiple="true"');
-
- ?>
-
-
-
-
-
-
- 'AvalBuget', 'value' => set_value('AvalBuget'), 'id' => 'AvalBuget', 'class' => 'form-control num', 'readonly' => 'true');
- echo form_hidden($data);
- // echo form_input($data);
-
-
- ?>
-
-
+
-
-
-
-
-
-
-
-
-
- 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
- echo form_input($data);
- ?>
-
-
-
-
- 'emergmodeofshipment', 'value' => set_value('emergmodeofshipment'), 'id' => 'emergmodeofshipment', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- 'emergsupplierreference', 'value' => set_value('emergsupplierreference'), 'id' => 'emergsupplierreference', 'class' => 'form-control', 'maxlength' => '40');
- echo form_input($data);
- ?>
-
-
-
-
-
- 'emergsupplierofferno', 'value' => set_value('emergsupplierofferno'), 'id' => 'emergsupplierofferno', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
+
-
+
-
-
-
- 'emergotherreference', 'value' => set_value('emergotherreference'), 'id' => 'emergotherreference', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
+
+
-
+
+
+
+ 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
+ echo form_input($data);
+ ?>
-
+
+
+
+
+
+ 'emergmodeofshipment', 'value' => set_value('emergmodeofshipment'), 'id' => 'emergmodeofshipment', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'emergsupplierreference', 'value' => set_value('emergsupplierreference'), 'id' => 'emergsupplierreference', 'class' => 'form-control', 'maxlength' => '40');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'emergsupplierofferno', 'value' => set_value('emergsupplierofferno'), 'id' => 'emergsupplierofferno', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
-
-
+
+
+
+
+ 'emergotherreference', 'value' => set_value('emergotherreference'), 'id' => 'emergotherreference', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
-
+
-
+
+
+
+
-
-
@@ -2455,28 +2454,34 @@ if (!empty($INRSYMBOL)) {
?>
-
- 'Select', '1' => 'REVENUE', '2' => 'CAPITAL');
- echo form_dropdown('BudgetType', $optionsnew, set_value('BudgetType'), 'id="BudgetType"', 'required="true"', 'class="form-control select2');
- ?>
-
-
-
-
-
+
+ 'Select', '1' => 'REVENUE', '2' => 'CAPITAL');
+ echo form_dropdown('BudgetType', $optionsnew, set_value('BudgetType'), 'id="BudgetType"', 'required="true"', 'class="form-control select2');
+ ?>
+
+
-
+
-
+
- IS THIS OPEN ORDER FORMAT
-
-
- Select Line Item
-
+
+
+
+ IS THIS OPEN ORDER FORMAT
+
+
+ Select Line Item
+
+
+
+
+
@@ -2574,64 +2579,59 @@ if (!empty($INRSYMBOL)) {
Add Bill Details
-
-
-
Delivery Challan /Inv No
-
-
- Delivery Challan /Inv Date
-
- 'Date1', 'value' => set_value('Date1', $CurrentDate), 'id' => 'Date1', 'class' => 'form-control num', 'required' => 'true');
- echo form_input($data); ?>
-
- Material Received Date
- 'MRC', 'value' => set_value('MRC', $CurrentDate), 'id' => 'MRC', 'class' => 'form-control num', 'required' => 'true');
- echo form_input($data); ?>
+
@@ -3952,7 +3949,7 @@ if (!empty($INRSYMBOL)) {
+
+
-
-
+
+
\ No newline at end of file
diff --git a/app/Views/createPOfromRequistion.php b/app/Views/createPOfromRequistion.php
index b467baf5..0bfda90c 100644
--- a/app/Views/createPOfromRequistion.php
+++ b/app/Views/createPOfromRequistion.php
@@ -1,14 +1,16 @@
+ .Date-filter-form {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ /* Adjust the gap as needed */
+ }
+
+ .Date-filter-form input,
+ .Date-filter-form button {
+ padding: 5px;
+ font-size: 14px;
+ }
+
+ .Date-filter-form button {
+ background-color: #007bff;
+ color: white;
+ border: none;
+ cursor: pointer;
+ }
+
+ .Date-filter-form button:hover {
+ background-color: #0056b3;
+ }
+
+ .icon-button {
+ background: none;
+ border: none;
+ cursor: pointer;
+ color: #007bff;
+ font-size: 18px;
+ }
+
+ .icon-button:hover {
+ color: #0056b3;
+ }
+
Delivery Challan /Inv No
+
+
+ Delivery Challan /Inv Date
+
+ 'Date1', 'value' => set_value('Date1', $CurrentDate), 'id' => 'Date1', 'class' => 'form-control num', 'required' => 'true');
+ echo form_input($data); ?>
+
+ Material Received Date
+ 'MRC', 'value' => set_value('MRC', $CurrentDate), 'id' => 'MRC', 'class' => 'form-control num', 'required' => 'true');
+ echo form_input($data); ?>
-
-
+
+
+
+
+
+
+
+
+ Vehicle No
+
+
+ Courier No
+
-
-
-
-
-
-
-
-
-
Vehicle No
-
+
-
- Is Quality Check Required
+
+
- Courier No
-
+
-
+
-
- Is Quality Check Required
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
-
-
-
+
+
-
+
@@ -3492,51 +3489,51 @@ if (!empty($INRSYMBOL)) {
@@ -3192,8 +3189,8 @@ if (!empty($INRSYMBOL)) {
'EdittxtSpcialInstructionSingle', 'value' => set_value('EdittxtSpcialInstructionSingle'), 'id' => 'EdittxtSpcialInstructionSingle', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
- echo form_textarea($data); ?>
+ $data = array('name' => 'EdittxtSpcialInstructionSingle', 'value' => set_value('EdittxtSpcialInstructionSingle'), 'id' => 'EdittxtSpcialInstructionSingle', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
+ echo form_textarea($data); ?>
@@ -3466,7 +3463,7 @@ if (!empty($INRSYMBOL)) {
-
+
-
-
-
-
-
- 'RevenueEditSgst', 'value' => set_value('RevenueEditSgst', 0), 'id' => 'RevenueEditSgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();');
- echo form_input($data);
- ?>
-
-
-
-
@@ -3835,7 +3832,7 @@ if (!empty($INRSYMBOL)) {
?>
-
- 'RevenueEditAfterSgst', 'value' => set_value('RevenueEditAfterSgst', 0), 'id' => 'RevenueEditAfterSgst', 'class' => 'form-control num', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
+
+
+
-
+
+
+
+
+
-
+ 'RevenueEditSgst', 'value' => set_value('RevenueEditSgst', 0), 'id' => 'RevenueEditSgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();');
+ echo form_input($data);
+ ?>
-
@@ -3550,7 +3547,7 @@ if (!empty($INRSYMBOL)) {
-
-
-
-
-
- 'RevenueEditIgst', 'value' => set_value('RevenueEditIgst', 0), 'id' => 'RevenueEditIgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange()');
- echo form_input($data);
- ?>
-
-
-
-
+
- 'RevenueEditAfterIgst', 'value' => set_value('RevenueEditAfterIgst', 0), 'id' => 'RevenueEditAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
+
+
+
+
+ 'RevenueEditAfterSgst', 'value' => set_value('RevenueEditAfterSgst', 0), 'id' => 'RevenueEditAfterSgst', 'class' => 'form-control num', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'RevenueEditIgst', 'value' => set_value('RevenueEditIgst', 0), 'id' => 'RevenueEditIgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange()');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'RevenueEditAfterIgst', 'value' => set_value('RevenueEditAfterIgst', 0), 'id' => 'RevenueEditAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
@@ -3861,7 +3858,7 @@ if (!empty($INRSYMBOL)) {
-
+
-
+
@@ -3882,7 +3879,7 @@ if (!empty($INRSYMBOL)) {
-
-
-
+
-
+
@@ -4216,8 +4213,8 @@ if (!empty($INRSYMBOL)) {
'txtSpcialInstructionSingle', 'value' => set_value('txtSpcialInstructionSingle'), 'id' => 'txtSpcialInstructionSingle', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
- echo form_textarea($data); ?>
+ $data = array('name' => 'txtSpcialInstructionSingle', 'value' => set_value('txtSpcialInstructionSingle'), 'id' => 'txtSpcialInstructionSingle', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
+ echo form_textarea($data); ?>
@@ -5448,11 +5445,11 @@ if (!empty($INRSYMBOL)) {
-
+
'form-label-left CreatePO ', 'name' => 'CreatePO', 'id' => 'CreatePO', 'method' => 'post', 'role' => 'form');
echo form_open(base_url() . 'purchaseOrder', $attributes); ?>
-
-
-
+
+
+
+
+
+
+
+
-
-
\ No newline at end of file
diff --git a/app/Views/employeeListing.php b/app/Views/employeeListing.php
index 5ce3392d..b57abb59 100644
--- a/app/Views/employeeListing.php
+++ b/app/Views/employeeListing.php
@@ -63,12 +63,18 @@
color: #0056b3;
}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Requisition Details -
+
+
+
+
+
+
+
+
+ 'ReqType', 'value' => set_value('ReqType'), 'id' => 'ReqType', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'ReqBy', 'value' => set_value('ReqBy'), 'id' => 'ReqBy', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'Desigination', 'value' => set_value('Desigination'), 'id' => 'Desigination', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ 'RequistionDate', 'value' => set_value('RequistionDate'), 'id' => 'RequistionDate', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'CostCenter', 'value' => set_value('CostCenter'), 'id' => 'CostCenter', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data); ?>
+
+
+
+
+
+
+ 'AvlBudgetAmount', 'value' => set_value('AvlBudgetAmount'), 'id' => 'AvlBudgetAmount', 'class' => 'form-control', 'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ | SNo | +Item Code | +Item Description | +UOM | +Requested Quantity | +Ordered Quantity | +Status | +
|---|
+
+
+ Ok
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Do you want to create an Import PO for this Requisition?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cancel
+
+
+
-
+
-
-
-
- Create Purchase Order from Requistion
-
+
+
+
+ Create Purchase Order from Requistion
+
- getFlashdata('error');
- if ($error) {
- ?>
-
getFlashdata('listErrors');
if ($listErrors) { ?>
-
-
- getFlashdata('error'); ?>
-
+ getFlashdata('error');
+ if ($error) {
+ ?>
+
+
+ getFlashdata('error'); ?>
+
getFlashdata('success');
if ($success) {
?>
-
-
+
+
getFlashdata('success'); ?>
-
+
listErrors('
', '
');
- ?>
+ ?>
-
+
+
-
-
+
+
-
+
+
getFlashdata('listErrors'); ?>
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Requisition Details -
-
-
-
-
-
-
-
-
- 'ReqType', 'value' => set_value('ReqType'), 'id' => 'ReqType', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- 'ReqBy', 'value' => set_value('ReqBy'), 'id' => 'ReqBy', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- 'Desigination', 'value' => set_value('Desigination'), 'id' => 'Desigination', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
- 'RequistionDate', 'value' => set_value('RequistionDate'), 'id' => 'RequistionDate', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- 'CostCenter', 'value' => set_value('CostCenter'), 'id' => 'CostCenter', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data); ?>
-
-
-
-
-
-
- 'AvlBudgetAmount', 'value' => set_value('AvlBudgetAmount'), 'id' => 'AvlBudgetAmount', 'class' => 'form-control', 'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- | SNo | -Item Code | -Item Description | -UOM | -Requested Quantity | -Ordered Quantity | -Status | -
|---|
-
-
- Ok
-
- | Requistion Number | Requistion Type | Requested By | -Tot. No. Of Line Items | -Po Created Line Items | -Partial PO Created Line Items | +Tot Line Items | +Po Line Items | +Partial PO Line Items | New Line Items | Status | Department | @@ -305,85 +357,179 @@ span.highlight { $index = 1; foreach ($ReqList as $record) { ?> -
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | - ReqDate); - $RequestedDate = $dt->format('d-m-Y'); - echo $RequestedDate; - ?> - | -ReqNo; ?> | -ReqType; ?> | -FirstName; ?> | -TotalNoofLineItems; ?> | -PolineItems; ?> | -PartilallyLineItems; ?> | -newLineItem; ?> | -StatusName; ?> | -DepartmentName; ?> | -Designation; ?> | -
| + | + ReqDate); + $RequestedDate = $dt->format('d-m-Y'); + echo $RequestedDate; + ?> + | +ReqNo; ?> | +ReqType; ?> | +FirstName; ?> | +TotalNoofLineItems; ?> | +PolineItems; ?> | +PartilallyLineItems; ?> | +newLineItem; ?> | +StatusName; ?> | +DepartmentName; ?> | +Designation; ?> | +
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+ getFlashdata('error');
if ($error) {
@@ -81,50 +87,39 @@
echo show_alert($type, $success);
}
?>
-
-
-
-
- listErrors('
- ', '
');
- ?>
-
-
-
-
- Employee Details
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
-
-
+
+
+
+
| Created Date | -Emp ID | +Emp ID | Employee Name | Contact Number | Designation | @@ -155,18 +150,18 @@ } } ?> +
|---|
- Employee Monthly Payment Listing
+
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Employee Monthly Payment Listing
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -78,81 +95,72 @@ $('html').bind('keypress', function(e) {
- "Jan", "2" => "Feb","3" => "Mar","4" => "Apr","5" => "May","6" => "June","7"=> "July","8"=> "Aug","9" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
-
- $currentmontharray = array(array($month."-".$year => $monthsoptions[$month]."-".$year));
- // For find out Next and previous month and year from current year
- $aftersix = array();
- for ($i = 0; $i <3;$i++){
-
- $month++;
- if($month > 12)
- {
- $month = 1;
- $year = $year +1;
- }
-
- $aftersix[]=array($month."-".$year => $monthsoptions[$month]."-".$year);
-
- }
-
- $year = date("Y");
- $month = date("m");
-
- $beforesix = array();
- for ($i = 3; $i >0;$i--){
-
- $month--;
- if($month < 1 )
- {
- $month = 12;
- $year = $year - 1;
- }
-
- $beforesix[]=array($month."-".$year => $monthsoptions[$month]."-".$year);
-
- }
-
- $beforesix = array_reverse($beforesix);
-
-
- $options = array_merge($options,$beforesix);
- //echo count($options);
-
- $options = array_merge($options,$currentmontharray);
- $options = array_merge($options,$aftersix);
-
- $ot = array();
- foreach($options as $o)
- {
-
- foreach($o as $key => $value)
- {
-
- $ot[$key] = $value;
-
- }
-
- }
- ?>
+ //echo $current;
+ $month = date("m");
+ if ($month < 10) {
+ $month = substr($month, 1);
+ }
+ $currentselection = $month . "-" . $year;
+ $options = array();
+ $monthsoptions = array("1" => "Jan", "2" => "Feb", "3" => "Mar", "4" => "Apr", "5" => "May", "6" => "June", "7" => "July", "8" => "Aug", "9" => "Sep", "10" => "Oct", "11" => "Nov", "12" => "Dec");
+
+ $currentmontharray = array(array($month . "-" . $year => $monthsoptions[$month] . "-" . $year));
+ // For find out Next and previous month and year from current year
+ $aftersix = array();
+ for ($i = 0; $i < 3; $i++) {
+
+ $month++;
+ if ($month > 12) {
+ $month = 1;
+ $year = $year + 1;
+ }
+
+ $aftersix[] = array($month . "-" . $year => $monthsoptions[$month] . "-" . $year);
+ }
+
+ $year = date("Y");
+ $month = date("m");
+
+ $beforesix = array();
+ for ($i = 3; $i > 0; $i--) {
+
+ $month--;
+ if ($month < 1) {
+ $month = 12;
+ $year = $year - 1;
+ }
+
+ $beforesix[] = array($month . "-" . $year => $monthsoptions[$month] . "-" . $year);
+ }
+
+ $beforesix = array_reverse($beforesix);
+
+
+ $options = array_merge($options, $beforesix);
+ //echo count($options);
+
+ $options = array_merge($options, $currentmontharray);
+ $options = array_merge($options, $aftersix);
+
+ $ot = array();
+ foreach ($options as $o) {
+
+ foreach ($o as $key => $value) {
+
+ $ot[$key] = $value;
+ }
+ }
+ ?>
-
-
+
-
+
@@ -202,98 +210,135 @@ $('html').bind('keypress', function(e) {
$record)
- {
- $index++;
- if(in_array($record->EmpID,$testarray)) { $index--; }else{ array_push($testarray,$record->EmpID);
- ?>
+ if (!empty($sample)) {
-
-
-
- EmpID ; ?>
- FirstName; ?>
-
- DateofJoining);
- $newDateFormat = $date->format('d-m-Y');
- echo $newDateFormat;
- ?>
-
- Designation; ?>
- NoofDays; ?>
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- Days_worked)){echo $record->Days_worked+$record->sunday_count;}else{echo "0.00";}?>
-
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- LOP_Days)){echo $record->LOP_Days;}else{echo "0.00";}?>
-
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- Paid_leave)){echo number_format($record->Paid_leave,2,'.','');}else { echo number_format(0.00,2,'.','');} ?>
-
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- OT_Hrs_Worked)){echo $record->OT_Hrs_Worked;}else { echo number_format(0.00,2,'.','');} ?>
-
- TotalSalary; ?>
-
- TotalSalary / $record->NoofDays; echo number_format($perDaySalary, 2); ?>
-
-
- Days_worked+$record->sunday_count); echo number_format($workedSalary, 2); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ $index = 0;
+ $i = 0;
+ foreach ($sample as $i => $record) {
+ $index++;
+ if (in_array($record->EmpID, $testarray)) {
+ $index--;
+ } else {
+ array_push($testarray, $record->EmpID);
+ ?>
+
+
+
+
+ EmpID; ?>
+ FirstName; ?>
+
+ DateofJoining);
+ $newDateFormat = $date->format('d-m-Y');
+ echo $newDateFormat;
+ ?>
+
+ Designation; ?>
+ NoofDays; ?>
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ Days_worked)) {
+ echo $record->Days_worked + $record->sunday_count;
+ } else {
+ echo "0.00";
+ } ?>
+
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ LOP_Days)) {
+ echo $record->LOP_Days;
+ } else {
+ echo "0.00";
+ } ?>
+
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ Paid_leave)) {
+ echo number_format($record->Paid_leave, 2, '.', '');
+ } else {
+ echo number_format(0.00, 2, '.', '');
+ } ?>
+
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ OT_Hrs_Worked)) {
+ echo $record->OT_Hrs_Worked;
+ } else {
+ echo number_format(0.00, 2, '.', '');
+ } ?>
+
+
+ TotalSalary; ?>
+
+ TotalSalary / $record->NoofDays;
+ echo number_format($perDaySalary, 2); ?>
+
+
+ Days_worked + $record->sunday_count);
+ echo number_format($workedSalary, 2); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- Monthly_Due)){echo $record->Monthly_Due; $totalmonthloan []=$record->Monthly_Due;}else { echo number_format(0.00,2,'.','');} ?>
-
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ Monthly_Due)) {
+ echo $record->Monthly_Due;
+ $totalmonthloan[] = $record->Monthly_Due;
+ } else {
+ echo number_format(0.00, 2, '.', '');
+ } ?>
+
@@ -304,41 +349,59 @@ $('html').bind('keypress', function(e) {
-
-
+
+
- Key)){echo "contenteditable='true';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
-
- Other_Deductions)){echo $record->Other_Deductions;$totalotherDet [] = $record->Other_Deductions;}else{ echo number_format(0.00,2,'.','');} ?>
-
+ Key)) {
+ echo "contenteditable='true';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
-
- Key)){echo "contenteditable='true';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;"
- style="text-align:right;" >
- Festival_Bonus)){echo $record->Festival_Bonus;$totalfestival [] = $record->Festival_Bonus;}else{ echo number_format(0.00,2,'.','');;} ?>
-
+ Other_Deductions)) {
+ echo $record->Other_Deductions;
+ $totalotherDet[] = $record->Other_Deductions;
+ } else {
+ echo number_format(0.00, 2, '.', '');
+ } ?>
+
-
+
+ Key)) {
+ echo "contenteditable='true';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;"
+ style="text-align:right;" >
+ Festival_Bonus)) {
+ echo $record->Festival_Bonus;
+ $totalfestival[] = $record->Festival_Bonus;
+ } else {
+ echo number_format(0.00, 2, '.', '');;
+ } ?>
+
- Key)){echo "contenteditable='false';"; } ?>
- Key)){?> title="Payslip Calculated"
- style="text-align:right;color:blue;" >
- Estimate)){
- echo $record->Estimate; $estTotal [] = $record->Estimate;
- }else {
- echo $empSalary[$i]; $estTotal [] = $empSalary[$i];
- }
- ?>
-
+
+
+ Key)) {
+ echo "contenteditable='false';";
+ } ?>
+ Key)) { ?> title="Payslip Calculated"
+ style="text-align:right;color:blue;" >
+ Estimate)) {
+ echo $record->Estimate;
+ $estTotal[] = $record->Estimate;
+ } else {
+ echo $empSalary[$i];
+ $estTotal[] = $empSalary[$i];
+ }
+ ?>
+
@@ -347,52 +410,51 @@ $('html').bind('keypress', function(e) {
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
+
+
+ }
+ }
+ }
+
+
+ ?>
@@ -403,14 +465,14 @@ $('html').bind('keypress', function(e) {
Total
-
+
-
+
-
-
+
+
@@ -418,7 +480,7 @@ $('html').bind('keypress', function(e) {
-
-
+
@@ -428,479 +490,491 @@ $('html').bind('keypress', function(e) {
-->