Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
33d827936c
@ -83,10 +83,13 @@ class Payslip extends BaseController
|
|||||||
{
|
{
|
||||||
$loan_id = $result->Loan_ID;
|
$loan_id = $result->Loan_ID;
|
||||||
|
|
||||||
|
if($result->Remaining_Due - 1 == 0){ $is_Active = 0; }else{ $is_Active = 1; }
|
||||||
|
|
||||||
$loan = [
|
$loan = [
|
||||||
'Paid_Due' => $result->Paid_Due + 1,
|
'Paid_Due' => $result->Paid_Due + 1,
|
||||||
'Remaining_Due' => $result->Remaining_Due - 1,
|
'Remaining_Due' => $result->Remaining_Due - 1,
|
||||||
'Paid_Amount' => $result->Paid_Amount + $result->Loan_Recovered,
|
'Paid_Amount' => $result->Paid_Amount + $result->Loan_Recovered,
|
||||||
|
'is_Active' => $is_Active
|
||||||
];
|
];
|
||||||
|
|
||||||
$loanHistory = [
|
$loanHistory = [
|
||||||
@ -130,11 +133,16 @@ class Payslip extends BaseController
|
|||||||
'ESINumber' => $result->ESINO,
|
'ESINumber' => $result->ESINO,
|
||||||
'UANNO' => $result->PFNO,
|
'UANNO' => $result->PFNO,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
// print_r($result);
|
// print_r($result);
|
||||||
// print_r($loan);
|
// print_r($loan);
|
||||||
// print_r($loanHistory);
|
// print_r($loanHistory);
|
||||||
// print_r($data);
|
// print_r($data);
|
||||||
// die;
|
// die;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$insert = $this->payroll_model->insertPayroll($data);
|
$insert = $this->payroll_model->insertPayroll($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
if(count($loan)){
|
if(count($loan)){
|
||||||
@ -703,7 +711,7 @@ class Payslip extends BaseController
|
|||||||
$data['pf'] = $pf;
|
$data['pf'] = $pf;
|
||||||
$data['over_time'] = $ot;
|
$data['over_time'] = $ot;
|
||||||
|
|
||||||
// dd($data);
|
|
||||||
$this->global['pageTitle'] = 'Payroll Monthly Inputs';
|
$this->global['pageTitle'] = 'Payroll Monthly Inputs';
|
||||||
$this->loadViews("monthlypayinputs", $this->global, $data, NULL);
|
$this->loadViews("monthlypayinputs", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1215,6 +1215,7 @@ class Purchaseorder extends BaseController
|
|||||||
//This used to Edit the Revenue Purchase Order
|
//This used to Edit the Revenue Purchase Order
|
||||||
function EditRevenuePurchaseOrder()
|
function EditRevenuePurchaseOrder()
|
||||||
{
|
{
|
||||||
|
// print_r($this->request->getPost());die;
|
||||||
$PONO = $this->request->getPost('txtPONO');
|
$PONO = $this->request->getPost('txtPONO');
|
||||||
$POdt = $this->request->getPost('PODate');
|
$POdt = $this->request->getPost('PODate');
|
||||||
$PODate = get_date_time_format($POdt);
|
$PODate = get_date_time_format($POdt);
|
||||||
|
|||||||
@ -1201,7 +1201,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||||
<?php
|
<?php
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<td> <a data-target='#VIEWSERVICE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWSERVICE"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i> </a> </td>
|
<td> <a data-target='#VIEWSERVICE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWSERVICE"><i class="fa fa-eye" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i> </a> </td>
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
</tr>
|
</tr>
|
||||||
@ -1271,7 +1271,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<!--start new fields 1 sep-->
|
<!--start new fields 1 sep-->
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-11">
|
||||||
<label>Description Of Service <span class="text-danger">*</label>
|
<label>Description Of Service <span class="text-danger">*</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1283,7 +1283,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-11">
|
||||||
<label>Scope Of Work</label>
|
<label>Scope Of Work</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ScopeofWork', 'value' => set_value('ScopeofWork', strip_tags($ServiceDescription)), 'id' => 'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
$data = array('name' => 'ScopeofWork', 'value' => set_value('ScopeofWork', strip_tags($ServiceDescription)), 'id' => 'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
||||||
@ -2116,9 +2116,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="display: none;" id="ViewotherDescription">
|
<div class="form-group col-md-3" style="display: none;" id="ViewotherDescription">
|
||||||
<label>Item Name</label>
|
<label>Item Name</label>
|
||||||
<div>
|
<div>
|
||||||
@ -2128,10 +2125,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>UOM</label>
|
<label>UOM</label>
|
||||||
<div>
|
<div>
|
||||||
@ -2148,14 +2141,10 @@ if (!empty($getlogpodtl)) {
|
|||||||
$data = array('name' => 'ViewFrequency', 'value' => set_value('ViewFrequency'), 'id' => 'ViewFrequency', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewFrequency', 'value' => set_value('ViewFrequency'), 'id' => 'ViewFrequency', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Quantity<span class="text-danger">*</span></label>
|
<label>Quantity<span class="text-danger">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
@ -2175,8 +2164,8 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Per</label> <?php
|
<label>Per</label>
|
||||||
$data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control');
|
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -2188,27 +2177,21 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
CGST In %
|
CGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'readonly' => 'true');
|
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
@ -2216,17 +2199,13 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
SGST In %
|
SGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'readonly' => 'true');
|
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
@ -2236,43 +2215,33 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
IGST In %
|
IGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'readonly' => 'true');
|
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-9" align="right">
|
<div class="form-group col-md-9" align="right">
|
||||||
@ -2302,21 +2271,18 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<label>Service Description<span class="text-danger">*</span></label> <?php
|
<label>Service Description<span class="text-danger">*</span></label>
|
||||||
$data = array('name' => 'ViewtxtSpcialInstruction', 'value' => set_value('ViewtxtSpcialInstruction'), 'id' => 'ViewtxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
<?php $data = array('name' => 'ViewtxtSpcialInstruction', 'value' => set_value('ViewtxtSpcialInstruction'), 'id' => 'ViewtxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
||||||
echo form_textarea($data);
|
echo form_textarea($data); ?>
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div><br />
|
</div><br>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
@ -3296,10 +3262,18 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
|
|
||||||
$("#EditMaterialCode").empty();
|
$("#EditMaterialCode").empty();
|
||||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
$("#EditMaterialCode").append($('<option></option>')
|
||||||
// For Binding Material list center for the selected Requistion Number
|
.val($('#materialCode' + userid).val())
|
||||||
|
.html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val())
|
||||||
|
.prop('selected', true)
|
||||||
|
);
|
||||||
|
// Make the select element read-only (disable it)
|
||||||
|
$("#EditMaterialCode").prop('disabled', true);
|
||||||
|
|
||||||
// $("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
|
||||||
|
|
||||||
|
// For Binding Material list center for the selected Requistion Number
|
||||||
|
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||||
|
|
||||||
var isAdded = "0";
|
var isAdded = "0";
|
||||||
for (i = 0; i < Material.length; i++) {
|
for (i = 0; i < Material.length; i++) {
|
||||||
@ -3336,6 +3310,11 @@ if (!empty($getlogpodtl)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#VIEWSERVICE").on("shown.bs.modal", function(e) {
|
$("#VIEWSERVICE").on("shown.bs.modal", function(e) {
|
||||||
|
|
||||||
userid = $(e.relatedTarget).data('userid');
|
userid = $(e.relatedTarget).data('userid');
|
||||||
|
|||||||
@ -1,3 +1,35 @@
|
|||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#packagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#editpackagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#editpackagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#editpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$t = '';
|
$t = '';
|
||||||
@ -58,6 +90,16 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
#mceu_1{
|
||||||
|
border-width: 0px 0px 0px !important;
|
||||||
|
}
|
||||||
|
#mceu_0{
|
||||||
|
padding: 1px !important;
|
||||||
|
}
|
||||||
|
.modal {
|
||||||
|
overflow: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
margin-top: -5%;
|
margin-top: -5%;
|
||||||
}
|
}
|
||||||
@ -848,7 +890,7 @@
|
|||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Freight Calculation On/h4>
|
<h4 class="modal-title">Freight Calculation On
|
||||||
<button type="button" class="close" data-dismiss="modal"
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
aria-hidden="true">×</button>
|
aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
@ -886,8 +928,6 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Req No<span class="text-danger">*</span></label>
|
<label>Req No<span class="text-danger">*</span></label>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$RL = array("0" => 'Select Req No');
|
$RL = array("0" => 'Select Req No');
|
||||||
if (!empty($RequistionDetails)) {
|
if (!empty($RequistionDetails)) {
|
||||||
@ -895,11 +935,8 @@
|
|||||||
$RL[$SID->ReqNo] = $SID->ReqNo . ' ' . ' - ' . ' ' . $SID->DepartmentName;
|
$RL[$SID->ReqNo] = $SID->ReqNo . ' ' . ' - ' . ' ' . $SID->DepartmentName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('Reqnumber', $RL, set_value('Reqnumber'), 'id="Reqnumber" class="form-control select2 required"');
|
echo form_dropdown('Reqnumber', $RL, set_value('Reqnumber'), 'id="Reqnumber" class="form-control select2 required"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Department Name</label>
|
<label>Department Name</label>
|
||||||
@ -1045,34 +1082,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreightloc', $options, set_value('drpFreightloc'), 'id="drpFreightloc" class="form-control "');
|
echo form_dropdown('drpFreightloc', $options, set_value('drpFreightloc'), 'id="drpFreightloc" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<?php
|
<?php
|
||||||
@ -1337,25 +1363,17 @@
|
|||||||
<div class="form-group col-md-3" id="TripsValueafterHide"></div>
|
<div class="form-group col-md-3" id="TripsValueafterHide"></div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<?php
|
<?php
|
||||||
@ -1659,53 +1677,38 @@
|
|||||||
<div class="form-group col-md-3" id="TripsValueloceditAfterHide"></div>
|
<div class="form-group col-md-3" id="TripsValueloceditAfterHide"></div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
|
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
|
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: -2px;">
|
<div class="form-group col-md-3" style="padding-left: -2px;">
|
||||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -2032,53 +2035,38 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt <?php echo "($INR)" ?></span>
|
<span>Freight Amt <?php echo "($INR)" ?></span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -5221,13 +5209,19 @@
|
|||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
$('#TripsValueafterHide').hide();
|
$('#TripsValueafterHide').hide();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
$('#TripsValueafterHide').show();
|
$('#TripsValueafterHide').show();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#AfterBasicPriceTax').val() != '') {
|
if ($('#AfterBasicPriceTax').val() != '') {
|
||||||
@ -5258,12 +5252,19 @@
|
|||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#EditAfterBasicPriceTax').val() != '') {
|
if ($('#EditAfterBasicPriceTax').val() != '') {
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
@ -5662,11 +5663,17 @@
|
|||||||
var FreightType = $("#drpFreightloc").val();
|
var FreightType = $("#drpFreightloc").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValueloc').show();
|
$('#TripsValueloc').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTripsloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValueloc').hide();
|
$('#TripsValueloc').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTripsloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -5689,7 +5696,6 @@
|
|||||||
|
|
||||||
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#CAPITAL').modal('hide');
|
|
||||||
edit = 'FreightCalculationOn';
|
edit = 'FreightCalculationOn';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||||
@ -5808,16 +5814,21 @@
|
|||||||
var FreightType = $("#drpFreighteditloc").val();
|
var FreightType = $("#drpFreighteditloc").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValuelocedit').show();
|
$('#TripsValuelocedit').show();
|
||||||
$('#TripsValueloceditAfterHide').hide();
|
$('#TripsValueloceditAfterHide').hide();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTripslocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValuelocedit').hide();
|
$('#TripsValuelocedit').hide();
|
||||||
$('#TripsValueloceditAfterHide').show();
|
$('#TripsValueloceditAfterHide').show();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTripslocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($('#EditCPRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
if ($('#EditCPRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
||||||
selValue = $("#drpFreighteditloc").val();
|
selValue = $("#drpFreighteditloc").val();
|
||||||
|
|
||||||
@ -5837,7 +5848,6 @@
|
|||||||
|
|
||||||
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#EDITCAPITAL').modal('hide');
|
|
||||||
$('#editpackagingcalmodel').modal('show');
|
$('#editpackagingcalmodel').modal('show');
|
||||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||||
|
|
||||||
|
|||||||
@ -1628,24 +1628,14 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "'); ?>
|
||||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
@ -1948,25 +1938,16 @@
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="AmendTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="AmendTripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<?php
|
<?php
|
||||||
@ -3996,15 +3977,19 @@
|
|||||||
|
|
||||||
|
|
||||||
$('#drpamendFreight').change(function() {
|
$('#drpamendFreight').change(function() {
|
||||||
|
|
||||||
//alert();
|
|
||||||
var FreightType = $('#drpamendFreight').val();
|
var FreightType = $('#drpamendFreight').val();
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#AmendTripsValue').show();
|
$('#AmendTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendtxtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendtxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#AmendTripsValue').hide();
|
$('#AmendTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendtxtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendtxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -4414,15 +4399,21 @@
|
|||||||
$('#drpFreighteditloc').change(function() {
|
$('#drpFreighteditloc').change(function() {
|
||||||
var FreightType = $("#drpFreighteditloc").val();
|
var FreightType = $("#drpFreighteditloc").val();
|
||||||
|
|
||||||
|
|
||||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||||
|
|
||||||
$('#TripsValuelocedit').show();
|
$('#TripsValuelocedit').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTripslocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValuelocedit').hide();
|
$('#TripsValuelocedit').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTripslocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($('#EditCPRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
if ($('#EditCPRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
||||||
selValue = $("#drpFreighteditloc").val();
|
selValue = $("#drpFreighteditloc").val();
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,50 @@
|
|||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#packagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#editpackagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#editpackagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#editpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#viewpackagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#viewpackagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#viewpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#viewpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<?php $parentPO = '';
|
<?php $parentPO = '';
|
||||||
$AvlCapitalBudAmt = isset($AvlCapitalBudAmt) ? (int)$AvlCapitalBudAmt : 0;
|
$AvlCapitalBudAmt = isset($AvlCapitalBudAmt) ? (int)$AvlCapitalBudAmt : 0;
|
||||||
$insuranceStatus = array(
|
$insuranceStatus = array(
|
||||||
@ -174,6 +221,16 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
#mceu_1{
|
||||||
|
border-width: 0px 0px 0px !important;
|
||||||
|
}
|
||||||
|
#mceu_0{
|
||||||
|
padding: 1px !important;
|
||||||
|
}
|
||||||
|
.modal {
|
||||||
|
overflow: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
margin-top: -5%;
|
margin-top: -5%;
|
||||||
}
|
}
|
||||||
@ -813,7 +870,7 @@
|
|||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Freight Calculation On/h4>
|
<h4 class="modal-title">Freight Calculation On
|
||||||
<button type="button" class="close" data-dismiss="modal"
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
aria-hidden="true">×</button>
|
aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
@ -836,34 +893,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
<div id="viewpackagingcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
<div id="viewpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog modal-lg">
|
||||||
|
|
||||||
<!-- Modal content-->
|
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<h4 class="modal-title">Freight Calculation On</h4>
|
<h4 class="modal-title">Freight Calculation On</h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
|
aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body p-4">
|
||||||
<form>
|
<form>
|
||||||
|
|
||||||
<div class="radio">
|
<div>
|
||||||
<label><input type="radio" name="viewoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic Amount</label>
|
<label><input type="radio" name="viewoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic Amount</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio">
|
<div>
|
||||||
<label><input type="radio" name="viewoptPackaging" id="editoptPackaging" value='1'> After Discount Amount</label>
|
<label><input type="radio" name="viewoptPackaging" id="editoptPackaging" value='1'> After Discount Amount</label>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer" style="border:none;">
|
||||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
|
||||||
<a class="btn btn-success" ID="viewPackagingOption" onclick="calculateFreightlocviewper();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
<a class="btn btn-success" ID="viewPackagingOption" onclick="calculateFreightlocviewper();"> <span class="bold">Ok</span></a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -1685,54 +1741,39 @@
|
|||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreightloc', $options, set_value('drpFreightloc'), 'id="drpFreightloc"', 'class="form-control "');
|
echo form_dropdown('drpFreightloc', $options, set_value('drpFreightloc'), 'id="drpFreightloc"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreightloc', 'value' => set_value('txtFreightloc'), 'id' => 'txtFreightloc', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightlocaddper();');
|
$data = array('name' => 'txtFreightloc', 'value' => set_value('txtFreightloc'), 'id' => 'txtFreightloc', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightlocaddper();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: -2px;">
|
<div class="form-group col-md-3" style="padding-left: -2px;">
|
||||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreightloc', 'value' => set_value('txtAfterFreightloc'), 'id' => 'txtAfterFreightloc', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreightloc', 'value' => set_value('txtAfterFreightloc'), 'id' => 'txtAfterFreightloc', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -2059,53 +2100,38 @@
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="AddTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="AddTripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt <?php echo "($INR)" ?></span>
|
<span>Freight Amt <?php echo "($INR)" ?></span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -2390,53 +2416,38 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc"', 'class="form-control "');
|
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightloceditper();');
|
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightloceditper();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
|
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" style="padding: 1px;">
|
<div class="form-group col-md-3" style="padding: 1px;">
|
||||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-row" style="padding:0px">
|
<div class="form-row" style="padding:0px">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
CGST In %
|
CGST In %
|
||||||
@ -2748,53 +2759,37 @@
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt <?php echo "($INR)" ?></span>
|
<span>Freight Amt <?php echo "($INR)" ?></span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -2879,12 +2874,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align: left;">
|
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align: left;">
|
||||||
|
<div class="form-group col-md-11">
|
||||||
<label>Capital Description </label>
|
<label>Capital Description </label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
$data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||||
echo form_textarea($data); ?>
|
echo form_textarea($data); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right: 10px;">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right: 10px;">Cancel</a>
|
||||||
<a class="btn btn-success font EditCapital" ID="UpdateCapital"> <span class="bold">Update Capital</span></a>
|
<a class="btn btn-success font EditCapital" ID="UpdateCapital"> <span class="bold">Update Capital</span></a>
|
||||||
@ -2905,20 +2902,13 @@
|
|||||||
<form>
|
<form>
|
||||||
<div class="modal-body p-4">
|
<div class="modal-body p-4">
|
||||||
<div class="form-row" style="padding: 0px;">
|
<div class="form-row" style="padding: 0px;">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Req No<span class="text-danger">*</span></label>
|
<label>Req No<span class="text-danger">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$data = array('name' => 'ViewReqnumber', 'value' => set_value('ViewReqnumber'), 'id' => 'ViewReqnumber', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewReqnumber', 'value' => set_value('ViewReqnumber'), 'id' => 'ViewReqnumber', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -2930,20 +2920,14 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
|
|
||||||
<label>Cost Center Code</label>
|
<label>Cost Center Code</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$data = array('name' => 'ViewCostCenter', 'value' => set_value('ViewCostCenter'), 'id' => 'ViewCostCenter', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewCostCenter', 'value' => set_value('ViewCostCenter'), 'id' => 'ViewCostCenter', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2" id="ExchangeRateModalViewDiv" style="display:none;padding-right: 0px;">
|
<div class="form-group col-md-2" id="ExchangeRateModalViewDiv" style="display:none;padding-right: 0px;">
|
||||||
<label> Exchange Rate</label>
|
<label> Exchange Rate</label>
|
||||||
@ -2964,22 +2948,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row" style="padding: 0px;">
|
<div class="form-row" style="padding: 0px;">
|
||||||
<div class="form-group col-md-6" style="padding: 0px;">
|
<div class="form-group col-md-2">
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label>Item Code<span class="text-danger">*</span></label>
|
<label>Item Code<span class="text-danger">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
$data = array('name' => 'ViewMaterialCode', 'value' => set_value('ViewMaterialCode'), 'id' => 'ViewMaterialCode', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewMaterialCode', 'value' => set_value('ViewMaterialCode'), 'id' => 'ViewMaterialCode', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-2">
|
||||||
<label>Item Name</label>
|
<label>Item Name</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -2988,8 +2967,7 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group col-md-1">
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label>UOM</label>
|
<label>UOM</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -2998,7 +2976,7 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-2">
|
||||||
<label>Quantity<span class="text-danger">*</span></label>
|
<label>Quantity<span class="text-danger">*</span></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -3007,10 +2985,7 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-group col-md-2" style="padding: 0px;">
|
||||||
<div class="form-group col-md-6" style="padding: 0px;">
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="padding: 0px;">
|
|
||||||
<label id="ViewRateIn">Rate(in INR/UOM)</label><span class="text-danger">*</span>
|
<label id="ViewRateIn">Rate(in INR/UOM)</label><span class="text-danger">*</span>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -3019,12 +2994,12 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-1">
|
||||||
<label>Per</label> <?php
|
<label>Per</label>
|
||||||
$data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control', 'readonly' => 'true');
|
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-2">
|
||||||
<label id="EditTotalAmount">Basic value <?php echo "($INR)" ?></label>
|
<label id="EditTotalAmount">Basic value <?php echo "($INR)" ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -3034,21 +3009,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div id="VIEWCAPdiv" style="padding: 0px;">
|
||||||
|
<div class="form-row">
|
||||||
<div class="form-row" style="padding: 0px;border:0px;">
|
<div class="form-group col-md-3"></div>
|
||||||
<div class="form-row" id="VIEWCAPdiv" style="padding: 0px;">
|
|
||||||
<div class="form-row"> <!-- <div class="form-group col-md-4">
|
|
||||||
</div>-->
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Discount Type </label>
|
<label>Discount Type </label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
$data = array('name' => 'ViewDiscountType', 'value' => set_value('ViewDiscountType'), 'id' => 'ViewDiscountType', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'ViewDiscountType', 'value' => set_value('ViewDiscountType'), 'id' => 'ViewDiscountType', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -3071,179 +3040,116 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-3"></div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
echo form_dropdown('drpFreightviewloc', $options, set_value(field: 'drpFreightviewloc'), 'id="drpFreightviewloc" disabled class="form-control "');
|
||||||
echo form_dropdown('drpFreightviewloc', $options, set_value('drpFreightviewloc'), 'id="drpFreightviewloc"', 'class="form-control "');
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValuelocview" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValuelocview" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTripslocview', 'value' => set_value('NOOfTripslocview'), 'id' => 'NOOfTripslocview', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocviewper();');
|
$data = array('name' => 'NOOfTripslocview', 'value' => set_value('NOOfTripslocview'), 'id' => 'NOOfTripslocview', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocviewper();', 'disabled' => 'disabled');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" style=padding:15px">
|
<div class="form-group col-md-3" style=padding:15px">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreightlocview', 'value' => set_value('txtFreightlocview'), 'id' => 'txtFreightlocview', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightlocviewper();');
|
$data = array('name' => 'txtFreightlocview', 'value' => set_value('txtFreightlocview'), 'id' => 'txtFreightlocview', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightlocviewper();', 'disabled' => 'disabled');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style=padding-left: -2px;">
|
<div class="form-group col-md-3" style=padding-left: -2px;">
|
||||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreightlocview', 'value' => set_value('txtAfterFreightlocview'), 'id' => 'txtAfterFreightlocview', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreightlocview', 'value' => set_value('txtAfterFreightlocview'), 'id' => 'txtAfterFreightlocview', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
CGST In %
|
CGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" id="VIEWCAPdiv1" style="padding: 0px;">
|
<div class="form-row" id="VIEWCAPdiv1" style="padding: 0px;">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
SGST In %
|
SGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-row" id="VIEWCAPdiv2" style="padding: 0px;">
|
<div class="form-row" id="VIEWCAPdiv2" style="padding: 0px;">
|
||||||
<div class="form-group col-md-6" align="right">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
IGST In %
|
IGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
|
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" id="VIEWCAPdiv3" style="padding: 0px;">
|
<div class="form-row" id="VIEWCAPdiv3" style="padding: 0px;">
|
||||||
<div class="col-md-5 col-md-offset-4" align="right">
|
<div class="col-md-9 col-md-offset-4" align="right">
|
||||||
<label>Other Allowances <?php echo "($INR)" ?></label>
|
<label>Other Allowances <?php echo "($INR)" ?></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewOtherAllowances', 'value' => set_value('ViewOtherAllowances'), 'id' => 'ViewOtherAllowances', 'class' => 'form-control num', 'placeholder' => 'Other Allowances', 'readonly' => 'true');
|
$data = array('name' => 'ViewOtherAllowances', 'value' => set_value('ViewOtherAllowances'), 'id' => 'ViewOtherAllowances', 'class' => 'form-control num', 'placeholder' => 'Other Allowances', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-row" id="" style="padding: 0px;">
|
<div class="form-row" id="" style="padding: 0px;">
|
||||||
<div class="col-md-5 col-md-offset-4" align="right">
|
<div class="col-md-9 col-md-offset-4" align="right">
|
||||||
<label>Total Amount <?php echo "($INR)" ?></label>
|
<label>Total Amount <?php echo "($INR)" ?></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewTotalAmountlocal', 'value' => set_value('ViewTotalAmountlocal'), 'id' => 'ViewTotalAmountlocal', 'class' => 'form-control num', 'placeholder' => 'Total Amount', 'readonly' => 'true');
|
$data = array('name' => 'ViewTotalAmountlocal', 'value' => set_value('ViewTotalAmountlocal'), 'id' => 'ViewTotalAmountlocal', 'class' => 'form-control num', 'placeholder' => 'Total Amount', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row" style="padding:1%;"></div>
|
<div class="form-row" style="padding:1%;"></div>
|
||||||
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
|
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
|
||||||
<br />
|
<br />
|
||||||
@ -3332,9 +3238,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
Custom ED_cess (C)
|
Custom ED_cess (C)
|
||||||
@ -3400,11 +3303,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<!-- Additional Excise duty : (g) -->
|
<!-- Additional Excise duty : (g) -->
|
||||||
@ -3428,17 +3326,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-8">
|
<div class="form-group col-md-8">
|
||||||
Total Duty (G) <?php echo "($INR) (B+C+D+F)" ?>
|
Total Duty (G) <?php echo "($INR) (B+C+D+F)" ?>
|
||||||
@ -3452,63 +3339,43 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!--Start of Adding of Frieght model-->
|
<!--Start of Adding of Frieght model-->
|
||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpViewFreight', $options, set_value('drpViewFreight'), 'id="drpViewFreight"', 'class="form-control "');
|
echo form_dropdown('drpViewFreight', $options, set_value('drpViewFreight'), 'id="drpViewFreight"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="ViewTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="ViewTripsValue" style="display:none;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtViewFreight', 'value' => set_value('txtViewFreight'), 'id' => 'txtViewFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);');
|
$data = array('name' => 'txtViewFreight', 'value' => set_value('txtViewFreight'), 'id' => 'txtViewFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt <?php echo "($INR)" ?></span>
|
<span>Freight Amt <?php echo "($INR)" ?></span>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<center> <label>Cost of the product Per UOM</label></center>
|
<center> <label>Cost of the product Per UOM</label></center>
|
||||||
<hr />
|
<hr />
|
||||||
@ -3534,14 +3401,10 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
Custom Duty Expenses<?php echo "($INR)/UOM" ?>
|
Custom Duty Expenses<?php echo "($INR)/UOM" ?>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -3565,14 +3428,6 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="margin-top: -25px;">
|
<div class="form-group col-md-4" style="margin-top: -25px;">
|
||||||
<!-- RMC Including Customers -->
|
<!-- RMC Including Customers -->
|
||||||
<span><?php echo "Nett per UOM($INR)"; ?></span>
|
<span><?php echo "Nett per UOM($INR)"; ?></span>
|
||||||
@ -3584,19 +3439,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order Amount :</label></div>
|
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order Amount :</label></div>
|
||||||
<div class="form-group col-md-6" style="display:none;">
|
<div class="form-group col-md-6" style="display:none;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -3607,28 +3451,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align:left">
|
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align:left">
|
||||||
|
<div class="form-group col-md-12">
|
||||||
<label>Capital Description </label>
|
<label>Capital Description </label>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewItemDescription', 'value' => set_value('ViewItemDescription'), 'id' => 'ViewItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
$data = array('name' => 'ViewItemDescription', 'value' => set_value('ViewItemDescription'), 'id' => 'ViewItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||||
echo form_textarea($data); ?>
|
echo form_textarea($data); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px">Cancel</a>
|
||||||
<?php if ($CapitalRange == 1 || $CapitalRange == 0) { ?>
|
<?php if ($CapitalRange == 1 || $CapitalRange == 0) { ?>
|
||||||
<a class="btn btn-success font ViewCapital" ID="ViewUpdateCapital"> <span class="bold">Update Capital</span></a>
|
<!-- <a class="btn btn-success font ViewCapital" ID="ViewUpdateCapital"> <span class="bold">Update Capital</span></a> -->
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -7041,11 +6878,17 @@
|
|||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#AfterBasicPriceTax').val() != '') {
|
if ($('#AfterBasicPriceTax').val() != '') {
|
||||||
@ -7076,12 +6919,19 @@
|
|||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#EditAfterBasicPriceTax').val() != '') {
|
if ($('#EditAfterBasicPriceTax').val() != '') {
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
@ -7108,12 +6958,19 @@
|
|||||||
var FreightType = $("#drpViewFreight").val();
|
var FreightType = $("#drpViewFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#ViewTripsValue').show();
|
$('#ViewTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#ViewNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtViewFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtViewAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#ViewTripsValue').hide();
|
$('#ViewTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#ViewNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtViewFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtViewAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#ViewAfterBasicPriceTax').val() != '') {
|
if ($('#ViewAfterBasicPriceTax').val() != '') {
|
||||||
selValue = $("#drpViewFreight").val();
|
selValue = $("#drpViewFreight").val();
|
||||||
$('#txtViewFreight').val('');
|
$('#txtViewFreight').val('');
|
||||||
@ -7570,11 +7427,17 @@
|
|||||||
var FreightType = $("#drpFreightloc").val();
|
var FreightType = $("#drpFreightloc").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValueloc').show();
|
$('#TripsValueloc').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTripsloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightloc').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValueloc').hide();
|
$('#TripsValueloc').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTripsloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightloc').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -7597,7 +7460,6 @@
|
|||||||
|
|
||||||
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#CAPITAL').modal('hide');
|
|
||||||
edit = 'FreightCalculationOn';
|
edit = 'FreightCalculationOn';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||||
@ -7721,11 +7583,17 @@
|
|||||||
var FreightType = $("#drpFreighteditloc").val();
|
var FreightType = $("#drpFreighteditloc").val();
|
||||||
|
|
||||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||||
|
|
||||||
$('#TripsValuelocedit').show();
|
$('#TripsValuelocedit').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#TripsValuelocedit').removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValuelocedit').hide();
|
$('#TripsValuelocedit').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#TripsValuelocedit').removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightlocedit').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -7748,7 +7616,6 @@
|
|||||||
|
|
||||||
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#EDITCAPITAL').modal('hide');
|
|
||||||
$('#editpackagingcalmodel').modal('show');
|
$('#editpackagingcalmodel').modal('show');
|
||||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||||
|
|
||||||
@ -7867,15 +7734,20 @@
|
|||||||
var FreightType = $("#drpFreightviewloc").val();
|
var FreightType = $("#drpFreightviewloc").val();
|
||||||
|
|
||||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||||
|
|
||||||
$('#TripsValuelocview').show();
|
$('#TripsValuelocview').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTripslocview').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreightlocview').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreightlocview').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValuelocview').hide();
|
$('#TripsValuelocview').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTripslocview').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreightlocview').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreightlocview').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
selValue = $("#drpFreightviewloc").val();
|
selValue = $("#drpFreightviewloc").val();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1040,53 +1040,38 @@ if (!empty($RequistionDetails)) {
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="AmendTripsValue" style="display:block;">
|
<div class="form-group col-md-3" id="AmendTripsValue" style="display:block;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt In <?php echo $INR; ?></span>
|
<span>Freight Amt In <?php echo $INR; ?></span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -2577,7 +2562,8 @@ if (!empty($RequistionDetails)) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$('.EditImport').click(function() {
|
$('.EditImport').click(function() {
|
||||||
@ -3010,16 +2996,21 @@ if (!empty($RequistionDetails)) {
|
|||||||
|
|
||||||
//alert();
|
//alert();
|
||||||
var FreightType = $('#drpamendFreight').val();
|
var FreightType = $('#drpamendFreight').val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#AmendTripsValue').show();
|
$('#AmendTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendtxtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#AmendtxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#AmendTripsValue').hide();
|
$('#AmendTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendtxtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#AmendtxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
||||||
selValue = $("#drpamendFreight").val();
|
selValue = $("#drpamendFreight").val();
|
||||||
$('#AmendtxtFreight').val('');
|
$('#AmendtxtFreight').val('');
|
||||||
|
|||||||
@ -246,17 +246,30 @@ if (!empty($emppay)) {
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<span for="Basic_Pay">Paid Amount</span>
|
<span for="Basic_Pay">Paid Amount</span>
|
||||||
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
|
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" readonly>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group">
|
||||||
|
<span for="">Paid Due</span>
|
||||||
|
<input type="text" class="form-control requried num" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>" readonly>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>">
|
</div>
|
||||||
<input type="hidden" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>">
|
<div class="col-md-3">
|
||||||
|
<div class="form-group">
|
||||||
|
<span for="">Remaining Due</span>
|
||||||
|
<input type="text" class="form-control requried num" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>" readonly>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <input type="hidden" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>">
|
||||||
|
<input type="hidden" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>"> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
<input type="button" class="btn btn-success" value="Delete" id="deleteemp" style="background-color:red ;color: white; margin-right: 15px;width: 80px;border:none;" />
|
<input type="button" class="btn btn-success" value="Delete" id="deleteemp" style="background-color:#ee4d4d;color:white;margin-right:15px;width:80px;border:none;" />
|
||||||
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
|
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -308,27 +321,7 @@ if (!empty($emppay)) {
|
|||||||
</div> <!-- content -->
|
</div> <!-- content -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function calculateBasic()
|
|
||||||
|
|
||||||
{
|
|
||||||
var Totalsalary = document.getElementById('Total_Salary').value;;
|
|
||||||
var HRA = document.getElementById('HRA_Rate').value;
|
|
||||||
if (HRA == '') {
|
|
||||||
alert("Please Enter HRA RATE..");
|
|
||||||
document.getElementById('HRA_Rate').focus();
|
|
||||||
} else if (Totalsalary == '') {
|
|
||||||
alert("Please Enter Total Salary..");
|
|
||||||
document.getElementById('Total_Salary').focus();
|
|
||||||
} else {
|
|
||||||
var temp = (Totalsalary * (HRA / 100));
|
|
||||||
var basic = Totalsalary - temp;
|
|
||||||
document.getElementById('Basic_Pay').value = basic;
|
|
||||||
document.getElementById('HRA_Amount').value = temp;
|
|
||||||
}
|
|
||||||
//alert(basic);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -351,14 +344,13 @@ if (!empty($emppay)) {
|
|||||||
} else {
|
} else {
|
||||||
document.getElementById('no_of_due').value = Math.ceil(totaldue);
|
document.getElementById('no_of_due').value = Math.ceil(totaldue);
|
||||||
var noofdues = document.getElementById('no_of_due').value;
|
var noofdues = document.getElementById('no_of_due').value;
|
||||||
$('#remaining_due').val(noofdues);
|
$('#remaining_due').val(noofdues - $('#paid_due').val());
|
||||||
$('#Paid_Amount').val("0.00");
|
// $('#Paid_Amount').val("0.00");
|
||||||
$('#paid_due').val(0);
|
// $('#paid_due').val(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} //else if(loan == "" || loan == 0)
|
}
|
||||||
//alert(totaldue);
|
|
||||||
|
|
||||||
dateCalulation();
|
dateCalulation();
|
||||||
|
|
||||||
@ -366,7 +358,7 @@ if (!empty($emppay)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dateCalulation() {
|
function dateCalulation() {
|
||||||
//alert('j');
|
|
||||||
var loanamount = document.getElementById('Loan_Amount').value;
|
var loanamount = document.getElementById('Loan_Amount').value;
|
||||||
if (loanamount == 0.00 || loanamount == "") {
|
if (loanamount == 0.00 || loanamount == "") {
|
||||||
$('#loan_issued_date').val("");
|
$('#loan_issued_date').val("");
|
||||||
@ -377,16 +369,11 @@ if (!empty($emppay)) {
|
|||||||
$('#Loan_Amount').val("0.00");
|
$('#Loan_Amount').val("0.00");
|
||||||
$('#paid_due').val(0);
|
$('#paid_due').val(0);
|
||||||
$('#Paid_Amount').val("0.00");
|
$('#Paid_Amount').val("0.00");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function finalCheck() {
|
function finalCheck() {
|
||||||
//alert("final check");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var loanamount = document.getElementById('Loan_Amount').value;
|
var loanamount = document.getElementById('Loan_Amount').value;
|
||||||
if (loanamount != "" && loanamount != 0.00) {
|
if (loanamount != "" && loanamount != 0.00) {
|
||||||
@ -413,9 +400,10 @@ if (!empty($emppay)) {
|
|||||||
echo $emppay[0]->Loan_ID;
|
echo $emppay[0]->Loan_ID;
|
||||||
} ?>";
|
} ?>";
|
||||||
var i = confirm("Do You want to delete " + loanid + " from Loan Master?");
|
var i = confirm("Do You want to delete " + loanid + " from Loan Master?");
|
||||||
// alert(i);s
|
|
||||||
if (i) {
|
if (i) {
|
||||||
// $('#content').loader('show');
|
|
||||||
|
$('#loader').show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {
|
data: {
|
||||||
id: loanid
|
id: loanid
|
||||||
@ -426,7 +414,7 @@ if (!empty($emppay)) {
|
|||||||
if (result) {
|
if (result) {
|
||||||
|
|
||||||
alert(result);
|
alert(result);
|
||||||
// $('#content').loader('hide');
|
$('#loader').hide();
|
||||||
window.location.href = "<?php echo base_url(); ?>emppayListings";
|
window.location.href = "<?php echo base_url(); ?>emppayListings";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -320,13 +320,19 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#drpEditFreight').change(function() {
|
$('#drpEditFreight').change(function() {
|
||||||
|
|
||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
// alert(FreightType);
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
@ -1716,53 +1722,38 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="form-group col-md-4"></div>
|
<div class="form-group col-md-4"></div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight();');
|
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight();', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight();', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-row" style="text-align:left;">
|
<div class="form-row" style="text-align:left;">
|
||||||
<div class="form-group col-md-4"></div>
|
<div class="form-group col-md-4"></div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
|
|||||||
@ -1,3 +1,35 @@
|
|||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#freightcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#freightcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#freightcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#freightcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#packagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<?php $ReqType = '';
|
<?php $ReqType = '';
|
||||||
$CompanyAddress = '';
|
$CompanyAddress = '';
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
@ -139,6 +171,10 @@ if (!empty($getlogpodtl)) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
.modal {
|
||||||
|
overflow: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* #packagingcalmodel {
|
/* #packagingcalmodel {
|
||||||
margin-top: 200px;
|
margin-top: 200px;
|
||||||
z-index: 1080 !important;
|
z-index: 1080 !important;
|
||||||
@ -516,7 +552,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#txtAfterPackaging').val('');
|
$('#txtAfterPackaging').val('');
|
||||||
selValue = $("#PackagingType").val();
|
selValue = $("#PackagingType").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
$('#REVENUE').modal('hide');
|
// $('#REVENUE').modal('hide');
|
||||||
edit = 'PackingCalculationOn';
|
edit = 'PackingCalculationOn';
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
@ -547,7 +583,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#txtEditAfterPackaging').val('');
|
$('#txtEditAfterPackaging').val('');
|
||||||
selValue = $("#EditPackagingType").val();
|
selValue = $("#EditPackagingType").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
$('#EDITREVENUE').modal('hide');
|
// $('#EDITREVENUE').modal('hide');
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
edit = 'EditPackingCalculationOn';
|
edit = 'EditPackingCalculationOn';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
@ -606,18 +642,18 @@ if (!empty($getlogpodtl)) {
|
|||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||||
}
|
}
|
||||||
|
|
||||||
selValue = $("#drpFreight").val();
|
selValue = $("#drpFreight").val();
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$('#txtAfterFreight').val('');
|
$('#txtAfterFreight').val('');
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
$('#REVENUE').modal('hide');
|
// $('#REVENUE').modal('hide');
|
||||||
freight = 'FreightCalculationOn';
|
freight = 'FreightCalculationOn';
|
||||||
var FreightCalculation = '';
|
var FreightCalculation = '';
|
||||||
$('#freightcalmodel').modal('show');
|
$('#freightcalmodel').modal('show');
|
||||||
@ -660,11 +696,11 @@ if (!empty($getlogpodtl)) {
|
|||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||||
}
|
}
|
||||||
|
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
@ -691,13 +727,12 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
$('#drpViewFreight').change(function() {
|
$('#drpViewFreight').change(function() {
|
||||||
var FreightType = $("#drpViewFreight").val();
|
var FreightType = $("#drpViewFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#ViewTripsValue').show();
|
$('#ViewTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#ViewTripsValue').hide();
|
$('#ViewTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||||
}
|
}
|
||||||
|
|
||||||
selValue = $("#drpViewFreight").val();
|
selValue = $("#drpViewFreight").val();
|
||||||
@ -2259,11 +2294,11 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == SPECIAL_PO) { ?>
|
if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == SPECIAL_PO) { ?>
|
||||||
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
||||||
|
|
||||||
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||||
<?php
|
<?php
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<td> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i> </a> </td>
|
<td> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i> </a> </td>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
@ -2582,7 +2617,9 @@ if (!empty($getlogpodtl)) {
|
|||||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php if(isset($index)){ echo $index; } ?>">
|
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php if (isset($index)) {
|
||||||
|
echo $index;
|
||||||
|
} ?>">
|
||||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||||
<input type="hidden" name="txttaxcheck" id="txttaxcheck" value="" />
|
<input type="hidden" name="txttaxcheck" id="txttaxcheck" value="" />
|
||||||
@ -2837,7 +2874,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-group col-md-4"></div>
|
<div class="form-group col-md-4"></div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
@ -2849,7 +2885,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -3191,22 +3226,13 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-group col-md-4"></div>
|
<div class="form-group col-md-4"></div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
<?php $options = array("0" => 'Select Freight Type');
|
||||||
<?php
|
|
||||||
$options = array("0" => 'Select Freight Type');
|
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"'); ?>
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
@ -3500,7 +3526,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Packaging Type </label>
|
<label>Packaging Type </label>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewPackagingType', 'value' => set_value('ViewPackagingType'), 'id' => 'ViewPackagingType', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'ViewPackagingType', 'value' => set_value('ViewPackagingType'), 'id' => 'ViewPackagingType', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
@ -3540,37 +3565,31 @@ if (!empty($getlogpodtl)) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpViewFreight', $options, set_value('drpViewFreight'), 'id="drpViewFreight" class="form-control"');
|
echo form_dropdown('drpViewFreight', $options, set_value('drpViewFreight'), 'id="drpViewFreight" class="form-control" disabled');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2" id="ViewTripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="ViewTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtViewFreight', 'value' => set_value('txtViewFreight'), 'id' => 'txtViewFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'style' => 'text-align:right;', 'onchange' => 'calculateFreight(2);');
|
$data = array('name' => 'txtViewFreight', 'value' => set_value('txtViewFreight'), 'id' => 'txtViewFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'style' => 'text-align:right;', 'onchange' => 'calculateFreight(2);', 'readonly' => 'readonly');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label><?php echo "Freight Amt ($INRSYM)"; ?> </label>
|
<label><?php echo "Freight Amt ($INRSYM)"; ?> </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-8"></div>
|
<div class="form-group col-md-8"></div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -3668,7 +3687,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a class="btn btn-success ViewRevenue" ID="ViewRevenue"> <span class="bold">Edit Revenue</span></a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -3962,7 +3981,9 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
var index = <?php if(isset($index)){ echo $index; } ?>;
|
var index = <?php if (isset($index)) {
|
||||||
|
echo $index;
|
||||||
|
} ?>;
|
||||||
var userid = '';
|
var userid = '';
|
||||||
var taxcheck = 0;
|
var taxcheck = 0;
|
||||||
$("#BudgetType").change(function() {
|
$("#BudgetType").change(function() {
|
||||||
|
|||||||
@ -644,6 +644,12 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
#mceu_5{
|
||||||
|
border-width: 0px 0px 0px !important;
|
||||||
|
}
|
||||||
|
#mceu_4{
|
||||||
|
padding: 1px !important;
|
||||||
|
}
|
||||||
/* .modal {
|
/* .modal {
|
||||||
padding-right: 25% ! important;
|
padding-right: 25% ! important;
|
||||||
} */
|
} */
|
||||||
@ -1486,8 +1492,7 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row px-3">
|
<div class="form-row px-3">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
CGST In %
|
CGST In %
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1514,7 +1519,7 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row px-3">
|
<div class="form-row px-3">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
SGST In %
|
SGST In %
|
||||||
</div>
|
</div>
|
||||||
@ -1543,7 +1548,7 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row px-3">
|
<div class="form-row px-3">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6" align="right">
|
||||||
|
|
||||||
IGST In %
|
IGST In %
|
||||||
</div>
|
</div>
|
||||||
@ -1571,11 +1576,8 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row px-3">
|
<div class="form-row px-3">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-6" align="right">
|
||||||
<label>Other Allowances <?php echo $INRSYM ?></label>
|
<label>Other Allowances <?php echo $INRSYM ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1588,11 +1590,8 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row px-3">
|
<div class="form-row px-3">
|
||||||
|
|
||||||
<div class="form-group col-md-3 ">
|
<div class="form-group col-md-6" align="right">
|
||||||
<label><?php echo "Total Order Value ($INRSYM)"; ?></label>
|
<label><?php echo "Total Order Value ($INRSYM)"; ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1604,11 +1603,8 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row pl-3">
|
<div class="form-row pl-3">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-11">
|
||||||
<label>Service Description </label>
|
<label>Service Description </label>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<?php $data = array(
|
<?php $data = array(
|
||||||
'name' => 'EdittxtSpcialInstruction',
|
'name' => 'EdittxtSpcialInstruction',
|
||||||
'value' => set_value('EdittxtSpcialInstruction', $ServiceMaterialDescription),
|
'value' => set_value('EdittxtSpcialInstruction', $ServiceMaterialDescription),
|
||||||
@ -1630,7 +1626,7 @@ foreach ($PaymentTerms as $TER) {
|
|||||||
|
|
||||||
<div class="modal-footer" align="right">
|
<div class="modal-footer" align="right">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px;">Cancel</a>
|
||||||
<a class="btn btn-success font EditService" ID="Edit"> <span class="bold">Update Service</span></a>
|
<a class="btn btn-success font EditService" ID="Edit"> <span class="bold">Update Service</span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -529,7 +529,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
<label>Exchange Rate On</label>
|
<label>Exchange Rate On</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('type' => 'date', 'name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $ExchangeRateCalculatedon), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
$data = array('type' => 'text', 'name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $ExchangeRateCalculatedon), 'id' => 'Exchangerateon', 'class' => 'form-control num form-date-search', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -565,7 +565,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
<label>Purchase Order Date</label>
|
<label>Purchase Order Date</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
|
$data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control form-date-search', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||||
</div>
|
</div>
|
||||||
@ -1697,53 +1697,38 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpaddFreight', $options, set_value('drpaddFreight'), 'id="drpaddFreight" class="form-control "');
|
echo form_dropdown('drpaddFreight', $options, set_value('drpaddFreight'), 'id="drpaddFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4" id="AddTripsValue" style="display:none;">
|
<div class="form-group col-md-4" id="AddTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'addNOOfTrips', 'value' => set_value('addNOOfTrips'), 'id' => 'addNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'addNOOfTrips', 'value' => set_value('addNOOfTrips'), 'id' => 'addNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'addtxtFreight', 'value' => set_value('addtxtFreight'), 'id' => 'addtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'addtxtFreight', 'value' => set_value('addtxtFreight'), 'id' => 'addtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="padding-left: 0px;">
|
<div class="form-group col-md-4" style="padding-left: 0px;">
|
||||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'addtxtAfterFreight', 'value' => set_value('addtxtAfterFreight'), 'id' => 'addtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'addtxtAfterFreight', 'value' => set_value('addtxtAfterFreight'), 'id' => 'addtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -1861,7 +1846,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<label>Import Description :</label>
|
<label>Import Description :</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'addtxtInstruction', 'value' => set_value('addtxtInstruction'), 'id' => 'addtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
$data = array('name' => 'addtxtInstruction', 'value' => set_value('addtxtInstruction'), 'id' => 'addtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40', 'disabled' => 'disabled');
|
||||||
echo form_textarea($data);
|
echo form_textarea($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -2304,53 +2289,38 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="EditTripsValue" style="display:block;">
|
<div class="form-group col-md-3" id="EditTripsValue" style="display:block;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'edittxtFreight', 'value' => set_value('edittxtFreight'), 'id' => 'edittxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'edittxtFreight', 'value' => set_value('edittxtFreight'), 'id' => 'edittxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt <?php echo $INR; ?></span>
|
<span>Freight Amt <?php echo $INR; ?></span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -2486,18 +2456,15 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<form>
|
<form>
|
||||||
<div class="modal-body p-4">
|
<div class="modal-body p-4">
|
||||||
|
<div class="form-row" style="margin-bottom: 10px;">
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Req No<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
<label>Req No<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$data = array('name' => 'ViewReqNo', 'value' => set_value('ViewReqNo'), 'id' => 'ViewReqNo', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewReqNo', 'value' => set_value('ViewReqNo'), 'id' => 'ViewReqNo', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Department Name</label>
|
<label>Department Name</label>
|
||||||
<div>
|
<div>
|
||||||
@ -2510,123 +2477,88 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Cost Center Code</label>
|
<label>Cost Center Code</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $options = array("0" => 'Select Cost Center');
|
||||||
$options = array("0" => 'Select Cost Center');
|
|
||||||
|
|
||||||
//echo form_dropdown('EditCostCenter', $options,set_value('EditCostCenter'),'id="EditCostCenter"' ,'class="form-control"');
|
//echo form_dropdown('EditCostCenter', $options,set_value('EditCostCenter'),'id="EditCostCenter"' ,'class="form-control"');
|
||||||
|
|
||||||
$data = array('name' => 'ViewCostCenter', 'value' => set_value('ViewCostCenter'), 'id' => 'ViewCostCenter', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'ViewCostCenter', 'value' => set_value('ViewCostCenter'), 'id' => 'ViewCostCenter', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data); ?>
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" style="padding-right: 0px;">
|
<div class="form-group col-md-3" style="padding-right: 0px;">
|
||||||
<label>Available Budget Amount (<?php echo $INR ?>)</label>
|
<label>Available Budget Amount (<?php echo $INR ?>)</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAvlBudAmt', 'value' => set_value('ViewAvlBudAmt'), 'id' => 'ViewAvlBudAmt', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewAvlBudAmt', 'value' => set_value('ViewAvlBudAmt'), 'id' => 'ViewAvlBudAmt', 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row" style="margin-bottom: 10px;">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Item Code<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
<label>Item Code<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||||
|
|
||||||
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
// $options = array("0"=>'Item Code');
|
// $options = array("0"=>'Item Code');
|
||||||
|
|
||||||
//if(!empty($MaterialList))
|
//if(!empty($MaterialList))
|
||||||
//{
|
//{
|
||||||
// foreach ($MaterialList as $SID):
|
// foreach ($MaterialList as $SID):
|
||||||
|
|
||||||
|
|
||||||
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
||||||
|
|
||||||
//endforeach;
|
//endforeach;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
||||||
|
|
||||||
$options = array("0" => 'Item Code');
|
$options = array("0" => 'Item Code');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
|
echo form_dropdown('ViewMaterialCode', $options, set_value('ViewMaterialCode'), 'id="ViewMaterialCode" class="form-control"'); ?>
|
||||||
|
|
||||||
|
|
||||||
echo form_dropdown('ViewMaterialCode', $options, set_value('ViewMaterialCode'), 'id="ViewMaterialCode" class="form-control"');
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Item Name</label>
|
<label>Item Name</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewItemName', 'value' => set_value('ViewItemName'), 'id' => 'ViewItemName', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewItemName', 'value' => set_value('ViewItemName'), 'id' => 'ViewItemName', 'class' => 'form-control', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-1">
|
<div class="form-group col-md-1">
|
||||||
<label>UOM</label>
|
<label>UOM</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewUOM', 'value' => set_value('ViewUOM'), 'id' => 'ViewUOM', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewUOM', 'value' => set_value('ViewUOM'), 'id' => 'ViewUOM', 'class' => 'form-control', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Quantity<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
<label>Quantity<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewQuantity', 'value' => set_value('ViewQuantity'), 'id' => 'ViewQuantity', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange(),ExceedEditQuantityCheck()');
|
||||||
$data = array('name' => 'ViewQuantity', 'value' => set_value('ViewQuantity'), 'id' => 'ViewQuantity', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange(),ExceedEditQuantityCheck()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label id=labelEditRate><?php echo "Rate in $Currencycode ($Value)"; ?><span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span> </label>
|
<label id=labelEditRate><?php echo "Rate in $Currencycode ($Value)"; ?><span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span> </label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewRate', 'value' => set_value('ViewRate'), 'id' => 'ViewRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => true, 'onchange' => 'EditRatechange()');
|
||||||
$data = array('name' => 'ViewRate', 'value' => set_value('ViewRate'), 'id' => 'ViewRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => true, 'onchange' => 'EditRatechange()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-1">
|
<div class="form-group col-md-1">
|
||||||
<label>Per</label> <?php
|
<label>Per</label>
|
||||||
$data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'readonly' => true, 'class' => 'form-control');
|
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'readonly' => true, 'class' => 'form-control');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2" style="padding: 0px;">
|
<div class="form-group col-md-2" style="padding: 0px;">
|
||||||
<!-- <label><?php echo "Basic Value In"; ?></label>-->
|
<!-- <label><?php echo "Basic Value In"; ?></label>-->
|
||||||
<!-- <p id=label3> --><label id=label3><?php echo "Basic Value In $Currencycode ($Value)"; ?></label><!-- </p> -->
|
<!-- <p id=label3> -->
|
||||||
|
<label id=label3><?php echo "Basic Value In $Currencycode ($Value)"; ?></label><!-- </p> -->
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
//$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
//$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||||
|
|
||||||
$data = array('name' => 'ViewtxtBasicValue', 'value' => set_value('ViewtxtBasicValue'), 'id' => 'ViewtxtBasicValue', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'ViewtxtBasicValue', 'value' => set_value('ViewtxtBasicValue'), 'id' => 'ViewtxtBasicValue', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data); ?>
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row" style="margin-bottom: 10px;">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
|
|
||||||
<!-- Basic Price in US $ per Ton : -->
|
<!-- Basic Price in US $ per Ton : -->
|
||||||
|
<label id=labelEditBasicPriceUs><b><?php echo "Basic Price in $Currencycode ($Value)" ?></b></label>
|
||||||
<p id=labelEditBasicPriceUs><b><?php echo "Basic Price in $Currencycode ($Value)" ?></p>
|
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewimBasicPrice', 'value' => set_value('ViewimBasicPrice'), 'id' => 'ViewimBasicPrice', 'class' => 'form-control num', 'placeholder ' => 'basic price', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'ViewimBasicPrice', 'value' => set_value('ViewimBasicPrice'), 'id' => 'ViewimBasicPrice', 'class' => 'form-control num', 'placeholder ' => 'basic price', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -2634,27 +2566,17 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
|
|
||||||
<!-- Exchange Rate : -->
|
<!-- Exchange Rate : -->
|
||||||
|
|
||||||
<label id=labelviewexc><?php echo "Exchange Rate ($Currencycode ($Value))" ?></label>
|
<label id=labelviewexc><?php echo "Exchange Rate ($Currencycode ($Value))" ?></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewExchangeRt', 'value' => set_value('ViewExchangeRt', $ExchangeRate), 'id' => 'ViewExchangeRt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewExchangeRt', 'value' => set_value('ViewExchangeRt', $ExchangeRate), 'id' => 'ViewExchangeRt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
|
|
||||||
<!-- Basic value in INR : -->
|
<!-- Basic value in INR : -->
|
||||||
|
<label id=labelEditBasicINR><?php echo "Basic value in ($INR) :"; ?></label>
|
||||||
<p id=labelEditBasicINR><label><?php echo "Basic value in ($INR) :"; ?></label></p>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewINRBasicvalue', 'value' => set_value('ViewINRBasicvalue'), 'id' => 'ViewINRBasicvalue', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'ViewINRBasicvalue', 'value' => set_value('ViewINRBasicvalue'), 'id' => 'ViewINRBasicvalue', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
@ -2666,9 +2588,9 @@ if (!empty($getlogpodtl)) {
|
|||||||
<a href="http://www.xe.com/" target="_blank"><u>Click nere to check Today's Foreign Exchange value</u></a>
|
<a href="http://www.xe.com/" target="_blank"><u>Click nere to check Today's Foreign Exchange value</u></a>
|
||||||
</div>-->
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="border: 1px solid;padding:0px;margin: 10px 0px;">
|
||||||
<br />
|
<br>
|
||||||
<div class="form-group col-md-6" style="padding:0px;">
|
<div class="form-group col-md-6" style="padding:15px;">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
Basic Price (<?php echo $INR ?>)
|
Basic Price (<?php echo $INR ?>)
|
||||||
@ -2697,21 +2619,14 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewLandingCharge', 'value' => set_value('ViewLandingCharge'), 'id' => 'ViewLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateloadingcharge()');
|
||||||
$data = array('name' => 'ViewLandingCharge', 'value' => set_value('ViewLandingCharge'), 'id' => 'ViewLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateloadingcharge()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -2759,9 +2674,6 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<!-- Custom ED_cess : (e) -->
|
<!-- Custom ED_cess : (e) -->
|
||||||
@ -2769,18 +2681,14 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewCustomEDcess', 'value' => set_value('ViewCustomEDcess'), 'id' => 'ViewCustomEDcess', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateCustomEdcess()');
|
||||||
$data = array('name' => 'ViewCustomEDcess', 'value' => set_value('ViewCustomEDcess'), 'id' => 'ViewCustomEDcess', 'readonly' => true, 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateCustomEdcess()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -2799,15 +2707,13 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6" style="padding:0px;">
|
<div class="form-group col-md-6" style="padding:15px;">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<!-- Additional Excise duty : (g) -->
|
<!-- Additional Excise duty : (g) -->
|
||||||
@ -2815,25 +2721,17 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div style="display: none;">
|
<div style="display: none;">
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAdditionalExciseduty ', 'value' => set_value('ViewAdditionalExciseduty'), 'id' => 'ViewAdditionalExciseduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => true, 'onchange' => 'EditCalculateaddlExciseDuty(),EditCalculateAvlModvat(),EditCalculateGrossExpense()');
|
||||||
$data = array('name' => 'ViewAdditionalExciseduty ', 'value' => set_value('ViewAdditionalExciseduty'), 'id' => 'ViewAdditionalExciseduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => true, 'onchange' => 'EditCalculateaddlExciseDuty(),EditCalculateAvlModvat(),EditCalculateGrossExpense()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewSubtotal', 'value' => set_value('ViewSubtotal'), 'id' => 'ViewSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewSubtotal', 'value' => set_value('ViewSubtotal'), 'id' => 'ViewSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<!-- Additional Excise duty : (g) -->
|
<!-- Additional Excise duty : (g) -->
|
||||||
@ -2841,28 +2739,17 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewIgst ', 'value' => set_value('ViewIgst', 0), 'id' => 'ViewIgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true', 'onchange' => 'EditCalculateIgst()');
|
||||||
$data = array('name' => 'ViewIgst ', 'value' => set_value('ViewIgst', 0), 'id' => 'ViewIgst', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true', 'onchange' => 'EditCalculateIgst()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst', 0), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst', 0), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-8">
|
<div class="form-group col-md-8">
|
||||||
<!-- Gross duty payable -->
|
<!-- Gross duty payable -->
|
||||||
@ -2870,105 +2757,65 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewGrossdutypayable ', 'value' => set_value('ViewGrossdutypayable'), 'id' => 'ViewGrossdutypayable', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);');
|
||||||
$data = array('name' => 'ViewGrossdutypayable ', 'value' => set_value('ViewGrossdutypayable'), 'id' => 'ViewGrossdutypayable', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!--Start of Adding of Frieght model-->
|
<!--Start of Adding of Frieght model-->
|
||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Type </span>
|
<span>Freight Type </span>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
echo form_dropdown('drpviewFreight', $options, set_value('drpviewFreight'), 'id="drpviewFreight" class="form-control " disabled'); ?>
|
||||||
echo form_dropdown('drpviewFreight', $options, set_value('drpviewFreight'), 'id="drpviewFreight" class="form-control "');
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="ViewTripsValue" style="display:block;">
|
<div class="form-group col-md-3" id="ViewTripsValue" style="display:block;">
|
||||||
<span>NO Of Trips</span>
|
<span>NO Of Trips</span>
|
||||||
<div>
|
<?php $data = array('name' => 'viewNOOfTrips', 'value' => set_value('viewNOOfTrips'), 'id' => 'viewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);', 'disabled' => 'disabled');
|
||||||
<?php
|
echo form_input($data); ?>
|
||||||
$data = array('name' => 'viewNOOfTrips', 'value' => set_value('viewNOOfTrips'), 'id' => 'viewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<span>Freight Rate </span>
|
<span>Freight Rate </span>
|
||||||
<div>
|
<?php $data = array('name' => 'viewtxtFreight', 'value' => set_value('viewtxtFreight'), 'id' => 'viewtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);', 'readonly' => 'true');
|
||||||
<?php
|
echo form_input($data); ?>
|
||||||
$data = array('name' => 'viewtxtFreight', 'value' => set_value('viewtxtFreight'), 'id' => 'viewtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);');
|
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<span>Freight Amt In <?php echo $INR; ?></span>
|
<span>Freight Amt In <?php echo $INR; ?></span>
|
||||||
<div>
|
<?php $data = array('name' => 'viewtxtAfterFreight', 'value' => set_value('viewtxtAfterFreight'), 'id' => 'viewtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
<?php
|
echo form_input($data); ?>
|
||||||
$data = array('name' => 'viewtxtAfterFreight', 'value' => set_value('viewtxtAfterFreight'), 'id' => 'viewtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<center> <label>Cost of the product Per KG</label></center>
|
<center> <label>Cost of the product Per KG</label></center>
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-6">
|
||||||
Duty Impact
|
<label>Duty Impact</label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewDutyImpact', 'value' => set_value('ViewDutyImpact'), 'id' => 'ViewDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewDutyImpact', 'value' => set_value('ViewDutyImpact'), 'id' => 'ViewDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4" style="margin-top: -4.8%">
|
<div class="form-group col-md-6">
|
||||||
<span>Quantity</span>
|
<label>Quantity</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php $data = array('name' => 'ViewPurQuantity', 'value' => set_value('ViewPurQuantity'), 'id' => 'ViewPurQuantity', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateCtable()');
|
||||||
$data = array('name' => 'ViewPurQuantity', 'value' => set_value('ViewPurQuantity'), 'id' => 'ViewPurQuantity', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateCtable()');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-6">
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<!-- Custom Duty Expenses -->
|
|
||||||
<label><?php echo "Custom Duty($INR) /UOM" ?></label>
|
<label><?php echo "Custom Duty($INR) /UOM" ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewCustomDutyExpenses ', 'value' => set_value('ViewCustomDutyExpenses'), 'id' => 'ViewCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'ViewCustomDutyExpenses ', 'value' => set_value('ViewCustomDutyExpenses'), 'id' => 'ViewCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -2976,14 +2823,11 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-6">
|
||||||
<!-- RMC Including Customers -->
|
<!-- RMC Including Customers -->
|
||||||
<label><?php echo "Clearing Charges ($INR)"; ?></label>
|
<label><?php echo "Clearing Charges ($INR)"; ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewClearingCharges', 'value' => set_value('ViewClearingCharges'), 'id' => 'ViewClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'ViewClearingCharges', 'value' => set_value('ViewClearingCharges'), 'id' => 'ViewClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -2991,15 +2835,9 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<!-- RMC Including Customers -->
|
<!-- RMC Including Customers -->
|
||||||
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -3007,51 +2845,32 @@ if (!empty($getlogpodtl)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="display:none;">
|
<div class="form-group col-md-4" style="display:none;">
|
||||||
<!-- Total Amount: -->
|
<!-- Total Amount: -->
|
||||||
<label id=labelViewTotalAmount>Total Amount</label>
|
<label id=labelViewTotalAmount>Total Amount</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<div style="display:none;">
|
<div style="display:none;">
|
||||||
<?php
|
<?php $data = array('name' => 'ViewTotalExp', 'value' => set_value('ViewTotalExp'), 'id' => 'ViewTotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
$data = array('name' => 'ViewTotalExp', 'value' => set_value('ViewTotalExp'), 'id' => 'ViewTotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
echo form_input($data); ?>
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-row" style="margin-bottom: 10px;">
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<label>Import Description :</label>
|
<label>Import Description :</label>
|
||||||
<?php
|
<?php $data = array('name' => 'viewtxtInstruction', 'value' => set_value('viewtxtInstruction'), 'id' => 'viewtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
||||||
$data = array('name' => 'viewtxtInstruction', 'value' => set_value('viewtxtInstruction'), 'id' => 'viewtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
echo form_textarea($data); ?>
|
||||||
echo form_textarea($data);
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<!-- <a class="btn btn-success font EditImport" ID="EditImport" ><i class="fa fa-plus" ></i> <span class="bold">Edit Import</span></a> -->
|
<!-- <a class="btn btn-success font EditImport" ID="EditImport" ><i class="fa fa-plus" ></i> <span class="bold">Edit Import</span></a> -->
|
||||||
<!--<a class="btn btn-success font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
<!--<a class="btn btn-success font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
<a class="btn btn-success font UpdateImport" ID="UpdateImport"> <span class="bold">Update</span></a>
|
<!-- <a class="btn btn-success font UpdateImport" ID="UpdateImport"> <span class="bold">Update</span></a> -->
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -5601,12 +5420,19 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
$('#drpviewFreight').change(function() {
|
$('#drpviewFreight').change(function() {
|
||||||
var FreightType = $('#drpviewFreight').val();
|
var FreightType = $('#drpviewFreight').val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#ViewTripsValue').show();
|
$('#ViewTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#viewNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#viewtxtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#viewtxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#ViewTripsValue').hide();
|
$('#ViewTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#viewNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#viewtxtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#viewtxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#viewNOOfTrips').val('');
|
$('#viewNOOfTrips').val('');
|
||||||
@ -5636,16 +5462,20 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#drpeditFreight').change(function() {
|
$('#drpeditFreight').change(function() {
|
||||||
var FreightType = $('#drpeditFreight').val();
|
var FreightType = $('#drpeditFreight').val();
|
||||||
|
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#editNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#edittxtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#edittxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#editNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#edittxtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#edittxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$('#editNOOfTrips').val('');
|
$('#editNOOfTrips').val('');
|
||||||
$('#edittxtFreight').val('');
|
$('#edittxtFreight').val('');
|
||||||
$('#edittxtAfterFreight').val('');
|
$('#edittxtAfterFreight').val('');
|
||||||
@ -5678,16 +5508,22 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#drpaddFreight').change(function() {
|
$('#drpaddFreight').change(function() {
|
||||||
//alert();
|
//alert();
|
||||||
var FreightType = $('#drpaddFreight').val();
|
var FreightType = $('#drpaddFreight').val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#AddTripsValue').show();
|
$('#AddTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#addNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#addtxtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#addtxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#AddTripsValue').hide();
|
$('#AddTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#addNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#addtxtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#addtxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($('#Rate').val() != '' && $('#MaterialCode').val() != "0") {
|
if ($('#Rate').val() != '' && $('#MaterialCode').val() != "0") {
|
||||||
selValue = $("#drpaddFreight").val();
|
selValue = $("#drpaddFreight").val();
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
|
|||||||
@ -747,8 +747,18 @@ td {
|
|||||||
if ($("#drpMaterial option:selected").val() == '-1') {
|
if ($("#drpMaterial option:selected").val() == '-1') {
|
||||||
alert('Please Select the MaterialCode ');
|
alert('Please Select the MaterialCode ');
|
||||||
}
|
}
|
||||||
|
var drpMaterial = document.getElementById('drpMaterial').value;
|
||||||
|
|
||||||
|
if (drpMaterial == 0) {
|
||||||
|
$('#drpMaterial').focus();
|
||||||
|
$('#drpMaterial').select2('open');
|
||||||
|
alert('Please Select the Material');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
var qty = parseInt(document.getElementById('Quantity').value);
|
var qty = parseInt(document.getElementById('Quantity').value);
|
||||||
if (isNaN(qty) || qty < 1) {
|
if (isNaN(qty) || qty < 1) {
|
||||||
|
$('#Quantity').focus();
|
||||||
|
$('#Quantity').click();
|
||||||
alert('Please Enter the Vaild Quantity');
|
alert('Please Enter the Vaild Quantity');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -773,13 +783,13 @@ td {
|
|||||||
index = parseInt(index) + 1;
|
index = parseInt(index) + 1;
|
||||||
|
|
||||||
var rowHtml = `<tr id="${temp}">
|
var rowHtml = `<tr id="${temp}">
|
||||||
<td align="left">${temp}</td>
|
<td align="center">${temp}</td>
|
||||||
<td align="left">${materialCode}</td>
|
<td align="center">${materialCode}</td>
|
||||||
<td align="left">${materialName}</td>
|
<td align="center">${materialName}</td>
|
||||||
<td align="left">${uom}</td>
|
<td align="center">${uom}</td>
|
||||||
<td align="left">${quantity}</td>
|
<td align="center">${quantity}</td>
|
||||||
<td align="left">0.00</td>
|
<td align="center">0.00</td>
|
||||||
<td align="left">NEW</td>
|
<td align="center">NEW</td>
|
||||||
<td>
|
<td>
|
||||||
<a data-id="${temp}" data-userid="${temp}" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal">
|
<a data-id="${temp}" data-userid="${temp}" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal">
|
||||||
<i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the ${materialCode} Material details"></i>
|
<i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the ${materialCode} Material details"></i>
|
||||||
|
|||||||
@ -538,7 +538,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
<label>Exchange Rate On</label>
|
<label>Exchange Rate On</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $CurrentDate), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;');
|
$data = array('name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $CurrentDate), 'id' => 'Exchangerateon', 'class' => 'form-control num date_range form-date-search', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -899,7 +899,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||||
|
|
||||||
<input type="hidden" name="Budget" id="Budget" />
|
<input type="hidden" name="Budget" id="Budget" />
|
||||||
<input type="reset" class="btn btn-success" value="Reset" onclick="window.location.reload()">
|
<input type="reset" class="btn btn-success" value="Reset" onclick="window.location.reload()" style="margin-right: 15px;">
|
||||||
|
|
||||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">
|
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">
|
||||||
<span class="bold">Submit</span>
|
<span class="bold">Submit</span>
|
||||||
@ -1339,53 +1339,38 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="padding-left: 0px;">
|
<div class="form-group col-md-4" style="padding-left: 0px;">
|
||||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1397,11 +1382,8 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-6">
|
||||||
<label>Duty Impact</label>
|
<label>Duty Impact</label>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DutyImpact', 'value' => set_value('DutyImpact', 0), 'id' => 'DutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'DutyImpact', 'value' => set_value('DutyImpact', 0), 'id' => 'DutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -1409,7 +1391,8 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4" style="margin-top: -4.8%">
|
|
||||||
|
<div class="form-group col-md-6">
|
||||||
<label>Quantity</label>
|
<label>Quantity</label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
@ -1423,11 +1406,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-6">
|
||||||
<!-- Custom Duty Expenses -->
|
<!-- Custom Duty Expenses -->
|
||||||
<label><?php echo "Custom Duty($INR)/UOM"; ?></label>
|
<label><?php echo "Custom Duty($INR)/UOM"; ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'CustomDutyExpenses ', 'value' => set_value('CustomDutyExpenses', 0), 'id' => 'CustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'CustomDutyExpenses ', 'value' => set_value('CustomDutyExpenses', 0), 'id' => 'CustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -1439,11 +1420,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row mt-2">
|
<div class="form-row mt-2">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-6">
|
||||||
<!-- RMC Including Customers -->
|
<!-- RMC Including Customers -->
|
||||||
<label><?php echo "Clearing Charges($INR)"; ?></label>
|
<label><?php echo "Clearing Charges($INR)"; ?></label>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ClearingCharges', 'value' => set_value('ClearingCharges', 0), 'id' => 'ClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'CalculateCtable()');
|
$data = array('name' => 'ClearingCharges', 'value' => set_value('ClearingCharges', 0), 'id' => 'ClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'CalculateCtable()');
|
||||||
@ -1452,8 +1431,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-6">
|
||||||
<div class="form-group col-md-4" style="margin-top: -4.8%">
|
|
||||||
<!-- RMC Including Customers -->
|
<!-- RMC Including Customers -->
|
||||||
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
||||||
<div>
|
<div>
|
||||||
@ -1464,16 +1442,16 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-12">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-6" style="display: none;">
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="display:none;">
|
|
||||||
<!-- Total Amount: -->
|
<!-- Total Amount: -->
|
||||||
|
|
||||||
<label id=labelTotalAmount>Total Amount</label>
|
<label id=labelTotalAmount>Total Amount</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4" style="display: none;">
|
<div class="form-group col-md-6" style="display: none;">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'TotalExp', 'value' => set_value('TotalExp', 0), 'id' => 'TotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
$data = array('name' => 'TotalExp', 'value' => set_value('TotalExp', 0), 'id' => 'TotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||||
@ -1491,7 +1469,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="margin-top:10px;">
|
<div class="form-group col-md-11" style="margin-top:10px;">
|
||||||
<label>Import Description </label>
|
<label>Import Description </label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'addtxtInstruction', 'value' => set_value('addtxtInstruction'), 'id' => 'addtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
$data = array('name' => 'addtxtInstruction', 'value' => set_value('addtxtInstruction'), 'id' => 'addtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
||||||
@ -1924,54 +1902,39 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
<div class="form-row" style="padding:0px;">
|
<div class="form-row" style="padding:0px;">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3" id="editTripsValue" style="display:none;">
|
<div class="form-group col-md-3" id="editTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--End of Adding of freight in edit model -->
|
<!--End of Adding of freight in edit model -->
|
||||||
@ -2108,6 +2071,10 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
// for delivey date and scheduled
|
// for delivey date and scheduled
|
||||||
//alert();
|
//alert();
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setTimeout(() => {
|
||||||
|
$('#Exchangerateon').addClass('date_range form-date-search');
|
||||||
|
|
||||||
|
}, 1000);
|
||||||
$('#Date').click(function() {
|
$('#Date').click(function() {
|
||||||
//for Date range selection
|
//for Date range selection
|
||||||
$('#Schedulediv').hide();
|
$('#Schedulediv').hide();
|
||||||
@ -4203,27 +4170,39 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
});
|
});
|
||||||
$('#drpFreight').change(function() {
|
$('#drpFreight').change(function() {
|
||||||
var FreightType = $('#drpFreight').val();
|
var FreightType = $('#drpFreight').val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#drpeditFreight').change(function() {
|
$('#drpeditFreight').change(function() {
|
||||||
var FreightType = $('#drpeditFreight').val();
|
var FreightType = $('#drpeditFreight').val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#editTripsValue').show();
|
$('#editTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#editNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#edittxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#editTripsValue').hide();
|
$('#editTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#editNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#edittxtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
|
|||||||
@ -341,23 +341,28 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-truncate:hover {
|
.text-truncate:hover {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-truncate.expanded {
|
.text-truncate.expanded {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This CSS is for Table Cell Expend*/
|
/* This CSS is for Table Cell Expend*/
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- loader css code start -->
|
<!-- loader css code start -->
|
||||||
<div id="loader" style="display:none;"><div class="lds-hourglass"></div></div>
|
<div id="loader" style="display:none;">
|
||||||
|
<div class="lds-hourglass"></div>
|
||||||
|
</div>
|
||||||
<style>
|
<style>
|
||||||
#loader {
|
#loader {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -397,22 +402,73 @@
|
|||||||
transform: rotate(0);
|
transform: rotate(0);
|
||||||
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: rotate(900deg);
|
transform: rotate(900deg);
|
||||||
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(1800deg);
|
transform: rotate(1800deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Style for loader background */
|
||||||
|
.loader-mask {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(255, 255, 255, 0.8);
|
||||||
|
/* Semi-transparent background */
|
||||||
|
z-index: 9999;
|
||||||
|
/* Ensure it stays on top */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
/* Center horizontally */
|
||||||
|
align-items: center;
|
||||||
|
/* Center vertically */
|
||||||
|
visibility: visible;
|
||||||
|
/* Loader will be shown initially */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Loader image styles */
|
||||||
|
.loader {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide the loader by default after the page loads */
|
||||||
|
body.loaded .loader-mask {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
transition: visibility 0s 0.3s, opacity 0.3s ease;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<!-- loader css code end -->
|
<!-- loader css code end -->
|
||||||
|
<script>
|
||||||
|
// window.addEventListener('load', function() {
|
||||||
|
// document.body.classList.add('loaded');
|
||||||
|
// });
|
||||||
|
$(window).on('load', function() {
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').fadeOut('slow');
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
|
||||||
|
// $('.loader').fadeIn();
|
||||||
|
// $('.loader-mask').fadeIn();
|
||||||
|
|
||||||
|
// $('.loader').fadeOut();
|
||||||
|
// $('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'>
|
<body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'>
|
||||||
|
|
||||||
<!-- Begin page -->
|
<!-- Begin page -->
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|
||||||
|
|||||||
@ -241,7 +241,7 @@
|
|||||||
<?php echo $record->Designation; ?>
|
<?php echo $record->Designation; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px"><?php echo $record->NoofDays; ?></td>
|
<td style="max-width:80px;text-align:center;"><?php echo $record->NoofDays; ?></td>
|
||||||
|
|
||||||
<td id="dayWork<?php echo $index ?>"
|
<td id="dayWork<?php echo $index ?>"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
@ -262,8 +262,8 @@
|
|||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->LOP_Days)) {
|
<?php if (!empty($record->LOP_Days)) {
|
||||||
echo $record->LOP_Days;
|
echo $record->LOP_Days;
|
||||||
} else {
|
} else {
|
||||||
@ -276,8 +276,8 @@
|
|||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->Paid_leave)) {
|
<?php if (!empty($record->Paid_leave)) {
|
||||||
echo number_format($record->Paid_leave, 2, '.', '');
|
echo number_format($record->Paid_leave, 2, '.', '');
|
||||||
} else {
|
} else {
|
||||||
@ -290,8 +290,8 @@
|
|||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->OT_Hrs_Worked)) {
|
<?php if (!empty($record->OT_Hrs_Worked)) {
|
||||||
echo $record->OT_Hrs_Worked;
|
echo $record->OT_Hrs_Worked;
|
||||||
} else {
|
} else {
|
||||||
@ -299,44 +299,44 @@
|
|||||||
} ?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px"><?php echo $record->TotalSalary; ?></td>
|
<td style="max-width:80px;text-align:right;"><?php echo $record->TotalSalary; ?></td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $perDaySalary = $record->TotalSalary / $record->NoofDays;
|
<?php $perDaySalary = $record->TotalSalary / $record->NoofDays;
|
||||||
echo number_format($perDaySalary, 2, '.', ''); ?>
|
echo number_format($perDaySalary, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $workedSalary = $perDaySalary * ($record->Days_worked + $record->sunday_count);
|
<?php $workedSalary = $perDaySalary * ($record->Days_worked + $record->sunday_count);
|
||||||
echo number_format($workedSalary, 2, '.', ''); ?>
|
echo number_format($workedSalary, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $perHrSalary = $perDaySalary / 8;
|
<?php $perHrSalary = $perDaySalary / 8;
|
||||||
echo number_format($perHrSalary, 2); ?>
|
echo number_format($perHrSalary, 2); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
<td style="max-width:80px;text-align:right;"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $basicWorked = $workedSalary * 70 / 100;
|
<?php $basicWorked = $workedSalary * 70 / 100;
|
||||||
echo number_format($basicWorked, 2, '.', ''); ?>
|
echo number_format($basicWorked, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $hraWorked = $workedSalary * 30 / 100;
|
<?php $hraWorked = $workedSalary * 30 / 100;
|
||||||
echo number_format($hraWorked, 2, '.', ''); ?>
|
echo number_format($hraWorked, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?>
|
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="esiAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $esi[$i]; ?> </td>
|
<td id="esiAmt<?php echo $index ?>" style="max-width:80px;text-align:right;"> <?php echo $esi[$i]; ?> </td>
|
||||||
|
|
||||||
<td id="pfAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $pf[$i]; ?> </td>
|
<td id="pfAmt<?php echo $index ?>" style="max-width:80px;text-align:right;"> <?php echo $pf[$i]; ?> </td>
|
||||||
|
|
||||||
<td style="max-width:80px"> <?php echo $over_time[$i]; ?> </td>
|
<td style="max-width:80px;text-align:right;"> <?php echo $over_time[$i]; ?> </td>
|
||||||
|
|
||||||
<td id="monthDue<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
<td id="monthDue<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
||||||
<?php if (empty($record->Key)) { echo "contenteditable='true';"; } ?>
|
<?php if (empty($record->Key)) { echo "contenteditable='true';"; } ?>
|
||||||
@ -394,7 +394,7 @@
|
|||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;" <?php } ?>>
|
style="text-align:right;color:blue;" <?php }else{ ?>style="text-align:right;" <?php } ?>>
|
||||||
<?php if (!empty($record->Estimate)) {
|
<?php if (!empty($record->Estimate)) {
|
||||||
echo $record->Estimate;
|
echo $record->Estimate;
|
||||||
$estTotal[] = $record->Estimate;
|
$estTotal[] = $record->Estimate;
|
||||||
@ -462,20 +462,19 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="20"></th>
|
<th colspan="20"></th>
|
||||||
|
|
||||||
|
|
||||||
<th>Total</th>
|
<th>Total</th>
|
||||||
|
<th id="monthloan" style="text-align:right;">
|
||||||
<th id="monthloan">
|
|
||||||
<?php echo isset($totalmonthloan) ? array_sum($totalmonthloan) : ''; ?>
|
<?php echo isset($totalmonthloan) ? array_sum($totalmonthloan) : ''; ?>
|
||||||
</th>
|
</th>
|
||||||
|
<th id="other" style="text-align:right;">
|
||||||
<th id="other">
|
<?php echo isset($totalotherDet) ? array_sum($totalotherDet) : ''; ?>
|
||||||
<?php echo isset($totalotherDet) ? array_sum($totalotherDet) : ''; ?></th>
|
</th>
|
||||||
<th id="fest">
|
<th id="fest" style="text-align:right;">
|
||||||
<?php echo isset($totalfestival) ? array_sum($totalfestival) : ''; ?></th>
|
<?php echo isset($totalfestival) ? array_sum($totalfestival) : ''; ?>
|
||||||
<th id="estsal"><?php echo isset($estTotal) ? array_sum($estTotal) : ''; ?></th>
|
</th>
|
||||||
|
<th id="estsal" style="text-align:right;">
|
||||||
|
<?php echo isset($estTotal) ? array_sum($estTotal) : ''; ?>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,3 +1,35 @@
|
|||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#freightcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#freightcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#freightcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#freightcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#packagingcalmodel').on('show.bs.modal', function() {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||||
|
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<?php $ReqType = '';
|
<?php $ReqType = '';
|
||||||
$CompanyAddress = '';
|
$CompanyAddress = '';
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
@ -469,7 +501,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
selValue = $("#PackagingType").val();
|
selValue = $("#PackagingType").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#REVENUE').modal('hide');
|
// $('#REVENUE').modal('hide');
|
||||||
edit = 'PackingCalculationOn';
|
edit = 'PackingCalculationOn';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
$('#txtPackaging').removeAttr('readonly', 'true');
|
$('#txtPackaging').removeAttr('readonly', 'true');
|
||||||
@ -507,7 +539,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
selValue = $("#EditPackagingType").val();
|
selValue = $("#EditPackagingType").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#EDITREVENUE').modal('hide');
|
// $('#EDITREVENUE').modal('hide');
|
||||||
edit = 'EditPackingCalculationOn';
|
edit = 'EditPackingCalculationOn';
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
$('#txtEditPackaging').removeAttr('readonly', 'true');
|
$('#txtEditPackaging').removeAttr('readonly', 'true');
|
||||||
@ -621,10 +653,19 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var freight = '';
|
var freight = '';
|
||||||
$('#drpFreight').change(function() {
|
$('#drpFreight').change(function() {
|
||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#edittxtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#NOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
if ($('#Rate').val() != '' && $('#MaterialCode').val() != "0") {
|
if ($('#Rate').val() != '' && $('#MaterialCode').val() != "0") {
|
||||||
selValue = $("#drpFreight").val();
|
selValue = $("#drpFreight").val();
|
||||||
@ -632,7 +673,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#txtAfterFreight').val('');
|
$('#txtAfterFreight').val('');
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
var freightCalculation = '';
|
var freightCalculation = '';
|
||||||
$('#REVENUE').modal('hide');
|
// $('#REVENUE').modal('hide');
|
||||||
freight = 'FreightCalculationOn';
|
freight = 'FreightCalculationOn';
|
||||||
$('#freightcalmodel').modal('show');
|
$('#freightcalmodel').modal('show');
|
||||||
//$('#freightcalmodel').modal('blur');
|
//$('#freightcalmodel').modal('blur');
|
||||||
@ -665,10 +706,19 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
$('#drpEditFreight').change(function() {
|
$('#drpEditFreight').change(function() {
|
||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
|
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
||||||
} else {
|
} else {
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
|
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#EditNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
|
$('#txtEditAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
||||||
}
|
}
|
||||||
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
if ($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0") {
|
||||||
selValue = $("#drpEditFreight").val();
|
selValue = $("#drpEditFreight").val();
|
||||||
@ -678,7 +728,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var FreightCalculation = '';
|
var FreightCalculation = '';
|
||||||
// $('#freight').modal('show');
|
// $('#freight').modal('show');
|
||||||
freight = 'EditFreightCalculationOn';
|
freight = 'EditFreightCalculationOn';
|
||||||
$('#EDITREVENUE').modal('hide');
|
// $('#EDITREVENUE').modal('hide');
|
||||||
$('#freightcalmodel').modal('show');
|
$('#freightcalmodel').modal('show');
|
||||||
$('#txtEditFreight').removeAttr('readonly', 'true');
|
$('#txtEditFreight').removeAttr('readonly', 'true');
|
||||||
//Editchange();
|
//Editchange();
|
||||||
@ -2568,43 +2618,30 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="form-group col-md-4"></div>
|
<div class="form-group col-md-4"></div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change();');
|
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<?php
|
<?php
|
||||||
@ -2922,53 +2959,38 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="col-md-4"></div>
|
<div class="col-md-4"></div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
<div>
|
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
//print_r( $options);
|
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID) :
|
foreach ($FreightType as $SID) :
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-8"></div>
|
<div class="form-group col-md-8"></div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
|
|||||||
BIN
public/new_assets/images/loader.gif
Normal file
BIN
public/new_assets/images/loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
0
public/spinner.gif → public/new_assets/images/spinner.gif
Executable file → Normal file
0
public/spinner.gif → public/new_assets/images/spinner.gif
Executable file → Normal file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue
Block a user