CHANGE_SANJEEV_ISSUE_TRACK_ISSUE_CLEAR
This commit is contained in:
parent
ed0c327769
commit
8b720318c1
@ -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 -->
|
||||||
|
|||||||
@ -36,14 +36,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Custom width for the modal */
|
/* Custom width for the modal */
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
width: 100%; /* You can adjust this percentage to your needs */
|
width: 100%;
|
||||||
max-width: 1200px; /* Optional: This ensures the modal doesn't grow too large on large screens */
|
/* You can adjust this percentage to your needs */
|
||||||
|
max-width: 1200px;
|
||||||
|
/* Optional: This ensures the modal doesn't grow too large on large screens */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure content inside the modal scales properly */
|
/* Ensure content inside the modal scales properly */
|
||||||
@ -52,7 +50,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.txtSpcialInstruction{
|
.txtSpcialInstruction {
|
||||||
background-color: #f4f9fb;
|
background-color: #f4f9fb;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +177,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var RequistQuantity = '';
|
var RequistQuantity = '';
|
||||||
var IsEdit = '0';
|
var IsEdit = '0';
|
||||||
|
|
||||||
$(function () {
|
$(function() {
|
||||||
|
|
||||||
|
|
||||||
// $("#PODate").datepicker({
|
// $("#PODate").datepicker({
|
||||||
@ -346,7 +344,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}); */
|
}); */
|
||||||
/* Revenue Tax calcualation */
|
/* Revenue Tax calcualation */
|
||||||
|
|
||||||
$('#DiscountType').change(function () {
|
$('#DiscountType').change(function() {
|
||||||
selValue = $("#DiscountType").val();
|
selValue = $("#DiscountType").val();
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
$('#txtAfterDiscount').val('');
|
$('#txtAfterDiscount').val('');
|
||||||
@ -365,7 +363,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
change();
|
change();
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#EditDiscountType').change(function () {
|
$('#EditDiscountType').change(function() {
|
||||||
if ($('#EditRevenueRate').val() != '' && $('#EditRevenueMaterialCode').val() != "0") {
|
if ($('#EditRevenueRate').val() != '' && $('#EditRevenueMaterialCode').val() != "0") {
|
||||||
selValue = $("#EditDiscountType").val();
|
selValue = $("#EditDiscountType").val();
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
@ -393,7 +391,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#PackagingType').change(function () {
|
$('#PackagingType').change(function() {
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
$('#txtAfterPackaging').val('');
|
$('#txtAfterPackaging').val('');
|
||||||
selValue = $("#PackagingType").val();
|
selValue = $("#PackagingType").val();
|
||||||
@ -402,8 +400,6 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#REVENUE').modal('hide');
|
$('#REVENUE').modal('hide');
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
$('#txtPackaging').removeAttr('readonly', 'true');
|
$('#txtPackaging').removeAttr('readonly', 'true');
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (selValue == NilType) {
|
if (selValue == NilType) {
|
||||||
|
|
||||||
@ -418,7 +414,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
//change();
|
//change();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#EditPackagingType').change(function () {
|
$('#EditPackagingType').change(function() {
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
$('#txtEditAfterPackaging').val('');
|
$('#txtEditAfterPackaging').val('');
|
||||||
selValue = $("#EditPackagingType").val();
|
selValue = $("#EditPackagingType").val();
|
||||||
@ -440,14 +436,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
//change();
|
//change();
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#txtExciseDuty').change(function () {
|
$('#txtExciseDuty').change(function() {
|
||||||
|
|
||||||
if (ExciseCalculation == '') {
|
if (ExciseCalculation == '') {
|
||||||
$('#ExciseDutyCalModel').modal('show');
|
$('#ExciseDutyCalModel').modal('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#txtVat').change(function () {
|
$('#txtVat').change(function() {
|
||||||
|
|
||||||
/* if(VatCalculation == '')
|
/* if(VatCalculation == '')
|
||||||
{
|
{
|
||||||
@ -456,25 +452,31 @@ if (!empty($INRSYMBOL)) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#txtCST').change(function () {
|
$('#txtCST').change(function() {
|
||||||
|
|
||||||
if (CSTCalculation == '') {
|
if (CSTCalculation == '') {
|
||||||
$('#CSTCalModel').modal('hide');
|
$('#CSTCalModel').modal('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#drpEditFreight').change(function () {
|
$('#drpEditFreight').change(function() {
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$('#txtEditAfterFreight').val('');
|
$('#txtEditAfterFreight').val('');
|
||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
// selValue = $("#drpFreight").val() ;
|
// selValue = $("#drpFreight").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 (FreightType == PercentageType) {
|
if (FreightType == PercentageType) {
|
||||||
var freightCalculation = '';
|
var freightCalculation = '';
|
||||||
@ -496,15 +498,21 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
//add //
|
//add //
|
||||||
$('#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');
|
||||||
}
|
}
|
||||||
|
|
||||||
selValue = $("#drpFreight").val();
|
selValue = $("#drpFreight").val();
|
||||||
@ -1904,11 +1912,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
$('#ServiceMaterialCode').change(function () {
|
$('#ServiceMaterialCode').change(function() {
|
||||||
var selectedMaterialCode = '';
|
var selectedMaterialCode = '';
|
||||||
selectedMaterialCode = $("#ServiceMaterialCode").val();
|
selectedMaterialCode = $("#ServiceMaterialCode").val();
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (selectedMaterialCode == value.MaterialCode) {
|
if (selectedMaterialCode == value.MaterialCode) {
|
||||||
$("#ServiceDescription").val(value.MaterialName);
|
$("#ServiceDescription").val(value.MaterialName);
|
||||||
$("#ServiceUOM").val(value.UOM);
|
$("#ServiceUOM").val(value.UOM);
|
||||||
@ -1933,7 +1941,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
supplierid: d,
|
supplierid: d,
|
||||||
materialcode: selectedMaterialCode
|
materialcode: selectedMaterialCode
|
||||||
},
|
},
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
if (response) alert(response);
|
if (response) alert(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1942,7 +1950,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
let materialData;
|
let materialData;
|
||||||
|
|
||||||
|
|
||||||
$('#purpose').on('change', function () {
|
$('#purpose').on('change', function() {
|
||||||
console.log("purpose first");
|
console.log("purpose first");
|
||||||
|
|
||||||
$('#POType').val(this.value);
|
$('#POType').val(this.value);
|
||||||
@ -2028,7 +2036,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
url: "<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
console.log("4444444444444444");
|
console.log("4444444444444444");
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
@ -2044,7 +2052,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#ServiceMaterialCode').empty();
|
$('#ServiceMaterialCode').empty();
|
||||||
$("#ServiceMaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
$("#ServiceMaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
||||||
|
|
||||||
$.each(JSON.parse(data), function (index, value) {
|
$.each(JSON.parse(data), function(index, value) {
|
||||||
$("#ServiceMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
$("#ServiceMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||||
|
|
||||||
|
|
||||||
@ -2055,7 +2063,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#MaterialCode').empty();
|
$('#MaterialCode').empty();
|
||||||
$("#MaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
$("#MaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
||||||
|
|
||||||
$.each(JSON.parse(data), function (index, value) {
|
$.each(JSON.parse(data), function(index, value) {
|
||||||
$("#MaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
$("#MaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||||
|
|
||||||
|
|
||||||
@ -2088,7 +2096,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
||||||
@ -2114,7 +2122,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/**
|
/**
|
||||||
* getting item name and uom using global variable materialData each change in revenue
|
* getting item name and uom using global variable materialData each change in revenue
|
||||||
*/
|
*/
|
||||||
$('#MaterialCode').on('change', function () {
|
$('#MaterialCode').on('change', function() {
|
||||||
console.log("111111111111");
|
console.log("111111111111");
|
||||||
|
|
||||||
// $('#MaterialCode').change(function() {
|
// $('#MaterialCode').change(function() {
|
||||||
@ -2122,7 +2130,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
selectedRevenueMaterialCode = $("#MaterialCode").val();
|
selectedRevenueMaterialCode = $("#MaterialCode").val();
|
||||||
console.log(materialData);
|
console.log(materialData);
|
||||||
console.log("materialData - 1111111");
|
console.log("materialData - 1111111");
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (selectedRevenueMaterialCode == value.MaterialCode) {
|
if (selectedRevenueMaterialCode == value.MaterialCode) {
|
||||||
$("#ItemName").val(value.MaterialName);
|
$("#ItemName").val(value.MaterialName);
|
||||||
$("#UOM").val(value.UOM);
|
$("#UOM").val(value.UOM);
|
||||||
@ -2138,7 +2146,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
supplierid: d,
|
supplierid: d,
|
||||||
materialcode: selectedRevenueMaterialCode
|
materialcode: selectedRevenueMaterialCode
|
||||||
},
|
},
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
if (response) alert(response);
|
if (response) alert(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -2185,7 +2193,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
//This function is used to add material list after delete
|
//This function is used to add material list after delete
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (value.MaterialCode == materialCode) {
|
if (value.MaterialCode == materialCode) {
|
||||||
$("#MaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
$("#MaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||||
}
|
}
|
||||||
@ -2818,9 +2826,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtBasicValue',
|
$data = array(
|
||||||
'value' => set_value('txtBasicValue'), 'id' => 'txtBasicValue',
|
'name' => 'txtBasicValue',
|
||||||
'class' => 'form-control num', 'readonly' => 'true');
|
'value' => set_value('txtBasicValue'),
|
||||||
|
'id' => 'txtBasicValue',
|
||||||
|
'class' => 'form-control num',
|
||||||
|
'readonly' => 'true'
|
||||||
|
);
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -2923,53 +2935,38 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="col-md-3"></div>
|
<div class="col-md-3"></div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Type <span class="badge mandatory"></label>
|
<label>Freight Type <span class="badge mandatory"></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="col-md-3" id="TripsValue" style="display:none;">
|
<div class="col-md-3" id="TripsValue" style="display:none;">
|
||||||
<label>NO Of Trips<span class="badge mandatory"></label>
|
<label>NO Of Trips<span class="badge mandatory"></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="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Rate <span class="badge mandatory"></label>
|
<label>Freight Rate <span class="badge mandatory"></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' => 'calculateFreight(0);change();');
|
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);change();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6"></div>
|
<div class="col-md-6"></div>
|
||||||
@ -3074,8 +3071,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label><?php echo "Revenue Description"; ?></label>
|
<label><?php echo "Revenue Description"; ?></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Add_Service_Description', 'value' => set_value('Add_Service_Description'), 'id' => 'Add_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
$data = array('name' => 'Add_Service_Description', 'value' => set_value('Add_Service_Description'), 'id' => 'Add_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||||
echo form_textarea($data);
|
echo form_textarea($data);;
|
||||||
;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -4377,7 +4373,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row " id="potaxes" style="display:none;" >
|
<div class="row " id="potaxes" style="display:none;">
|
||||||
<div class="col-md-12 p-4">
|
<div class="col-md-12 p-4">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -4608,8 +4604,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
|
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
|
||||||
style="display: none;">
|
style="display: none;">
|
||||||
<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">Packing Calculation On <span id="WeightTitle"></span></h4>
|
<h4 class="modal-title">Packing Calculation On <span id="WeightTitle"></span></h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
@ -4684,7 +4679,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog" aria-labelledby="myModalLabel">
|
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog" aria-labelledby="myModalLabel">
|
||||||
<div class="modal-dialog modal-dialog-scrollable " role="document">
|
<div class="modal-dialog modal-dialog-scrollable " role="document">
|
||||||
<!-- Modal content-->
|
<!-- Modal content-->
|
||||||
<div class="modal-content" >
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Add Bill Details</h4>
|
<h4 class="modal-title">Add Bill Details</h4>
|
||||||
</div>
|
</div>
|
||||||
@ -4728,7 +4723,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row" >
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
|
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
|
||||||
<div id="newdiv"></div><!-- this div for add more section-->
|
<div id="newdiv"></div><!-- this div for add more section-->
|
||||||
@ -4857,8 +4852,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
value="Cancel">Cancel</a>
|
value="Cancel">Cancel</a>
|
||||||
<a class="btn btn-success" ID="freightOption"
|
<a class="btn btn-success" ID="freightOption"
|
||||||
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
|
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
|
||||||
onclick="setfreightOption();"
|
onclick="setfreightOption();"><span class="bold">Ok</span></a>
|
||||||
><span class="bold">Ok</span></a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -5511,52 +5505,37 @@ 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="col-md-2" id="EditTripsValue" style="display:none;">
|
<div class="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="col-md-2">
|
<div class="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="col-md-2">
|
<div class="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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -5660,8 +5639,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label><?php echo "Revenue Description"; ?></label>
|
<label><?php echo "Revenue Description"; ?></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||||
echo form_textarea($data);
|
echo form_textarea($data);;
|
||||||
;
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -5696,10 +5674,10 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- </section> -->
|
<!-- </section> -->
|
||||||
<!-- <script type="text/html" id="RevenueList">
|
<!-- <script type="text/html" id="RevenueList">
|
||||||
<tr id="<%=index%>">
|
<tr id="<%=index%>">
|
||||||
<td align="left"><%=index%></td>
|
<td align="left"><%=index%></td>
|
||||||
<td align="left"><%=ReqNo%></td>
|
<td align="left"><%=ReqNo%></td>
|
||||||
@ -5719,14 +5697,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</script> -->
|
</script> -->
|
||||||
<script>
|
<script>
|
||||||
var index = '1';
|
var index = '1';
|
||||||
var userid = '';
|
var userid = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#BudgetType").change(function () {
|
$("#BudgetType").change(function() {
|
||||||
|
|
||||||
var aa = $("#BudgetType option:selected").text();
|
var aa = $("#BudgetType option:selected").text();
|
||||||
|
|
||||||
@ -5741,7 +5719,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('.AddRevenue').click(function () {
|
$('.AddRevenue').click(function() {
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
var basic = $('#txtBasicValue').val();
|
var basic = $('#txtBasicValue').val();
|
||||||
@ -5985,8 +5963,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
var SelectedMaterialCode = [];
|
var SelectedMaterialCode = [];
|
||||||
var CollIndex = 0;
|
var CollIndex = 0;
|
||||||
|
|
||||||
@ -6003,7 +5981,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
contentType: false,
|
contentType: false,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>purchaseorder/addNewPurchaseOrder",
|
url: "<?php echo base_url() ?>purchaseorder/addNewPurchaseOrder",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
alert(data);
|
alert(data);
|
||||||
@ -6023,7 +6001,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function() {
|
||||||
|
|
||||||
$('#TaxesTabel').DataTable({
|
$('#TaxesTabel').DataTable({
|
||||||
"paging": false,
|
"paging": false,
|
||||||
@ -6036,7 +6014,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#Deliverydt').attr({
|
$('#Deliverydt').attr({
|
||||||
'data-provide': 'datepicker',
|
'data-provide': 'datepicker',
|
||||||
@ -6080,8 +6058,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
clearTotalItemValues();
|
clearTotalItemValues();
|
||||||
});
|
});
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
$('#Local').click(function () {
|
$('#Local').click(function() {
|
||||||
//for local tax range selection
|
//for local tax range selection
|
||||||
$('#displayIGST').hide();
|
$('#displayIGST').hide();
|
||||||
$('#displaySGST').show();
|
$('#displaySGST').show();
|
||||||
@ -6092,7 +6070,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
$('#Inter_state').click(function () {
|
$('#Inter_state').click(function() {
|
||||||
//for inter state tax range selection
|
//for inter state tax range selection
|
||||||
$('#SGSTAddModel').hide();
|
$('#SGSTAddModel').hide();
|
||||||
$('#displaySGST').hide();
|
$('#displaySGST').hide();
|
||||||
@ -6103,13 +6081,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
$('#Date').click(function () {
|
$('#Date').click(function() {
|
||||||
//for Date range selection
|
//for Date range selection
|
||||||
$('#Schedulediv').hide();
|
$('#Schedulediv').hide();
|
||||||
$('#Deliverydtdiv').show();
|
$('#Deliverydtdiv').show();
|
||||||
});
|
});
|
||||||
$('#Schedule').click(function () {
|
$('#Schedule').click(function() {
|
||||||
//for schedule range selection
|
//for schedule range selection
|
||||||
$('#Deliverydtdiv').hide();
|
$('#Deliverydtdiv').hide();
|
||||||
$('#Schedulediv').show();
|
$('#Schedulediv').show();
|
||||||
@ -6118,7 +6096,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#PoTypeOptions').change(function () {
|
$('#PoTypeOptions').change(function() {
|
||||||
|
|
||||||
var potypeval = $('#PoTypeOptions').val();
|
var potypeval = $('#PoTypeOptions').val();
|
||||||
var poopt = <?php echo json_encode($PoTypeOptions, JSON_PRETTY_PRINT) ?>;
|
var poopt = <?php echo json_encode($PoTypeOptions, JSON_PRETTY_PRINT) ?>;
|
||||||
@ -6129,7 +6107,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
if (potypeval == config) {
|
if (potypeval == config) {
|
||||||
$('#PaymentMethod').empty();
|
$('#PaymentMethod').empty();
|
||||||
$.each(Payment, function (idx, obj) {
|
$.each(Payment, function(idx, obj) {
|
||||||
if (obj.PaymentID == 'PT05') {
|
if (obj.PaymentID == 'PT05') {
|
||||||
// console.log(obj.PaymentID);
|
// console.log(obj.PaymentID);
|
||||||
// console.log(obj.PaymentTerms)
|
// console.log(obj.PaymentTerms)
|
||||||
@ -6141,7 +6119,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.each(Payment, function (idx, obj) {
|
$.each(Payment, function(idx, obj) {
|
||||||
if (obj.PaymentID == 'PT05') {
|
if (obj.PaymentID == 'PT05') {
|
||||||
|
|
||||||
|
|
||||||
@ -6155,9 +6133,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#drpSupplier').on('change', function () {
|
$('#drpSupplier').on('change', function() {
|
||||||
|
|
||||||
var id = $('#drpSupplier').val();
|
var id = $('#drpSupplier').val();
|
||||||
$("#SupAddress").val('');
|
$("#SupAddress").val('');
|
||||||
@ -6165,7 +6143,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
if (id != '0') {
|
if (id != '0') {
|
||||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||||
var supPaymentTerms = '';
|
var supPaymentTerms = '';
|
||||||
$.each(y, function (idx, obj) {
|
$.each(y, function(idx, obj) {
|
||||||
if (obj.SupplierID === id) {
|
if (obj.SupplierID === id) {
|
||||||
if (obj.MSME) {
|
if (obj.MSME) {
|
||||||
$("#SupAddress").val("MSME :" + obj.MSME + "\n" + obj.Address);
|
$("#SupAddress").val("MSME :" + obj.MSME + "\n" + obj.Address);
|
||||||
@ -6191,7 +6169,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#PaymentMethod').empty();
|
$('#PaymentMethod').empty();
|
||||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||||
|
|
||||||
$.each(paymentList, function (idx1, obj1) {
|
$.each(paymentList, function(idx1, obj1) {
|
||||||
|
|
||||||
|
|
||||||
if (obj1.PaymentID == supPaymentTerms) {
|
if (obj1.PaymentID == supPaymentTerms) {
|
||||||
@ -6206,7 +6184,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$.each(paymentList, function (idx, obj) {
|
$.each(paymentList, function(idx, obj) {
|
||||||
|
|
||||||
|
|
||||||
if (obj.PaymentID != supPaymentTerms) {
|
if (obj.PaymentID != supPaymentTerms) {
|
||||||
@ -6226,7 +6204,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
});
|
});
|
||||||
/*get cost center name using department*/
|
/*get cost center name using department*/
|
||||||
var CostArray = '';
|
var CostArray = '';
|
||||||
$('#DepartmentName').change(function () {
|
$('#DepartmentName').change(function() {
|
||||||
$("#AvalBuget").val('');
|
$("#AvalBuget").val('');
|
||||||
$('#AlertImg').attr("style", "display:none;");
|
$('#AlertImg').attr("style", "display:none;");
|
||||||
CostArray = '';
|
CostArray = '';
|
||||||
@ -6241,13 +6219,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>emergencypurchaseorder/getCostCenterName",
|
url: "<?php echo base_url() ?>emergencypurchaseorder/getCostCenterName",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
CostArray = data;
|
CostArray = data;
|
||||||
$('#CostCenterName').empty();
|
$('#CostCenterName').empty();
|
||||||
$("#CostCenterName").append($('<option></option>').val("0").html("Select Cost Center"));
|
$("#CostCenterName").append($('<option></option>').val("0").html("Select Cost Center"));
|
||||||
|
|
||||||
$.each(JSON.parse(data), function (index, value) {
|
$.each(JSON.parse(data), function(index, value) {
|
||||||
|
|
||||||
$("#CostCenterName").append($('<option></option>').val(value.CostCenterCode).html(value.CostCenterCode + "-" + value.CostCenterName));
|
$("#CostCenterName").append($('<option></option>').val(value.CostCenterCode).html(value.CostCenterCode + "-" + value.CostCenterName));
|
||||||
|
|
||||||
@ -6291,7 +6269,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
$("#AvalBuget").val(parseFloat(data).toFixed(2));
|
$("#AvalBuget").val(parseFloat(data).toFixed(2));
|
||||||
@ -6312,7 +6290,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#CostCenterName').change(function () {
|
$('#CostCenterName').change(function() {
|
||||||
|
|
||||||
var id = $('#CostCenterName').val();
|
var id = $('#CostCenterName').val();
|
||||||
$("#AvlBudAmt").val(0);
|
$("#AvlBudAmt").val(0);
|
||||||
@ -6328,7 +6306,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
||||||
@ -6458,7 +6436,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
* This function is used when clicking add service button that time store the info for submit
|
* This function is used when clicking add service button that time store the info for submit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$('.AddService').click(function () {
|
$('.AddService').click(function() {
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateServiceTax()) {
|
if (validateServiceTax()) {
|
||||||
// alert('inside Addservice');
|
// alert('inside Addservice');
|
||||||
@ -6691,11 +6669,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/**
|
/**
|
||||||
* This function is used to edit the service seleted po
|
* This function is used to edit the service seleted po
|
||||||
*/
|
*/
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var EditGetMaterialData;
|
var EditGetMaterialData;
|
||||||
|
|
||||||
$("#EDITSERVICE").on("shown.bs.modal", function (e) {
|
$("#EDITSERVICE").on("shown.bs.modal", function(e) {
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
var userid = $(e.relatedTarget).data('userid');
|
var userid = $(e.relatedTarget).data('userid');
|
||||||
console.log("userid:", userid);
|
console.log("userid:", userid);
|
||||||
@ -6739,7 +6717,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||||
var parsedMaterialData = JSON.parse(materialData);
|
var parsedMaterialData = JSON.parse(materialData);
|
||||||
|
|
||||||
$.each(parsedMaterialData, function (index, value) {
|
$.each(parsedMaterialData, function(index, value) {
|
||||||
// Assuming userid is defined somewhere in your code
|
// Assuming userid is defined somewhere in your code
|
||||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||||
$("#EditMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
$("#EditMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||||
@ -6790,7 +6768,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/**
|
/**
|
||||||
* This function is used for update service
|
* This function is used for update service
|
||||||
*/
|
*/
|
||||||
$('.EditService').click(function () {
|
$('.EditService').click(function() {
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateEditServiceTax()) {
|
if (validateEditServiceTax()) {
|
||||||
|
|
||||||
@ -6974,7 +6952,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var removeItem = $('#materialCode' + rowid).val();
|
var removeItem = $('#materialCode' + rowid).val();
|
||||||
|
|
||||||
|
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (value.MaterialCode == materialCode) {
|
if (value.MaterialCode == materialCode) {
|
||||||
// $("#ServiceMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
|
// $("#ServiceMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
|
||||||
}
|
}
|
||||||
@ -7056,7 +7034,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
data: formData,
|
data: formData,
|
||||||
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
||||||
contentType: false, // Prevent jQuery from setting the content type header
|
contentType: false, // Prevent jQuery from setting the content type header
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
// Handle the server response
|
// Handle the server response
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
alert(data);
|
alert(data);
|
||||||
@ -7067,7 +7045,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#txtDeliveryAddress').val('');
|
$('#txtDeliveryAddress').val('');
|
||||||
window.location = "purchaseorderListing";
|
window.location = "purchaseorderListing";
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
// Handle errors
|
// Handle errors
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
alert("Error: " + error);
|
alert("Error: " + error);
|
||||||
@ -7134,7 +7112,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
data: formData,
|
data: formData,
|
||||||
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
||||||
contentType: false, // Prevent jQuery from setting the content type header
|
contentType: false, // Prevent jQuery from setting the content type header
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
// Handle the server response
|
// Handle the server response
|
||||||
// alert(data);
|
// alert(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@ -7145,7 +7123,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#txtDeliveryAddress').val('');
|
$('#txtDeliveryAddress').val('');
|
||||||
window.location = "purchaseorderListing";
|
window.location = "purchaseorderListing";
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
// Handle errors
|
// Handle errors
|
||||||
alert("Error: " + error);
|
alert("Error: " + error);
|
||||||
}
|
}
|
||||||
@ -7233,7 +7211,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/**
|
/**
|
||||||
* update available budget calculation using regNo and cost center while editing
|
* update available budget calculation using regNo and cost center while editing
|
||||||
*/
|
*/
|
||||||
$('#EditCostCenter').change(function () {
|
$('#EditCostCenter').change(function() {
|
||||||
|
|
||||||
var getCostId = $('#EditCostCenter').val();
|
var getCostId = $('#EditCostCenter').val();
|
||||||
$("#EditAvlBudAmt").val(0);
|
$("#EditAvlBudAmt").val(0);
|
||||||
@ -7248,7 +7226,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||||
success: function (data) {
|
success: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
$("#EditAvlBudAmt").val(data ? data : 0);
|
$("#EditAvlBudAmt").val(data ? data : 0);
|
||||||
@ -7268,12 +7246,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/**
|
/**
|
||||||
* getting item name and uom using global variable materialData each change ehile editing
|
* getting item name and uom using global variable materialData each change ehile editing
|
||||||
*/
|
*/
|
||||||
$('#EditMaterialCode').change(function () {
|
$('#EditMaterialCode').change(function() {
|
||||||
|
|
||||||
var editselectedMaterialCode = '';
|
var editselectedMaterialCode = '';
|
||||||
editselectedMaterialCode = $("#EditMaterialCode").val();
|
editselectedMaterialCode = $("#EditMaterialCode").val();
|
||||||
|
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (editselectedMaterialCode == value.MaterialCode) {
|
if (editselectedMaterialCode == value.MaterialCode) {
|
||||||
$("#EditMaterialCode").val(value.MaterialCode);
|
$("#EditMaterialCode").val(value.MaterialCode);
|
||||||
$("#EditItemName").val(value.MaterialName);
|
$("#EditItemName").val(value.MaterialName);
|
||||||
@ -7290,13 +7268,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
supplierid: d,
|
supplierid: d,
|
||||||
materialcode: editselectedMaterialCode
|
materialcode: editselectedMaterialCode
|
||||||
},
|
},
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
if (response) alert(response);
|
if (response) alert(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
$("#EDITREVENUE").on("shown.bs.modal", function (e) {
|
$("#EDITREVENUE").on("shown.bs.modal", function(e) {
|
||||||
var userid = $(e.relatedTarget).data('userid');
|
var userid = $(e.relatedTarget).data('userid');
|
||||||
|
|
||||||
var CheckLocalInter = $('#CheckLocalInter' + userid).val();
|
var CheckLocalInter = $('#CheckLocalInter' + userid).val();
|
||||||
@ -7368,7 +7346,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||||
var parsedMaterialData = JSON.parse(materialData);
|
var parsedMaterialData = JSON.parse(materialData);
|
||||||
|
|
||||||
$.each(parsedMaterialData, function (index, value) {
|
$.each(parsedMaterialData, function(index, value) {
|
||||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||||
$("#EditRevenueMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
$("#EditRevenueMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||||
}
|
}
|
||||||
@ -7384,12 +7362,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#EditRevenueMaterialCode').change(function () {
|
$('#EditRevenueMaterialCode').change(function() {
|
||||||
|
|
||||||
var editselectedMaterialCode = '';
|
var editselectedMaterialCode = '';
|
||||||
editselectedMaterialCode = $("#EditRevenueMaterialCode").val();
|
editselectedMaterialCode = $("#EditRevenueMaterialCode").val();
|
||||||
|
|
||||||
$.each(JSON.parse(materialData), function (index, value) {
|
$.each(JSON.parse(materialData), function(index, value) {
|
||||||
if (editselectedMaterialCode == value.MaterialCode) {
|
if (editselectedMaterialCode == value.MaterialCode) {
|
||||||
$("#EditRevenueMaterialCode").val(value.MaterialCode);
|
$("#EditRevenueMaterialCode").val(value.MaterialCode);
|
||||||
$("#EditRevenueItemName").val(value.MaterialName);
|
$("#EditRevenueItemName").val(value.MaterialName);
|
||||||
@ -7406,13 +7384,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
supplierid: d,
|
supplierid: d,
|
||||||
materialcode: editselectedMaterialCode
|
materialcode: editselectedMaterialCode
|
||||||
},
|
},
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
if (response) alert(response);
|
if (response) alert(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
$('.EditRevenue').click(function () {
|
$('.EditRevenue').click(function() {
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateEditRevenueTax()) {
|
if (validateEditRevenueTax()) {
|
||||||
@ -7648,7 +7626,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
// this function is used to clear data changing schedule option
|
// this function is used to clear data changing schedule option
|
||||||
$('#Scheduleby').change(function () {
|
$('#Scheduleby').change(function() {
|
||||||
|
|
||||||
// $("#Deliverydt").datepicker({
|
// $("#Deliverydt").datepicker({
|
||||||
// minDate: 'now',
|
// minDate: 'now',
|
||||||
@ -7660,7 +7638,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#Deliverydt').change(function () {
|
$('#Deliverydt').change(function() {
|
||||||
|
|
||||||
$('#Scheduleby').val('');
|
$('#Scheduleby').val('');
|
||||||
|
|
||||||
@ -7692,7 +7670,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
// ExceedQuantityCheck();
|
// ExceedQuantityCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#ScheduleType").change(function () {
|
$("#ScheduleType").change(function() {
|
||||||
if ($('#ScheduleType').val().trim() != 'Recurring') {
|
if ($('#ScheduleType').val().trim() != 'Recurring') {
|
||||||
document.getElementById('ServicePeriodOption').style.display = 'none';
|
document.getElementById('ServicePeriodOption').style.display = 'none';
|
||||||
document.getElementById('NoServices').style.display = 'none';
|
document.getElementById('NoServices').style.display = 'none';
|
||||||
@ -7709,7 +7687,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$("#EditScheduleType").change(function () {
|
$("#EditScheduleType").change(function() {
|
||||||
if ($('#EditScheduleType').val().trim() != 'Recurring') {
|
if ($('#EditScheduleType').val().trim() != 'Recurring') {
|
||||||
document.getElementById('EditServicePeriodOption').style.display = 'none';
|
document.getElementById('EditServicePeriodOption').style.display = 'none';
|
||||||
document.getElementById('EditNoServices').style.display = 'none';
|
document.getElementById('EditNoServices').style.display = 'none';
|
||||||
@ -7770,7 +7748,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
//If others is the payment terms to display mandatory field
|
//If others is the payment terms to display mandatory field
|
||||||
$("#PaymentMethod").change(function () {
|
$("#PaymentMethod").change(function() {
|
||||||
|
|
||||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||||
$('#otheroptiondiv').show();
|
$('#otheroptiondiv').show();
|
||||||
@ -7803,7 +7781,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
$('#insuranceTxtDiv').hide();
|
$('#insuranceTxtDiv').hide();
|
||||||
$("#insuranceStatus").change(function () {
|
$("#insuranceStatus").change(function() {
|
||||||
|
|
||||||
if ($("#insuranceStatus").val() == "1") {
|
if ($("#insuranceStatus").val() == "1") {
|
||||||
$('#insuranceTxtDiv').show();
|
$('#insuranceTxtDiv').show();
|
||||||
@ -7841,7 +7819,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
// }
|
// }
|
||||||
if (reqType == 'REVENUE') {
|
if (reqType == 'REVENUE') {
|
||||||
$("#serviceTax tr:gt(0) td:nth-child(3)").each(function () {
|
$("#serviceTax tr:gt(0) td:nth-child(3)").each(function() {
|
||||||
var temp = $(this).html();
|
var temp = $(this).html();
|
||||||
if ($.inArray(temp, itemvalue) < 0) {
|
if ($.inArray(temp, itemvalue) < 0) {
|
||||||
itemvalue[x] = temp;
|
itemvalue[x] = temp;
|
||||||
@ -7850,7 +7828,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#serviceTax tr:gt(0) td:nth-child(4)").each(function () {
|
$("#serviceTax tr:gt(0) td:nth-child(4)").each(function() {
|
||||||
var temp2 = $(this).html();
|
var temp2 = $(this).html();
|
||||||
if ($.inArray(temp2, itemname) < 0) {
|
if ($.inArray(temp2, itemname) < 0) {
|
||||||
itemname[y] = temp2;
|
itemname[y] = temp2;
|
||||||
@ -7869,7 +7847,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$("#emergencyitemcode").html(options);
|
$("#emergencyitemcode").html(options);
|
||||||
} else if (reqType == 'SERVICE') {
|
} else if (reqType == 'SERVICE') {
|
||||||
|
|
||||||
$("#serviceTax tr:gt(0) td:nth-child(3)").each(function () {
|
$("#serviceTax tr:gt(0) td:nth-child(3)").each(function() {
|
||||||
var temp3 = $(this).html();
|
var temp3 = $(this).html();
|
||||||
if ($.inArray(temp3, itemvalue) < 0) {
|
if ($.inArray(temp3, itemvalue) < 0) {
|
||||||
itemvalue[x] = temp3;
|
itemvalue[x] = temp3;
|
||||||
@ -7884,10 +7862,10 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
$("#serviceitemcode").html(options);
|
$("#serviceitemcode").html(options);
|
||||||
|
|
||||||
} else { }
|
} else {}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/html" id="addList">
|
<script type="text/html" id="addList">
|
||||||
<tr id="<%=index%>">
|
<tr id="<%=index%>">
|
||||||
<td style="width: 15%;" align="left"><%=MaterialCode1%></td>
|
<td style="width: 15%;" align="left"><%=MaterialCode1%></td>
|
||||||
<td style="width: 15%;" align="left"><%=DeliveryChallanDate%></td>
|
<td style="width: 15%;" align="left"><%=DeliveryChallanDate%></td>
|
||||||
@ -7899,8 +7877,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</tr>
|
</tr>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/html" id="addservice">
|
<script type="text/html" id="addservice">
|
||||||
<tr id="<%=index%>">
|
<tr id="<%=index%>">
|
||||||
<td style="width: 15%;" align="left"><%=MaterialCode%></td>
|
<td style="width: 15%;" align="left"><%=MaterialCode%></td>
|
||||||
<td style="width: 15%;" align="left"><%=Description%></td>
|
<td style="width: 15%;" align="left"><%=Description%></td>
|
||||||
@ -7908,7 +7886,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
//table append for file uploading
|
//table append for file uploading
|
||||||
var index = '1';
|
var index = '1';
|
||||||
var specialrow = 0;
|
var specialrow = 0;
|
||||||
@ -8099,11 +8077,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<!-- Multiple file Upload Script -->
|
<!-- Multiple file Upload Script -->
|
||||||
<script>
|
<script>
|
||||||
var counter = 0;
|
var counter = 0;
|
||||||
var counterConstant = 0;
|
var counterConstant = 0;
|
||||||
|
|
||||||
@ -8111,7 +8089,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#addmorebutton").click(function () {
|
$("#addmorebutton").click(function() {
|
||||||
|
|
||||||
if (counter > 4) {
|
if (counter > 4) {
|
||||||
alert("You have to upload five files only"); //this allows only 5 files;
|
alert("You have to upload five files only"); //this allows only 5 files;
|
||||||
@ -8134,7 +8112,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
'<div class="col-md-3" style="margin-top:1.0%; ">' +
|
'<div class="col-md-3" style="margin-top:1.0%; ">' +
|
||||||
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> '+
|
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> ' +
|
||||||
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
|
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
|
||||||
|
|
||||||
+
|
+
|
||||||
@ -8143,8 +8121,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
||||||
|
|
||||||
|
|
||||||
'<div class="col-md-3" > '+
|
'<div class="col-md-3" > ' +
|
||||||
'</div> '+
|
'</div> ' +
|
||||||
'</div><br>';
|
'</div><br>';
|
||||||
|
|
||||||
$('#newdiv').append(div);
|
$('#newdiv').append(div);
|
||||||
@ -8213,14 +8191,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
div.innerHTML =
|
div.innerHTML =
|
||||||
|
|
||||||
'<div class="col-md-3">' +
|
'<div class="col-md-3">' +
|
||||||
'<label><br></label>'+
|
'<label><br></label>' +
|
||||||
'<input type="file" name="browseFiles' + counterConstant + '" id="imag" onchange="Copyfilename(this.name); "><br>' +
|
'<input type="file" name="browseFiles' + counterConstant + '" id="imag" onchange="Copyfilename(this.name); "><br>' +
|
||||||
|
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
|
||||||
|
|
||||||
'<div class="col-md-3" style="margin-top:1.0%; ">' +
|
'<div class="col-md-3" style="margin-top:1.0%; ">' +
|
||||||
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> '+
|
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> ' +
|
||||||
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
|
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
|
||||||
|
|
||||||
+
|
+
|
||||||
@ -8229,8 +8207,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
||||||
|
|
||||||
|
|
||||||
'<div class="col-md-3" > '+
|
'<div class="col-md-3" > ' +
|
||||||
'</div> '+
|
'</div> ' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
$('#newdiv').append(div);
|
$('#newdiv').append(div);
|
||||||
@ -8336,7 +8314,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var counters = 0;
|
var counters = 0;
|
||||||
var counterConstants = 0;
|
var counterConstants = 0;
|
||||||
|
|
||||||
$("#addemorebutton").click(function () {
|
$("#addemorebutton").click(function() {
|
||||||
|
|
||||||
//alert('sda');
|
//alert('sda');
|
||||||
|
|
||||||
@ -8540,9 +8518,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$("#addemorebutton").show();
|
$("#addemorebutton").show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$('#IsOpenOrder').change(function () {
|
$('#IsOpenOrder').change(function() {
|
||||||
var input = document.getElementById('purpose').value;
|
var input = document.getElementById('purpose').value;
|
||||||
// alert("IsOpenOrder");
|
// alert("IsOpenOrder");
|
||||||
if (this.checked) {
|
if (this.checked) {
|
||||||
@ -8573,7 +8551,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('select').each(function () {
|
$('select').each(function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
// Check if the element already has the class, if not add it
|
// Check if the element already has the class, if not add it
|
||||||
@ -8585,6 +8563,4 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$this.addClass('select2');
|
$this.addClass('select2');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -1,63 +1,105 @@
|
|||||||
<?php
|
<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);
|
||||||
|
});
|
||||||
|
|
||||||
$t = '';
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
if (!empty($staticspecialinstruction)) {
|
$('#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
|
||||||
|
|
||||||
|
$t = '';
|
||||||
|
if (!empty($staticspecialinstruction)) {
|
||||||
foreach ($staticspecialinstruction as $text)
|
foreach ($staticspecialinstruction as $text)
|
||||||
$t = $text->ConfigValue;
|
$t = $text->ConfigValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$insuranceStatus = array(
|
$insuranceStatus = array(
|
||||||
array("name" => "NO", "value" => "0"),
|
array("name" => "NO", "value" => "0"),
|
||||||
array("name" => "YES", "value" => "1")
|
array("name" => "YES", "value" => "1")
|
||||||
);
|
);
|
||||||
$ReqType = '';
|
$ReqType = '';
|
||||||
$CompanyAddress = '';
|
$CompanyAddress = '';
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
$CurrentDate = $dt->format('d-m-Y');
|
$CurrentDate = $dt->format('d-m-Y');
|
||||||
$MaxPoDate = '';
|
$MaxPoDate = '';
|
||||||
$AvlAmount = 0;
|
$AvlAmount = 0;
|
||||||
$paymentDate = '';
|
$paymentDate = '';
|
||||||
$paymentCheckDays = 'Before';
|
$paymentCheckDays = 'Before';
|
||||||
$paymentCheckDays1 = 'After';
|
$paymentCheckDays1 = 'After';
|
||||||
if (!empty($MaxPODate)) {
|
if (!empty($MaxPODate)) {
|
||||||
foreach ($MaxPODate as $date) {
|
foreach ($MaxPODate as $date) {
|
||||||
|
|
||||||
$MaxPoDate = $date->PODate;
|
$MaxPoDate = $date->PODate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($CompanyDetails)) {
|
if (!empty($CompanyDetails)) {
|
||||||
foreach ($CompanyDetails as $Req) {
|
foreach ($CompanyDetails as $Req) {
|
||||||
$CompanyAddress = $Req->Address;
|
$CompanyAddress = $Req->Address;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($AvlBudAmt)) {
|
if (!empty($AvlBudAmt)) {
|
||||||
|
|
||||||
$AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', '');
|
$AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(!empty($AvlimportBudAmt))
|
// if(!empty($AvlimportBudAmt))
|
||||||
// {
|
// {
|
||||||
|
|
||||||
// $AvlAmount = $AvlimportBudAmt;
|
// $AvlAmount = $AvlimportBudAmt;
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$INR = '';
|
$INR = '';
|
||||||
$INRSYM = '';
|
$INRSYM = '';
|
||||||
if (!empty($INRSYMBOL)) {
|
if (!empty($INRSYMBOL)) {
|
||||||
foreach ($INRSYMBOL as $INR) {
|
foreach ($INRSYMBOL as $INR) {
|
||||||
$INRSYM = $INR->Currency_Code;
|
$INRSYM = $INR->Currency_Code;
|
||||||
$INR = $INR->FontCode2000;
|
$INR = $INR->FontCode2000;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// echo $INRSYM;
|
||||||
|
// echo $INR;
|
||||||
|
|
||||||
|
?>
|
||||||
|
<style>
|
||||||
|
#mceu_1{
|
||||||
|
border-width: 0px 0px 0px !important;
|
||||||
|
}
|
||||||
|
#mceu_0{
|
||||||
|
padding: 1px !important;
|
||||||
|
}
|
||||||
|
.modal {
|
||||||
|
overflow: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo $INRSYM;
|
|
||||||
// echo $INR;
|
|
||||||
|
|
||||||
?>
|
|
||||||
<style>
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
margin-top: -5%;
|
margin-top: -5%;
|
||||||
}
|
}
|
||||||
@ -84,13 +126,13 @@
|
|||||||
.centered input {
|
.centered input {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
||||||
|
|
||||||
<script src="<?php echo base_url(); ?>public/assets/js/CreatePOValidation.js" type="text/javascript"></script>
|
<script src="<?php echo base_url(); ?>public/assets/js/CreatePOValidation.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
tinymce.init({
|
tinymce.init({
|
||||||
selector: "textarea#txtSpcialInstruction",
|
selector: "textarea#txtSpcialInstruction",
|
||||||
|
|
||||||
@ -118,8 +160,8 @@
|
|||||||
statusbar: false,
|
statusbar: false,
|
||||||
toolbar: false
|
toolbar: false
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#PaymentMethod").select2();
|
$("#PaymentMethod").select2();
|
||||||
@ -252,8 +294,8 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div class="content-page">
|
<div class="content-page">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<!-- Start Content-->
|
<!-- Start Content-->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
@ -814,8 +856,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div> <!-- container -->
|
</div> <!-- container -->
|
||||||
</div> <!-- content -->
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -842,13 +884,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<div id="editpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
<div id="editpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<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>
|
||||||
@ -869,8 +911,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none; overflow-y:scroll !important">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none; overflow-y:scroll !important">
|
||||||
<div class="modal-dialog modal-full-width">
|
<div class="modal-dialog modal-full-width">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -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
|
||||||
@ -1474,8 +1492,8 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<div class="modal-dialog modal-full-width">
|
<div class="modal-dialog modal-full-width">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -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 -->
|
||||||
@ -2185,8 +2173,8 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<div class="modal fade" id="DomesticNOT" role="dialog">
|
<div class="modal fade" id="DomesticNOT" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
<!-- Modal content-->
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -2222,9 +2210,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
<!-- <script type="text/html" id="CapitalList">
|
<!-- <script type="text/html" id="CapitalList">
|
||||||
<tr id="<%=index%>">
|
<tr id="<%=index%>">
|
||||||
<td align="left"><%=index%></td>
|
<td align="left"><%=index%></td>
|
||||||
<td align="left"><%=ReqNo%></td>
|
<td align="left"><%=ReqNo%></td>
|
||||||
@ -2244,7 +2232,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</script> -->
|
</script> -->
|
||||||
<script>
|
<script>
|
||||||
var tempUserId = 0;
|
var tempUserId = 0;
|
||||||
var RequistQuantity = '';
|
var RequistQuantity = '';
|
||||||
var AvilBudAmt = '';
|
var AvilBudAmt = '';
|
||||||
@ -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();
|
||||||
|
|
||||||
@ -6551,4 +6561,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -409,7 +409,7 @@ if (!empty($RequistionDetails)) {
|
|||||||
<!-- <label>Delivery Date</label>
|
<!-- <label>Delivery Date</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('type'=>'date','name' => 'Deliverydt', 'value' => set_value('Deliverydt', $CurrentDate), 'id' => 'Deliverydt', 'class' => 'form-control', 'required' => 'true');
|
$data = array('type' => 'date', 'name' => 'Deliverydt', 'value' => set_value('Deliverydt', $CurrentDate), 'id' => 'Deliverydt', 'class' => 'form-control', 'required' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?> -->
|
?> -->
|
||||||
|
|
||||||
@ -1040,60 +1040,45 @@ 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 -->
|
||||||
|
|
||||||
|
|
||||||
<center> <label>Cost of the product Per UOM</label></center>
|
<center> <label>Cost of the product Per UOM</label></center>
|
||||||
<hr/>
|
<hr />
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
@ -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('');
|
||||||
|
|||||||
@ -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() {
|
||||||
@ -4830,7 +4851,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
var Discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val();
|
var Discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val();
|
||||||
var txtEditAfterPackaging = $('#txtEditAfterPackaging').val() == '' ? '0.00' : $('#txtEditAfterPackaging').val();
|
var txtEditAfterPackaging = $('#txtEditAfterPackaging').val() == '' ? '0.00' : $('#txtEditAfterPackaging').val();
|
||||||
|
|
||||||
var totvalue = parseFloat(AfterCgst) + parseFloat(AfterSgst) + parseFloat(AfterIgst) ;
|
var totvalue = parseFloat(AfterCgst) + parseFloat(AfterSgst) + parseFloat(AfterIgst);
|
||||||
|
|
||||||
var tot = parseFloat(totvalue).toFixed(2);
|
var tot = parseFloat(totvalue).toFixed(2);
|
||||||
// alert('tot:'+tot);
|
// alert('tot:'+tot);
|
||||||
@ -5002,7 +5023,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
AvlBudAmt = '<?php echo number_format($AvlAmount + $totBasicAmt - $totDiscountAmt, 2, '.', '') ?>';
|
AvlBudAmt = '<?php echo number_format($AvlAmount + $totBasicAmt - $totDiscountAmt, 2, '.', '') ?>';
|
||||||
userid = $(e.relatedTarget).data('userid');
|
userid = $(e.relatedTarget).data('userid');
|
||||||
$('#isEdit').val(1);
|
$('#isEdit').val(1);
|
||||||
//alert(userid);
|
// alert(userid);
|
||||||
var tr = document.getElementById(userid);
|
var tr = document.getElementById(userid);
|
||||||
var cellval = tr.cells;
|
var cellval = tr.cells;
|
||||||
var id = $('#Reqnumber' + userid).val();
|
var id = $('#Reqnumber' + userid).val();
|
||||||
|
|||||||
@ -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">
|
||||||
|
|
||||||
|
|||||||
@ -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