FIX_Revenue and Service Design
This commit is contained in:
parent
b2c99773cc
commit
634e129643
@ -458,6 +458,7 @@ mstr.CourierNo,pom.Status,pom.POType') //,bill.BillNo,bill.FilePath,
|
||||
function getRawPOMaterialList($ReqNo, $IsArray = '')
|
||||
{
|
||||
|
||||
|
||||
$result = $this->db->query("CALL P_GET_REQUISTIONLIST('" . $ReqNo . "')"); // or die(mysql_error());
|
||||
|
||||
// $result ->next_result();
|
||||
|
||||
@ -718,6 +718,28 @@ if (!empty($getlogpodtl)) {
|
||||
.num {
|
||||
text-align: right;
|
||||
}
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.header-container h2 {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
.centered {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
height: 10vh;
|
||||
}
|
||||
.centered label, .centered input {
|
||||
margin: 0 5px;
|
||||
}
|
||||
.mandatory { color:red;text-align:right;background-color: white;}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
@ -729,49 +751,43 @@ if (!empty($getlogpodtl)) {
|
||||
<div id="content"></div>
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<div class="header-container">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<center><b><h2> Edit Service Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<h2> Edit Service Purchase Order-<?php echo "$PONO"?></h2>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Service Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<h2> Amended Service Purchase Order-<?php echo "$PONO"?></h2>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<label>Requistion No</label>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Requistion No</label>
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||
</div>
|
||||
</div>
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding: 0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', SERVICE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
$options = array("0" => 'Select Supplier');
|
||||
//print_r( $options);
|
||||
@ -788,12 +804,8 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<input type="hidden" name="newsup" id="changeSup">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-12"><br />
|
||||
<div class="col-md-3">
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -802,45 +814,13 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" style="padding: 0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', SERVICE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?><input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></u></b><br />
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Work Status<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Work Status<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
|
||||
|
||||
@ -866,35 +846,58 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_dropdown('workstatus', $optionsWork, set_value('workstatus'), 'id="workstatus"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" id="Deliverydtdiv" style="padding-left: 0px;"><br />
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b><u>Select Delivery By<span class="badge mandatory" >*</span></u></b><br />
|
||||
<div class="centered">
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
|
||||
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3" id="Deliverydtdiv" ><br />
|
||||
<label>Delivery Date<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $Deliverydt), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" id="Schedulediv" style="display:none;padding-left: 0px;"><br />
|
||||
<label>Schedule By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-3" id="Schedulediv" style="display:none;"><br />
|
||||
<label>Schedule By<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby'), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?><input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -903,14 +906,8 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
<div class="col-md-3" >
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -919,14 +916,8 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
<div class="col-md-3" >
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -936,9 +927,12 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3" >
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
|
||||
<label>Our Reference(S)</label>
|
||||
@ -952,14 +946,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
<div class="col-md-3">
|
||||
|
||||
|
||||
<label>Service Type Options</label>
|
||||
@ -994,7 +981,38 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-6" style="padding-right:0px;">
|
||||
<div class="col-md-3">
|
||||
<label>Payment Terms</label>
|
||||
<?php
|
||||
if (!empty($Payment)) {
|
||||
foreach ($Payment as $pay2) :
|
||||
if ($Terms == $pay2->PaymentID) {
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
foreach ($Payment as $pay1) :
|
||||
if ($Terms != $pay1->PaymentID) {
|
||||
$optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('PaymentTerms', $optionsPay, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Insurance Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -1029,11 +1047,8 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
|
||||
<div class="col-md-4" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'value' => set_value('InsuranceNumber', $InsuranceNumber), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
@ -1041,85 +1056,22 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Payment Terms</label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($Payment)) {
|
||||
|
||||
foreach ($Payment as $pay2) :
|
||||
|
||||
if ($Terms == $pay2->PaymentID) {
|
||||
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
foreach ($Payment as $pay1) :
|
||||
|
||||
if ($Terms != $pay1->PaymentID) {
|
||||
|
||||
$optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentTerms', $optionsPay, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;padding-left:0px;">
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-right: 0px;">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<select id='BudgetType' name='BudgetType'>
|
||||
<?php if ($BudgetType == 'CAPITAL') {
|
||||
$opt1 = 'CAPITAL';
|
||||
$opt2 = 'REVENUE';
|
||||
} else {
|
||||
$opt1 = 'REVENUE';
|
||||
$opt2 = 'CAPITAL';
|
||||
} ?>
|
||||
|
||||
|
||||
<option value=<?php echo $opt1; ?>><?php echo $opt1; ?></option>
|
||||
<option value=<?php echo $opt2; ?>><?php echo $opt2; ?></option>
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<select id='BudgetType' name='BudgetType'>
|
||||
<?php if ($BudgetType == 'CAPITAL') {
|
||||
$opt1 = 'CAPITAL';
|
||||
$opt2 = 'REVENUE';
|
||||
} else {
|
||||
$opt1 = 'REVENUE';
|
||||
$opt2 = 'CAPITAL';
|
||||
} ?>
|
||||
<option value=<?php echo $opt1; ?>><?php echo $opt1; ?></option>
|
||||
<option value=<?php echo $opt2; ?>><?php echo $opt2; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div style="padding-right:10px">
|
||||
<div align="right">
|
||||
@ -1153,7 +1105,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$RL = array("0" => 'Select Req No');
|
||||
@ -1200,7 +1152,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -1262,7 +1214,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange()');
|
||||
@ -1271,7 +1223,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Rate', 'value' => set_value('Rate'), 'id' => 'Rate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange()');
|
||||
@ -1410,7 +1362,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description <span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label> <?php
|
||||
<label>Service Description <span class="badge mandatory">*</span></label> <?php
|
||||
$data = array('name' => 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction'), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
@ -1447,7 +1399,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -1489,7 +1441,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -1550,7 +1502,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1559,7 +1511,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRate', 'value' => set_value('EditRate'), 'id' => 'EditRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1696,7 +1648,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label> <?php
|
||||
<label>Service Description<span class="badge mandatory" >*</span></label> <?php
|
||||
$data = array('name' => 'EdittxtSpcialInstruction', 'value' => set_value('EdittxtSpcialInstruction'), 'id' => 'EdittxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data);
|
||||
?> <input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="">
|
||||
@ -1738,7 +1690,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -1780,7 +1732,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
//$options = array("0"=>'Item Code');
|
||||
@ -1841,7 +1793,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewQuantity', 'value' => set_value('ViewQuantity'), 'id' => 'ViewQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
@ -1850,7 +1802,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewRate', 'value' => set_value('ViewRate'), 'id' => 'ViewRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
@ -1987,7 +1939,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label> <?php
|
||||
<label>Service Description<span class="badge mandatory" >*</span></label> <?php
|
||||
$data = array('name' => 'ViewtxtSpcialInstruction', 'value' => set_value('ViewtxtSpcialInstruction'), 'id' => 'ViewtxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
@ -2207,7 +2159,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="col-md-12">
|
||||
<label>Description Of Service <span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</label>
|
||||
<label>Description Of Service <span class="badge mandatory" >*</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'editdescofpo', 'value' => set_value('editdescofpo', strip_tags($DescriptionOfPo)), 'id' => 'editdescofpo', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
|
||||
@ -87,6 +87,36 @@ if(!empty($INRSYMBOL))
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.header-container h2 {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
height: 10vh;
|
||||
}
|
||||
|
||||
.centered label,
|
||||
.centered input {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.mandatory {
|
||||
color: red;
|
||||
text-align: right;
|
||||
background-color: white;
|
||||
}
|
||||
#DomesticNOT {
|
||||
margin-top:200px;
|
||||
z-index: 1080 !important;
|
||||
@ -312,74 +342,43 @@ function vaildateBeforeOpenModal()
|
||||
<section class="content">
|
||||
<div id="content"></div>
|
||||
<div style="border:2px solid #333">
|
||||
<div class="col-md-12">
|
||||
|
||||
<center><b><h2> Capital Purchase Order</h2></b></center>
|
||||
<div class="col-md-12 text-right" style="padding:0px;">
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<!-- <div class="col-md-1"><br/>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>purchaseorder/CreatecapitalPOPrint" target="_blank">Print</a>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="header-container">
|
||||
<h2>Capital Purchase Order</h2>
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<label>Requistion No</label>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Requistion No</label>
|
||||
<?php
|
||||
|
||||
$options = array("0"=>'Selected Requisition Numbers');
|
||||
if(!empty($ReqList))
|
||||
{
|
||||
foreach ($ReqList as $SID):
|
||||
|
||||
// print_r($SID->ReqNo);
|
||||
$options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy;
|
||||
$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' , 'required="true"');
|
||||
|
||||
{
|
||||
foreach ($ReqList as $SID):
|
||||
|
||||
// print_r($SID->ReqNo);
|
||||
$options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy;
|
||||
$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' , 'required="true"');
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" id="currencyOpt" style="padding:0px;">
|
||||
<label>Currency Type<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$options = array("0"=>'Select Currency Type ');
|
||||
//print_r( $options);
|
||||
|
||||
if(!empty($Currency))
|
||||
{
|
||||
|
||||
|
||||
foreach ($Currency as $Cur):
|
||||
|
||||
$options[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"','class="form-control select2"' , 'required="true"');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<?php
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<?php
|
||||
$options = array("0"=>'Select Supplier');
|
||||
//print_r( $options);
|
||||
|
||||
@ -389,71 +388,45 @@ function vaildateBeforeOpenModal()
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12"><br/>
|
||||
<label>Address</label>
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<!-- <div class="col-md-12">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3" id="currencyOpt">
|
||||
<label>Currency Type<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$options = array("0"=>'Select Currency Type ');
|
||||
//print_r( $options);
|
||||
if(!empty($Currency))
|
||||
{
|
||||
foreach ($Currency as $Cur):
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div> -->
|
||||
$options[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"','class="form-control select2"' , 'required="true"');
|
||||
?>
|
||||
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<div class="col-md-6">
|
||||
<label>PO Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>PO Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12" style="padding-left: 0px;">
|
||||
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></u></b> <br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></u></b> <br/>
|
||||
<div style="display:inline-flex;">
|
||||
<div id="dispatchinternational">
|
||||
|
||||
@ -469,9 +442,8 @@ function vaildateBeforeOpenModal()
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" id="Schedulediv" style="padding-top: 3%;padding-left: 0px;"> <br/>
|
||||
</div>
|
||||
<div class="col-md-3" id="Schedulediv">
|
||||
<label >Schedule By <span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<?php
|
||||
@ -480,39 +452,44 @@ function vaildateBeforeOpenModal()
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12" id="Deliverydtdiv" style="display:none;padding-top: 3%;padding-left: 0px;"> <br/>
|
||||
<label>Dispatch Instruction<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<?php
|
||||
// $data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true');
|
||||
// echo form_input($data);
|
||||
$data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
<div class="col-md-3" id="Deliverydtdiv" style="display:none;">
|
||||
<label>Dispatch Instruction<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<?php
|
||||
// $data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true');
|
||||
// echo form_input($data);
|
||||
$data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12" id="deliverydateby" style="display:none;padding-top: 3%;padding-left: 0px;"> <br/>
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydate','value' => set_value('Deliverydate',$CurrentDate),'id'=>'Deliverydate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<div class="col-md-3" id="FromOnlineRate">
|
||||
|
||||
<a href="http://www.xe.com/" target="_blank"><u>Click here to check Today's Foreign Exchange value</u></a>
|
||||
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" id="hideExchangeRateOn">
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3" id="deliverydateby" style="display:none;">
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydate','value' => set_value('Deliverydate',$CurrentDate),'id'=>'Deliverydate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3" id="FromOnlineRate">
|
||||
<a href="http://www.xe.com/" target="_blank"><u>Click here to check Today's Foreign Exchange value</u></a>
|
||||
</div>
|
||||
<div class="col-md-3" id="hideExchangeRateOn">
|
||||
<label>Exchange Rate On</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -521,7 +498,7 @@ function vaildateBeforeOpenModal()
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" id="hideExchangeRate">
|
||||
<div class="col-md-3" id="hideExchangeRate">
|
||||
<label id="CurrencySymbol">Exchange Rate</label><span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -531,39 +508,32 @@ function vaildateBeforeOpenModal()
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- <div class="col-md-4">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="col-md-4" id="PlaceOforigindiv" style="padding-left: 0px;">
|
||||
<label>Place of Origin<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3" id="PlaceOforigindiv">
|
||||
<label>Place of Origin<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
// $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
// echo form_input($data);
|
||||
$data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
// $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
// echo form_input($data);
|
||||
$data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
|
||||
<label>Mode Of Shipment</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
@ -571,15 +541,9 @@ function vaildateBeforeOpenModal()
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;" >
|
||||
<div class="col-md-12">
|
||||
<label>Contact Reference</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
@ -587,15 +551,9 @@ function vaildateBeforeOpenModal()
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier's Offer No</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
@ -603,13 +561,13 @@ function vaildateBeforeOpenModal()
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
|
||||
<label>Our Reference(S)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
@ -617,110 +575,48 @@ function vaildateBeforeOpenModal()
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
</div><!--End new fields 1 sep-->
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding-right: 0px;">
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Capital Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
|
||||
<label>Capital Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
|
||||
$optionsPO = array("0"=>'Select');
|
||||
|
||||
|
||||
if(!empty($PoTypeOptions))
|
||||
{
|
||||
foreach ($PoTypeOptions as $POpt):
|
||||
|
||||
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2');
|
||||
$optionsPO = array("0"=>'Select');
|
||||
if(!empty($PoTypeOptions))
|
||||
{
|
||||
foreach ($PoTypeOptions as $POpt):
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="payablefrom">Payable Terms </label>
|
||||
<?php
|
||||
|
||||
$options1 = array("0"=>'Select Payment method');
|
||||
//print_r( $options);
|
||||
|
||||
</div>
|
||||
<div class="col-md-6" style="padding-right:0px;">
|
||||
<label>Insurance Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
if(!empty($Payment))
|
||||
{
|
||||
foreach ($Payment as $payment):
|
||||
|
||||
if(!empty($insuranceStatus))
|
||||
{
|
||||
foreach ($insuranceStatus as $INS):
|
||||
|
||||
|
||||
$optionsInsurance[$INS['value']] = $INS['name'];
|
||||
$options1[$payment->PaymentID] = $payment->PaymentTerms;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('insuranceStatus', $optionsInsurance,set_value('insuranceStatus'),'id="insuranceStatus"' ,'required="true"' ,'class="form-control select2');
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
|
||||
<div class="col-md-4" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details <span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber','value' => set_value('InsuranceNumber'),'id'=>'InsuranceNumber', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<label for="payablefrom">Payable Terms </label>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$options1 = array("0"=>'Select Payment method');
|
||||
//print_r( $options);
|
||||
|
||||
if(!empty($Payment))
|
||||
{
|
||||
foreach ($Payment as $payment):
|
||||
|
||||
$options1[$payment->PaymentID] = $payment->PaymentTerms;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -728,36 +624,53 @@ function vaildateBeforeOpenModal()
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Insurance Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
if(!empty($insuranceStatus))
|
||||
{
|
||||
foreach ($insuranceStatus as $INS):
|
||||
$optionsInsurance[$INS['value']] = $INS['name'];
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('insuranceStatus', $optionsInsurance,set_value('insuranceStatus'),'id="insuranceStatus"' ,'required="true"' ,'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details <span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber','value' => set_value('InsuranceNumber'),'id'=>'InsuranceNumber', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<?php
|
||||
|
||||
|
||||
$optionsnew=array('0'=>'Select','1'=>'REVENUE','2'=>'CAPITAL');
|
||||
echo form_dropdown('BudgetType', $optionsnew,set_value('BudgetType'),'id="BudgetType"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-right: 0px;">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<?php
|
||||
|
||||
|
||||
$optionsnew=array('0'=>'Select','1'=>'REVENUE','2'=>'CAPITAL');
|
||||
echo form_dropdown('BudgetType', $optionsnew,set_value('BudgetType'),'id="BudgetType"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Modal for Packing Calculation -->
|
||||
<div id="packagingcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
|
||||
<div class="modal-dialog">
|
||||
|
||||
@ -645,19 +645,17 @@ function onlyAlphabets(evt) {
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<CENTER>Employee Profile</CENTER>
|
||||
|
||||
</h1>
|
||||
|
||||
</section>
|
||||
<h1>
|
||||
<center> Edit <?php echo $FirstName; ?> Profile</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>employeeListing"> <span class="bold">Back</span></a>
|
||||
</ol><br>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div style="text-align:right;">
|
||||
<a href="<?php echo base_url() ?>employeeListing" class="btn btn-cancel" value="Back">Back</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1837,6 +1837,37 @@ if (!empty($getlogpodtl)) {
|
||||
.num {
|
||||
text-align: right;
|
||||
}
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.header-container h2 {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
height: 10vh;
|
||||
}
|
||||
|
||||
.centered label,
|
||||
.centered input {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.mandatory {
|
||||
color: red;
|
||||
text-align: right;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
@ -1847,391 +1878,284 @@ if (!empty($getlogpodtl)) {
|
||||
<section class="content">
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<div class="header-container">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<center><b><h2> Edit Revenue Purchase Order - <?php echo $PONO; ?></h2></b></center>
|
||||
<h2> Edit Revenue Purchase Order - <?php echo $PONO; ?></h2>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Revenue Purchase Order - <?php echo $PONO; ?></h2></b></center>
|
||||
<h2> Amended Revenue Purchase Order - <?php echo $PONO; ?></h2>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<label>Requistion No</label>
|
||||
<?php
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
<label>Requistion No</label>
|
||||
<?php
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
//$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"', 'height="400px"');
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
//$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"', 'height="400px"');
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', REVENUE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Select Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
<?php
|
||||
$options = array("0" => 'Select Supplier');
|
||||
//print_r( $options);
|
||||
<div class="col-md-3">
|
||||
<label>Select Supplier<span class="badge mandatory" >*</span></label>
|
||||
<?php
|
||||
$options = array("0" => 'Select Supplier');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpSupplier', $options, set_value('drpSupplier', $SupId), 'id="drpSupplier"', 'required="true"', 'class="form-control select2');
|
||||
?> <input type="hidden" name="b4supplier" id="b4supplier" value="<?php echo $SupId; ?>">
|
||||
<input type="hidden" name="newsup" id="changeSup">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', REVENUE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="padding:0px;">
|
||||
<div id="div1" style="display:block;">
|
||||
<b><u>Select Tax Range</u></b><br />
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<?php echo form_label('Local', 'Local') . " " . form_radio(array('name' => 'Range', 'value' => '0', 'checked' => ('0' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Local', 'onchange' => 'SetVatorCST();')); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo form_label('Inter state', 'Inter state') . " " . form_radio(array('name' => 'Range', 'value' => '1', 'checked' => ('1' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Inter_state', 'onchange' => 'SetVatorCST();')); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
<div id="div2" style="display:none;">
|
||||
</div>
|
||||
<div id="div4" style="display:none;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="padding:0px;">
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></u></b><br />
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?> </td>
|
||||
<td>
|
||||
<?php echo form_label('Schedule', 'Schedule') . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Supplier Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?> <input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" id="Deliverydtdiv">
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $Deliverydt), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" id="Schedulediv" style="display:none;">
|
||||
<label>Schedule By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5;">*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby', $DeliverSchedule), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
echo form_dropdown('drpSupplier', $options, set_value('drpSupplier', $SupId), 'id="drpSupplier"', 'required="true"', 'class="form-control select2');
|
||||
?> <input type="hidden" name="b4supplier" id="b4supplier" value="<?php echo $SupId; ?>">
|
||||
<input type="hidden" name="newsup" id="changeSup">
|
||||
</div>
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editmodeofshipment', 'value' => set_value('editmodeofshipment', $modeofshipment), 'id' => 'editmodeofshipment', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editsupplierreference', 'value' => set_value('editsupplierreference', $supplierref), 'id' => 'editsupplierreference', 'class' => 'form-control', 'maxlength' => '40');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editsupplierofferno', 'value' => set_value('editsupplierofferno', $suppofferno), 'id' => 'editsupplierofferno', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12" style="padding-right: 0px;">
|
||||
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editotherreference', 'value' => set_value('editotherreference', $otherref), 'id' => 'editotherreference', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
<label>Revenue Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
//$optionsWork = array("0"=>'Select Work Status');
|
||||
|
||||
|
||||
if (!empty($PoTypeOptions)) {
|
||||
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
|
||||
if ($revenuesubtype == $POpt->ConfigValue) {
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
}
|
||||
|
||||
endforeach;
|
||||
foreach ($PoTypeOptions as $POpt1) :
|
||||
|
||||
if ($revenuesubtype != $POpt1->ConfigValue) {
|
||||
$optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue;
|
||||
}
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding-right: 0px;">
|
||||
<label for="insurance">Insurance Options</label>
|
||||
<?php
|
||||
$optionsnew = array('1' => 'Yes', '0' => 'No');
|
||||
echo form_dropdown('insurancestatus', $optionsnew, set_value('insurancestatus'), 'id="insurancestatus"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8" style="padding:0px;">
|
||||
<div class="col-md-4" id="InsuranceNumberdiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'InsuranceNumber' => set_value('InsuranceNumber', $insurenceno), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Payment Terms</label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($Payment)) {
|
||||
|
||||
foreach ($Payment as $pay) :
|
||||
|
||||
|
||||
$options6[$pay->PaymentID] = $pay->PaymentTerms;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('PaymentTerms', $options6, set_value('PaymentTerms', $Terms), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2" style="padding-right: 0px;">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<select id='BudgetType' name='BudgetType'>
|
||||
<?php if ($BudgetType == 'CAPITAL') {
|
||||
$opt1 = 'CAPITAL';
|
||||
$opt2 = 'REVENUE';
|
||||
} else {
|
||||
$opt1 = 'REVENUE';
|
||||
$opt2 = 'CAPITAL';
|
||||
} ?>
|
||||
|
||||
|
||||
<option value=<?php echo $opt1; ?>><?php echo $opt1; ?></option>
|
||||
<option value=<?php echo $opt2; ?>><?php echo $opt2; ?></option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Modal for Packing Calculation -->
|
||||
<div id="packagingcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Packing Calculation On</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optPackaging" checked="checked" value='0' id="optPackaging"> Basic Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optPackaging" id="optPackaging" value='1'> After Discount Amount</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="freightcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Freight Calculation On</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optfreight" checked="checked" value='0' id="optfreight"> Basic Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optfreight" id="optfreight" value='1'> After Discount Amount</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<a class="btn btn-success" ID="freightOption" onclick="SetfreightOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="viewcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Packing Calculation On</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optview" checked="checked" value='0' id="optview"> Basic Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optview" id="optview" value='1'> After Discount Amount</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div id="div1" style="display:block;">
|
||||
|
||||
<b><u>Select Tax Range</u></b><br />
|
||||
<div class="centered">
|
||||
|
||||
<?php echo form_label('Local', 'Local') . " " . form_radio(array('name' => 'Range', 'value' => '0', 'checked' => ('0' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Local', 'onchange' => 'SetVatorCST();')); ?>
|
||||
|
||||
<?php echo form_label('Inter state', 'Inter state') . " " . form_radio(array('name' => 'Range', 'value' => '1', 'checked' => ('1' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Inter_state', 'onchange' => 'SetVatorCST();')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b><u>Select Delivery By<span class="badge mandatory" >*</span></u></b><br />
|
||||
<div class="centered">
|
||||
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
|
||||
|
||||
<?php echo form_label('Schedule', 'Schedule') . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3" id="Deliverydtdiv">
|
||||
<label>Delivery Date<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $Deliverydt), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="Schedulediv" style="display:none;">
|
||||
<label>Schedule By<span class="badge mandatory" >*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby', $DeliverSchedule), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?> <input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editmodeofshipment', 'value' => set_value('editmodeofshipment', $modeofshipment), 'id' => 'editmodeofshipment', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editsupplierreference', 'value' => set_value('editsupplierreference', $supplierref), 'id' => 'editsupplierreference', 'class' => 'form-control', 'maxlength' => '40');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editsupplierofferno', 'value' => set_value('editsupplierofferno', $suppofferno), 'id' => 'editsupplierofferno', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'editotherreference', 'value' => set_value('editotherreference', $otherref), 'id' => 'editotherreference', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Revenue Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
//$optionsWork = array("0"=>'Select Work Status');
|
||||
|
||||
|
||||
if (!empty($PoTypeOptions)) {
|
||||
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
|
||||
if ($revenuesubtype == $POpt->ConfigValue) {
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
}
|
||||
|
||||
endforeach;
|
||||
foreach ($PoTypeOptions as $POpt1) :
|
||||
|
||||
if ($revenuesubtype != $POpt1->ConfigValue) {
|
||||
$optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue;
|
||||
}
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Payment Terms</label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($Payment)) {
|
||||
|
||||
foreach ($Payment as $pay) :
|
||||
|
||||
|
||||
$options6[$pay->PaymentID] = $pay->PaymentTerms;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('PaymentTerms', $options6, set_value('PaymentTerms', $Terms), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label for="insurance">Insurance Options</label>
|
||||
<?php
|
||||
$optionsnew = array('1' => 'Yes', '0' => 'No');
|
||||
echo form_dropdown('insurancestatus', $optionsnew, set_value('insurancestatus'), 'id="insurancestatus"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3" id="InsuranceNumberdiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'InsuranceNumber' => set_value('InsuranceNumber', $insurenceno), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<select id='BudgetType' name='BudgetType'>
|
||||
<?php if ($BudgetType == 'CAPITAL') {
|
||||
$opt1 = 'CAPITAL';
|
||||
$opt2 = 'REVENUE';
|
||||
} else {
|
||||
$opt1 = 'REVENUE';
|
||||
$opt2 = 'CAPITAL';
|
||||
} ?>
|
||||
|
||||
|
||||
<option value=<?php echo $opt1; ?>><?php echo $opt1; ?></option>
|
||||
<option value=<?php echo $opt2; ?>><?php echo $opt2; ?></option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modal for Excise Duty Calculation-->
|
||||
<div class="modal fade" id="ExciseDutyCalModel" role="dialog">
|
||||
@ -2364,7 +2288,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$RL = array("0" => 'Select Req No');
|
||||
@ -2409,7 +2333,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -2440,7 +2364,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change();');
|
||||
@ -2449,7 +2373,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Rate', 'value' => set_value('Rate'), 'id' => 'Rate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change();');
|
||||
@ -2728,7 +2652,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -2768,7 +2692,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -2799,7 +2723,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
||||
@ -2808,7 +2732,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRate', 'value' => set_value('EditRate'), 'id' => 'EditRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
||||
@ -3095,7 +3019,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -3135,7 +3059,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
|
||||
<?php
|
||||
@ -3165,7 +3089,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewQuantity', 'value' => set_value('ViewQuantity'), 'id' => 'ViewQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'style' => 'text-align:right;', 'readonly' => 'true');
|
||||
@ -3174,7 +3098,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewRate', 'value' => set_value('ViewRate'), 'id' => 'ViewRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
|
||||
@ -644,6 +644,28 @@ foreach ($PaymentTerms as $TER) {
|
||||
.num {
|
||||
text-align: right;
|
||||
}
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.header-container h2 {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
.centered {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
height: 10vh;
|
||||
}
|
||||
.centered label, .centered input {
|
||||
margin: 0 5px;
|
||||
}
|
||||
.mandatory { color:red;text-align:right;background-color: white;}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
@ -654,47 +676,41 @@ foreach ($PaymentTerms as $TER) {
|
||||
<section class="content">
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<center><b>
|
||||
<h2> Amendment Service Purchase Order - <?php echo $PONO; ?></h2>
|
||||
</b></center>
|
||||
</div>
|
||||
<div class="header-container">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<h2> Edit Service Purchase Order-<?php echo "$PONO"?></h2>
|
||||
<?php } else {?>
|
||||
<h2> Amended Service Purchase Order-<?php echo "$PONO"?></h2>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url() ?>amendmentpurchaseorder" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<div class="col-md-3">
|
||||
<label>Requistion No</label>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', SERVICE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
$options = array("0" => 'Select Supplier');
|
||||
//print_r( $options);
|
||||
@ -709,59 +725,23 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12"><br />
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'POType', 'value' => set_value('POType', SERVICE), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?><input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></u></b><br />
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Work Status<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3">
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Work Status<span class="badge mandatory" >*</span></label>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($WorkStatus)) {
|
||||
//print_r($WorkStatus);
|
||||
foreach ($WorkStatus as $WorkSID) :
|
||||
@ -769,24 +749,26 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
$optionsWork[$WorkSID->StatusCode] = $WorkSID->StatusName;
|
||||
}
|
||||
|
||||
|
||||
endforeach;
|
||||
foreach ($WorkStatus as $SID) :
|
||||
if ($WrkStatus != $SID->StatusName) {
|
||||
$optionsWork[$SID->StatusCode] = $SID->StatusName;
|
||||
}
|
||||
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('workstatus', $optionsWork, set_value('workstatus'), 'id="workstatus"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" id="Deliverydtdiv" style="padding-left:0px;"><br />
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3">
|
||||
<b><u>Select Delivery By<span class="badge mandatory">*</span></u></b><br />
|
||||
<div class="centered">
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="Deliverydtdiv">
|
||||
<label>Delivery Date<span class="badge mandatory" >*</span></label>
|
||||
<?php if ($DeliverOption == 1) {
|
||||
$Deliverydt = null;
|
||||
} ?>
|
||||
@ -798,8 +780,8 @@ foreach ($PaymentTerms as $TER) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" id="Schedulediv" style="display:none;padding-left:0px;"><br />
|
||||
<label>Schedule By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3" id="Schedulediv" style="display:none;">
|
||||
<label>Schedule By<span class="badge mandatory" >*</span></label>
|
||||
<input type="hidden" name="beforeScheduleby" value="<?php echo $DeliverSchedule ?>">
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby', $DeliverSchedule), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
@ -807,32 +789,38 @@ foreach ($PaymentTerms as $TER) {
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?><input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'addmodeofshipment', 'value' => set_value('addmodeofshipment', $ModeOfShipment), 'id' => 'addmodeofshipment', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -841,14 +829,8 @@ foreach ($PaymentTerms as $TER) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -858,11 +840,12 @@ foreach ($PaymentTerms as $TER) {
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -871,51 +854,75 @@ foreach ($PaymentTerms as $TER) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
|
||||
|
||||
<label>Service Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Service Type Options</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
|
||||
//$optionsWork = array("0"=>'Select Work Status');
|
||||
if (!empty($PoTypeOptions)) {
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
|
||||
if ($ServiceTypeOptions == $POpt->ConfigValue) {
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
}
|
||||
endforeach;
|
||||
foreach ($PoTypeOptions as $POpt1) :
|
||||
|
||||
if (!empty($PoTypeOptions)) {
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
if ($ServiceTypeOptions != $POpt1->ConfigValue) {
|
||||
$optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
|
||||
if ($ServiceTypeOptions == $POpt->ConfigValue) {
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
}
|
||||
endforeach;
|
||||
foreach ($PoTypeOptions as $POpt1) :
|
||||
|
||||
if ($ServiceTypeOptions != $POpt1->ConfigValue) {
|
||||
$optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Payment Terms</label>
|
||||
<input type="hidden" name="beforePaymentTerms" value="<?php echo $Terms ?>">
|
||||
<?php
|
||||
if (!empty($Payment)) {
|
||||
//print_r($Payment);
|
||||
foreach ($Payment as $pay2)
|
||||
|
||||
if ($Terms == $pay2->PaymentID) {
|
||||
?>
|
||||
<input type="hidden" id="beforePaymentTermsText" name="beforePaymentTermsText" value="<?php echo $pay2->PaymentTerms ?>">
|
||||
<?php
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
}
|
||||
|
||||
foreach ($Payment as $pay1) :
|
||||
|
||||
if ($Terms != $pay1->PaymentID) {
|
||||
|
||||
$optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentTerms', $optionsPay, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-6" style="padding-right: 0px;">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Insurance Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -945,77 +952,17 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
|
||||
<div class="col-md-4" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'value' => set_value('InsuranceNumber', $InsuranceNumber), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Payment Terms</label>
|
||||
<input type="hidden" name="beforePaymentTerms" value="<?php echo $Terms ?>">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($Payment)) {
|
||||
//print_r($Payment);
|
||||
foreach ($Payment as $pay2)
|
||||
|
||||
if ($Terms == $pay2->PaymentID) {
|
||||
?>
|
||||
<input type="hidden" id="beforePaymentTermsText" name="beforePaymentTermsText" value="<?php echo $pay2->PaymentTerms ?>">
|
||||
<?php
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
}
|
||||
|
||||
foreach ($Payment as $pay1) :
|
||||
|
||||
if ($Terms != $pay1->PaymentID) {
|
||||
|
||||
$optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms;
|
||||
}
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentTerms', $optionsPay, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-right: 0px;">
|
||||
</div>
|
||||
<div class="col-md-3" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'value' => set_value('InsuranceNumber', $InsuranceNumber), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<select id='BudgetType' name='BudgetType'>
|
||||
<?php if ($BudgetType == 'CAPITAL') {
|
||||
@ -1025,22 +972,13 @@ foreach ($PaymentTerms as $TER) {
|
||||
$opt1 = 'REVENUE';
|
||||
$opt2 = 'CAPITAL';
|
||||
} ?>
|
||||
|
||||
|
||||
<option value=<?php echo $opt1; ?>><?php echo $opt1; ?></option>
|
||||
<option value=<?php echo $opt2; ?>><?php echo $opt2; ?></option>
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div style="padding-right:10px">
|
||||
<div align="right">
|
||||
@ -1062,7 +1000,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory" >*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -1104,7 +1042,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" >*</span></label>*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -1168,7 +1106,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory" >*</span></label>*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1177,7 +1115,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory" >*</span></label>*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRate', 'value' => set_value('EditRate'), 'id' => 'EditRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1549,7 +1487,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="col-md-12">
|
||||
<label>Description Of Service<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</label>
|
||||
<label>Description Of Service<span class="badge mandatory" >*</span></label>*</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'amenddescofpo', 'value' => set_value('amenddescofpo', $DescriptionOfPo), 'id' => 'amenddescofpo', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -140,11 +140,11 @@ if (!empty($INRSYMBOL)) {
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
console.log(obj.PaymentID);
|
||||
|
||||
}
|
||||
@ -299,13 +299,16 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
var d = $('#drpSupplier').val();
|
||||
$.ajax({
|
||||
url:"<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {supplierid : drpSupplier, materialcode: id },
|
||||
success: function(response) {
|
||||
if(response) alert(response);
|
||||
}
|
||||
});
|
||||
url: "<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {
|
||||
supplierid: drpSupplier,
|
||||
materialcode: id
|
||||
},
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
alert('Please select the MaterialCode');
|
||||
return false;
|
||||
@ -339,13 +342,16 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
var d = $('#drpSupplier').val();
|
||||
$.ajax({
|
||||
url:"<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {supplierid : drpSupplier, materialcode: id },
|
||||
success: function(response) {
|
||||
if(response) alert(response);
|
||||
}
|
||||
});
|
||||
url: "<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {
|
||||
supplierid: drpSupplier,
|
||||
materialcode: id
|
||||
},
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
alert('Please select the MaterialCode');
|
||||
return false;
|
||||
@ -587,92 +593,66 @@ if (!empty($INRSYMBOL)) {
|
||||
.num {
|
||||
text-align: right;
|
||||
}
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.header-container h2 {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
.centered {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
height: 10vh;
|
||||
}
|
||||
.centered label, .centered input {
|
||||
margin: 0 5px;
|
||||
}
|
||||
.mandatory { color:red;text-align:right;background-color: white;}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left ServicePO ', 'name' => 'ServicePO', 'id' => 'ServicePO','enctype' => 'multipart/form-data');
|
||||
$attributes = array('class' => 'form-label-left ServicePO ', 'name' => 'ServicePO', 'id' => 'ServicePO', 'enctype' => 'multipart/form-data');
|
||||
|
||||
echo form_open(base_url() . '/purchaseorder/addPO/', $attributes); ?>
|
||||
|
||||
<section class="content">
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<center><b>
|
||||
<h2>Service Purchase Order</h2>
|
||||
</b></center>
|
||||
</div>
|
||||
<div class="col-md-12 text-right" style="padding-bottom: 19px; padding-right: 39px;">
|
||||
<div class="header-container">
|
||||
<h2>Service Purchase Order</h2>
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<label>Requistion No</label>
|
||||
<label>Requistion No</label>
|
||||
<?php
|
||||
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
<?php
|
||||
// print_r($SID->ReqNo);
|
||||
$options[$SID->ReqNo] = $SID->ReqNo . "-" . $SID->ReqBy;
|
||||
$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
|
||||
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
|
||||
// print_r($SID->ReqNo);
|
||||
$options[$SID->ReqNo] = $SID->ReqNo . "-" . $SID->ReqBy;
|
||||
$ReqType = $SID->ReqType;
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding: 0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Supplier<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<?php
|
||||
$options = array("0" => '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');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12"><br />
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding: 0px;">
|
||||
<div class="col-md-12">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
@ -680,32 +660,40 @@ if (!empty($INRSYMBOL)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Delivery Address</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Supplier<span class="badge mandatory">*</span></label>
|
||||
|
||||
<?php
|
||||
$options = array("0" => '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');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
$data = array('name' => 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<b><u>Select Delivery By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></u></b><br />
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array("name" => "DateRange", "id" => "Date", "value" => "0", 'checked' => set_radio('DateRange', '0', TRUE))); ?></td>
|
||||
<td>
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array("name" => "DateRange", "id" => "Schedule", "value" => "1", 'checked' => set_radio('DateRange', '1', FALSE))); ?>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Work Status<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Work Status<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
|
||||
$optionsWork = array("0" => 'Select Work Status');
|
||||
@ -725,8 +713,15 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-12" id="Deliverydtdiv" style="padding-left: 0px;"> <br />
|
||||
<label>Delivery Date<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3">
|
||||
<b><u>Select Delivery By<span class="badge mandatory" >*</span></u></b><br />
|
||||
<div class="centered">
|
||||
<?php echo form_label('Date', 'Date') . " " . form_radio(array("name" => "DateRange", "id" => "Date", "value" => "0", 'checked' => set_radio('DateRange', '0', TRUE))); ?>
|
||||
<?php echo form_label('Schedule', 'Schedule') . " " . form_radio(array("name" => "DateRange", "id" => "Schedule", "value" => "1", 'checked' => set_radio('DateRange', '1', FALSE))); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="Deliverydtdiv">
|
||||
<label>Delivery Date<span class="badge mandatory" >*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $CurrentDate), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
@ -734,25 +729,38 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" id="Schedulediv" style="display:none;padding-left: 0px;"><br />
|
||||
<label>Schedule By<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="col-md-3" id="Schedulediv" style="display:none;">
|
||||
<label>Schedule By<span class="badge mandatory">*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby'), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Address</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Mode Of Shipment</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -761,14 +769,8 @@ if (!empty($INRSYMBOL)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Contact Reference</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -777,14 +779,8 @@ if (!empty($INRSYMBOL)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Supplier's Offer No</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -795,55 +791,66 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
<label>Our Reference(S)</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'addotherreference', 'value' => set_value('addotherreference'), 'id' => 'addotherreference', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$data = array('name' => 'addotherreference', 'value' => set_value('addotherreference'), 'id' => 'addotherreference', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Service Type Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
|
||||
//$optionsWork = array("0"=>'Select Work Status');
|
||||
$optionsPO = array("0" => 'Select');
|
||||
|
||||
if (!empty($PoTypeOptions)) {
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
|
||||
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Payment Terms</label>
|
||||
<?php
|
||||
if (!empty($Payment)) {
|
||||
$options6 = array("0" => 'Select Payment Terms ');
|
||||
foreach ($Payment as $pay) :
|
||||
$options6[$pay->PaymentID] = $pay->PaymentTerms;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
echo form_dropdown('PaymentTerms', $options6, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
|
||||
<label>Description of Payable Terms<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding-right:0px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Insurance Options</label>
|
||||
<div class="form-group">
|
||||
|
||||
@ -863,70 +870,18 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" style="padding:0px;">
|
||||
<div class="col-md-4" id="insuranceTxtDiv" style="display:block;">
|
||||
|
||||
<label>Insurance No / Insurance Details<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
|
||||
<div class="col-md-3" id="insuranceTxtDiv" style="display:block;">
|
||||
<label>Insurance No / Insurance Details<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'InsuranceNumber', 'value' => set_value('InsuranceNumber'), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
|
||||
<label>Payment Terms</label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!empty($Payment)) {
|
||||
$options6 = array("0" => 'Select Payment Terms ');
|
||||
foreach ($Payment as $pay) :
|
||||
|
||||
|
||||
|
||||
$options6[$pay->PaymentID] = $pay->PaymentTerms;
|
||||
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentTerms', $options6, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;padding-left: 0px;">
|
||||
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-right: 0px;">
|
||||
<div class="col-md-3">
|
||||
<label for="BudgetType">Budget Type</label>
|
||||
<?php
|
||||
|
||||
@ -938,18 +893,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!--End new fields 1 sep-->
|
||||
|
||||
|
||||
<div class="col-md-12" style="padding: 0px;">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<table class="table table-bordered" style="border:1px solid #333" id="ServiceTable">
|
||||
@ -974,7 +919,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$RL = array("0" => 'Select Req No');
|
||||
@ -1021,7 +966,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -1083,7 +1028,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange()');
|
||||
@ -1092,7 +1037,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Rate', 'value' => set_value('Rate'), 'id' => 'Rate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange()');
|
||||
@ -1245,7 +1190,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font AddService" ID="AddService"> <span class="bold">Add Service</span></a>
|
||||
</div>
|
||||
</div>
|
||||
@ -1272,7 +1217,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -1314,7 +1259,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Item Code<span class="badge mandatory" #fff ;">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Item Code');
|
||||
@ -1373,7 +1318,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Quantity<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1382,7 +1327,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRate', 'value' => set_value('EditRate'), 'id' => 'EditRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange()');
|
||||
@ -1624,7 +1569,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<!--start new fields 1 sep-->
|
||||
<div class="col-md-12">
|
||||
<label>Description Of Service<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</label>
|
||||
<label>Description Of Service<span class="badge mandatory">*</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'descofpo', 'value' => set_value('descofpo'), 'id' => 'descofpo', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user