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
|
||||
function EditRevenuePurchaseOrder()
|
||||
{
|
||||
// print_r($this->request->getPost());die;
|
||||
$PONO = $this->request->getPost('txtPONO');
|
||||
$POdt = $this->request->getPost('PODate');
|
||||
$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>
|
||||
<?php
|
||||
} 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
|
||||
} ?>
|
||||
</tr>
|
||||
@ -1271,7 +1271,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<!--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>
|
||||
|
||||
<?php
|
||||
@ -1283,7 +1283,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<div class="form-group col-md-11">
|
||||
<label>Scope Of Work</label>
|
||||
<?php
|
||||
$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 class="form-group col-md-3" style="display: none;" id="ViewotherDescription">
|
||||
<label>Item Name</label>
|
||||
<div>
|
||||
@ -2128,10 +2125,6 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label>UOM</label>
|
||||
<div>
|
||||
@ -2148,14 +2141,10 @@ if (!empty($getlogpodtl)) {
|
||||
$data = array('name' => 'ViewFrequency', 'value' => set_value('ViewFrequency'), 'id' => 'ViewFrequency', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label>Quantity<span class="text-danger">*</span></label>
|
||||
<div>
|
||||
@ -2175,8 +2164,8 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Per</label> <?php
|
||||
$data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control');
|
||||
<label>Per</label>
|
||||
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
@ -2188,27 +2177,21 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6" align="right">
|
||||
|
||||
CGST In %
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
@ -2216,17 +2199,13 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6" align="right">
|
||||
|
||||
SGST In %
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
@ -2236,43 +2215,33 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6" align="right">
|
||||
|
||||
IGST In %
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-9" align="right">
|
||||
@ -2302,21 +2271,18 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Service Description<span class="text-danger">*</span></label> <?php
|
||||
$data = array('name' => 'ViewtxtSpcialInstruction', 'value' => set_value('ViewtxtSpcialInstruction'), 'id' => 'ViewtxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
<label>Service Description<span class="text-danger">*</span></label>
|
||||
<?php $data = array('name' => 'ViewtxtSpcialInstruction', 'value' => set_value('ViewtxtSpcialInstruction'), 'id' => 'ViewtxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
||||
echo form_textarea($data); ?>
|
||||
</div>
|
||||
</div><br />
|
||||
|
||||
</div><br>
|
||||
<div class="modal-footer">
|
||||
<div class="form-row">
|
||||
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
<style>
|
||||
|
||||
|
||||
|
||||
|
||||
/* Custom width for the modal */
|
||||
.modal-dialog {
|
||||
width: 100%; /* You can adjust this percentage to your needs */
|
||||
max-width: 1200px; /* Optional: This ensures the modal doesn't grow too large on large screens */
|
||||
width: 100%;
|
||||
/* 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 */
|
||||
@ -52,7 +50,7 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
|
||||
|
||||
.txtSpcialInstruction{
|
||||
.txtSpcialInstruction {
|
||||
background-color: #f4f9fb;
|
||||
}
|
||||
|
||||
@ -179,7 +177,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var RequistQuantity = '';
|
||||
var IsEdit = '0';
|
||||
|
||||
$(function () {
|
||||
$(function() {
|
||||
|
||||
|
||||
// $("#PODate").datepicker({
|
||||
@ -346,7 +344,7 @@ if (!empty($INRSYMBOL)) {
|
||||
}); */
|
||||
/* Revenue Tax calcualation */
|
||||
|
||||
$('#DiscountType').change(function () {
|
||||
$('#DiscountType').change(function() {
|
||||
selValue = $("#DiscountType").val();
|
||||
$('#txtDiscount').val('');
|
||||
$('#txtAfterDiscount').val('');
|
||||
@ -365,7 +363,7 @@ if (!empty($INRSYMBOL)) {
|
||||
change();
|
||||
|
||||
});
|
||||
$('#EditDiscountType').change(function () {
|
||||
$('#EditDiscountType').change(function() {
|
||||
if ($('#EditRevenueRate').val() != '' && $('#EditRevenueMaterialCode').val() != "0") {
|
||||
selValue = $("#EditDiscountType").val();
|
||||
$('#txtEditDiscount').val('');
|
||||
@ -393,7 +391,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('#PackagingType').change(function () {
|
||||
$('#PackagingType').change(function() {
|
||||
$('#txtPackaging').val('');
|
||||
$('#txtAfterPackaging').val('');
|
||||
selValue = $("#PackagingType").val();
|
||||
@ -402,8 +400,6 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#REVENUE').modal('hide');
|
||||
$('#packagingcalmodel').modal('show');
|
||||
$('#txtPackaging').removeAttr('readonly', 'true');
|
||||
|
||||
|
||||
} else {
|
||||
if (selValue == NilType) {
|
||||
|
||||
@ -418,7 +414,7 @@ if (!empty($INRSYMBOL)) {
|
||||
//change();
|
||||
});
|
||||
|
||||
$('#EditPackagingType').change(function () {
|
||||
$('#EditPackagingType').change(function() {
|
||||
$('#txtEditPackaging').val('');
|
||||
$('#txtEditAfterPackaging').val('');
|
||||
selValue = $("#EditPackagingType").val();
|
||||
@ -440,14 +436,14 @@ if (!empty($INRSYMBOL)) {
|
||||
//change();
|
||||
|
||||
});
|
||||
$('#txtExciseDuty').change(function () {
|
||||
$('#txtExciseDuty').change(function() {
|
||||
|
||||
if (ExciseCalculation == '') {
|
||||
$('#ExciseDutyCalModel').modal('show');
|
||||
}
|
||||
|
||||
});
|
||||
$('#txtVat').change(function () {
|
||||
$('#txtVat').change(function() {
|
||||
|
||||
/* if(VatCalculation == '')
|
||||
{
|
||||
@ -456,25 +452,31 @@ if (!empty($INRSYMBOL)) {
|
||||
*/
|
||||
|
||||
});
|
||||
$('#txtCST').change(function () {
|
||||
$('#txtCST').change(function() {
|
||||
|
||||
if (CSTCalculation == '') {
|
||||
$('#CSTCalModel').modal('hide');
|
||||
}
|
||||
|
||||
});
|
||||
$('#drpEditFreight').change(function () {
|
||||
$('#drpEditFreight').change(function() {
|
||||
$('#txtEditFreight').val('');
|
||||
$('#txtEditAfterFreight').val('');
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
// selValue = $("#drpFreight").val() ;
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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) {
|
||||
var freightCalculation = '';
|
||||
@ -496,15 +498,21 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
});
|
||||
//add //
|
||||
$('#drpFreight').change(function () {
|
||||
$('#drpFreight').change(function() {
|
||||
var FreightType = $("#drpFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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();
|
||||
@ -1904,11 +1912,11 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$('#ServiceMaterialCode').change(function () {
|
||||
$(document).ready(function() {
|
||||
$('#ServiceMaterialCode').change(function() {
|
||||
var selectedMaterialCode = '';
|
||||
selectedMaterialCode = $("#ServiceMaterialCode").val();
|
||||
$.each(JSON.parse(materialData), function (index, value) {
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (selectedMaterialCode == value.MaterialCode) {
|
||||
$("#ServiceDescription").val(value.MaterialName);
|
||||
$("#ServiceUOM").val(value.UOM);
|
||||
@ -1933,7 +1941,7 @@ if (!empty($INRSYMBOL)) {
|
||||
supplierid: d,
|
||||
materialcode: selectedMaterialCode
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
@ -1942,7 +1950,7 @@ if (!empty($INRSYMBOL)) {
|
||||
let materialData;
|
||||
|
||||
|
||||
$('#purpose').on('change', function () {
|
||||
$('#purpose').on('change', function() {
|
||||
console.log("purpose first");
|
||||
|
||||
$('#POType').val(this.value);
|
||||
@ -2028,7 +2036,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
console.log("4444444444444444");
|
||||
|
||||
if (data) {
|
||||
@ -2044,7 +2052,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#ServiceMaterialCode').empty();
|
||||
$("#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));
|
||||
|
||||
|
||||
@ -2055,7 +2063,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#MaterialCode').empty();
|
||||
$("#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));
|
||||
|
||||
|
||||
@ -2088,7 +2096,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
$("#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
|
||||
*/
|
||||
$('#MaterialCode').on('change', function () {
|
||||
$('#MaterialCode').on('change', function() {
|
||||
console.log("111111111111");
|
||||
|
||||
// $('#MaterialCode').change(function() {
|
||||
@ -2122,7 +2130,7 @@ if (!empty($INRSYMBOL)) {
|
||||
selectedRevenueMaterialCode = $("#MaterialCode").val();
|
||||
console.log(materialData);
|
||||
console.log("materialData - 1111111");
|
||||
$.each(JSON.parse(materialData), function (index, value) {
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (selectedRevenueMaterialCode == value.MaterialCode) {
|
||||
$("#ItemName").val(value.MaterialName);
|
||||
$("#UOM").val(value.UOM);
|
||||
@ -2138,7 +2146,7 @@ if (!empty($INRSYMBOL)) {
|
||||
supplierid: d,
|
||||
materialcode: selectedRevenueMaterialCode
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
@ -2185,7 +2193,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
//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) {
|
||||
$("#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>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtBasicValue',
|
||||
'value' => set_value('txtBasicValue'), 'id' => 'txtBasicValue',
|
||||
'class' => 'form-control num', 'readonly' => 'true');
|
||||
$data = array(
|
||||
'name' => 'txtBasicValue',
|
||||
'value' => set_value('txtBasicValue'),
|
||||
'id' => 'txtBasicValue',
|
||||
'class' => 'form-control num',
|
||||
'readonly' => 'true'
|
||||
);
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -2923,53 +2935,38 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<label>Freight Type <span class="badge mandatory"></label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID):
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="TripsValue" style="display:none;">
|
||||
<label>NO Of Trips<span class="badge mandatory"></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Freight Rate <span class="badge mandatory"></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6"></div>
|
||||
@ -3074,8 +3071,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<label><?php echo "Revenue Description"; ?></label>
|
||||
<?php
|
||||
$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>
|
||||
@ -4377,7 +4373,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<!-- /.box-body -->
|
||||
</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="row">
|
||||
@ -4608,8 +4604,7 @@ if (!empty($INRSYMBOL)) {
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
|
||||
style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content"
|
||||
>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Packing Calculation On <span id="WeightTitle"></span></h4>
|
||||
<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 class="modal-dialog modal-dialog-scrollable " role="document">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" >
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Add Bill Details</h4>
|
||||
</div>
|
||||
@ -4728,7 +4723,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" >
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
|
||||
<div id="newdiv"></div><!-- this div for add more section-->
|
||||
@ -4857,8 +4852,7 @@ if (!empty($INRSYMBOL)) {
|
||||
value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="freightOption"
|
||||
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
|
||||
onclick="setfreightOption();"
|
||||
><span class="bold">Ok</span></a>
|
||||
onclick="setfreightOption();"><span class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -5511,52 +5505,37 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID):
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" id="EditTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>Freight Rate </label>
|
||||
<div class="form-group">
|
||||
<?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;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -5660,8 +5639,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<label><?php echo "Revenue Description"; ?></label>
|
||||
<?php
|
||||
$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>
|
||||
@ -5696,10 +5674,10 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- </section> -->
|
||||
<!-- <script type="text/html" id="RevenueList">
|
||||
<!-- </section> -->
|
||||
<!-- <script type="text/html" id="RevenueList">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
@ -5719,14 +5697,14 @@ if (!empty($INRSYMBOL)) {
|
||||
</td>
|
||||
</tr>
|
||||
</script> -->
|
||||
<script>
|
||||
<script>
|
||||
var index = '1';
|
||||
var userid = '';
|
||||
|
||||
|
||||
|
||||
|
||||
$("#BudgetType").change(function () {
|
||||
$("#BudgetType").change(function() {
|
||||
|
||||
var aa = $("#BudgetType option:selected").text();
|
||||
|
||||
@ -5741,7 +5719,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('.AddRevenue').click(function () {
|
||||
$('.AddRevenue').click(function() {
|
||||
|
||||
tinyMCE.triggerSave();
|
||||
var basic = $('#txtBasicValue').val();
|
||||
@ -5985,8 +5963,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
</script>
|
||||
<script>
|
||||
var SelectedMaterialCode = [];
|
||||
var CollIndex = 0;
|
||||
|
||||
@ -6003,7 +5981,7 @@ if (!empty($INRSYMBOL)) {
|
||||
contentType: false,
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>purchaseorder/addNewPurchaseOrder",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
@ -6023,7 +6001,7 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$(function() {
|
||||
|
||||
$('#TaxesTabel').DataTable({
|
||||
"paging": false,
|
||||
@ -6036,7 +6014,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#Deliverydt').attr({
|
||||
'data-provide': 'datepicker',
|
||||
@ -6080,8 +6058,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
clearTotalItemValues();
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$('#Local').click(function () {
|
||||
$(document).ready(function() {
|
||||
$('#Local').click(function() {
|
||||
//for local tax range selection
|
||||
$('#displayIGST').hide();
|
||||
$('#displaySGST').show();
|
||||
@ -6092,7 +6070,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
});
|
||||
$('#Inter_state').click(function () {
|
||||
$('#Inter_state').click(function() {
|
||||
//for inter state tax range selection
|
||||
$('#SGSTAddModel').hide();
|
||||
$('#displaySGST').hide();
|
||||
@ -6103,13 +6081,13 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
});
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$('#Date').click(function () {
|
||||
$(document).ready(function() {
|
||||
$('#Date').click(function() {
|
||||
//for Date range selection
|
||||
$('#Schedulediv').hide();
|
||||
$('#Deliverydtdiv').show();
|
||||
});
|
||||
$('#Schedule').click(function () {
|
||||
$('#Schedule').click(function() {
|
||||
//for schedule range selection
|
||||
$('#Deliverydtdiv').hide();
|
||||
$('#Schedulediv').show();
|
||||
@ -6118,7 +6096,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('#PoTypeOptions').change(function () {
|
||||
$('#PoTypeOptions').change(function() {
|
||||
|
||||
var potypeval = $('#PoTypeOptions').val();
|
||||
var poopt = <?php echo json_encode($PoTypeOptions, JSON_PRETTY_PRINT) ?>;
|
||||
@ -6129,7 +6107,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
if (potypeval == config) {
|
||||
$('#PaymentMethod').empty();
|
||||
$.each(Payment, function (idx, obj) {
|
||||
$.each(Payment, function(idx, obj) {
|
||||
if (obj.PaymentID == 'PT05') {
|
||||
// console.log(obj.PaymentID);
|
||||
// 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') {
|
||||
|
||||
|
||||
@ -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();
|
||||
$("#SupAddress").val('');
|
||||
@ -6165,7 +6143,7 @@ if (!empty($INRSYMBOL)) {
|
||||
if (id != '0') {
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
var supPaymentTerms = '';
|
||||
$.each(y, function (idx, obj) {
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME :" + obj.MSME + "\n" + obj.Address);
|
||||
@ -6191,7 +6169,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#PaymentMethod').empty();
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
$.each(paymentList, function (idx1, obj1) {
|
||||
$.each(paymentList, function(idx1, obj1) {
|
||||
|
||||
|
||||
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) {
|
||||
@ -6226,7 +6204,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
/*get cost center name using department*/
|
||||
var CostArray = '';
|
||||
$('#DepartmentName').change(function () {
|
||||
$('#DepartmentName').change(function() {
|
||||
$("#AvalBuget").val('');
|
||||
$('#AlertImg').attr("style", "display:none;");
|
||||
CostArray = '';
|
||||
@ -6241,13 +6219,13 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>emergencypurchaseorder/getCostCenterName",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
CostArray = data;
|
||||
$('#CostCenterName').empty();
|
||||
$("#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));
|
||||
|
||||
@ -6291,7 +6269,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
$("#AvalBuget").val(parseFloat(data).toFixed(2));
|
||||
@ -6312,7 +6290,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('#CostCenterName').change(function () {
|
||||
$('#CostCenterName').change(function() {
|
||||
|
||||
var id = $('#CostCenterName').val();
|
||||
$("#AvlBudAmt").val(0);
|
||||
@ -6328,7 +6306,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
$("#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
|
||||
*/
|
||||
|
||||
$('.AddService').click(function () {
|
||||
$('.AddService').click(function() {
|
||||
tinyMCE.triggerSave();
|
||||
if (validateServiceTax()) {
|
||||
// alert('inside Addservice');
|
||||
@ -6691,11 +6669,11 @@ if (!empty($INRSYMBOL)) {
|
||||
/**
|
||||
* This function is used to edit the service seleted po
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
|
||||
var EditGetMaterialData;
|
||||
|
||||
$("#EDITSERVICE").on("shown.bs.modal", function (e) {
|
||||
$("#EDITSERVICE").on("shown.bs.modal", function(e) {
|
||||
tinyMCE.triggerSave();
|
||||
var userid = $(e.relatedTarget).data('userid');
|
||||
console.log("userid:", userid);
|
||||
@ -6739,7 +6717,7 @@ if (!empty($INRSYMBOL)) {
|
||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||
var parsedMaterialData = JSON.parse(materialData);
|
||||
|
||||
$.each(parsedMaterialData, function (index, value) {
|
||||
$.each(parsedMaterialData, function(index, value) {
|
||||
// Assuming userid is defined somewhere in your code
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
$("#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
|
||||
*/
|
||||
$('.EditService').click(function () {
|
||||
$('.EditService').click(function() {
|
||||
tinyMCE.triggerSave();
|
||||
if (validateEditServiceTax()) {
|
||||
|
||||
@ -6974,7 +6952,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var removeItem = $('#materialCode' + rowid).val();
|
||||
|
||||
|
||||
$.each(JSON.parse(materialData), function (index, value) {
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (value.MaterialCode == materialCode) {
|
||||
// $("#ServiceMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
|
||||
}
|
||||
@ -7056,7 +7034,7 @@ if (!empty($INRSYMBOL)) {
|
||||
data: formData,
|
||||
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
||||
contentType: false, // Prevent jQuery from setting the content type header
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
// Handle the server response
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
@ -7067,7 +7045,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#txtDeliveryAddress').val('');
|
||||
window.location = "purchaseorderListing";
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
error: function(xhr, status, error) {
|
||||
// Handle errors
|
||||
// $('#content').loader('hide');
|
||||
alert("Error: " + error);
|
||||
@ -7134,7 +7112,7 @@ if (!empty($INRSYMBOL)) {
|
||||
data: formData,
|
||||
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
||||
contentType: false, // Prevent jQuery from setting the content type header
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
// Handle the server response
|
||||
// alert(data);
|
||||
console.log(data);
|
||||
@ -7145,7 +7123,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#txtDeliveryAddress').val('');
|
||||
window.location = "purchaseorderListing";
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
error: function(xhr, status, error) {
|
||||
// Handle errors
|
||||
alert("Error: " + error);
|
||||
}
|
||||
@ -7233,7 +7211,7 @@ if (!empty($INRSYMBOL)) {
|
||||
/**
|
||||
* update available budget calculation using regNo and cost center while editing
|
||||
*/
|
||||
$('#EditCostCenter').change(function () {
|
||||
$('#EditCostCenter').change(function() {
|
||||
|
||||
var getCostId = $('#EditCostCenter').val();
|
||||
$("#EditAvlBudAmt").val(0);
|
||||
@ -7248,7 +7226,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
$("#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
|
||||
*/
|
||||
$('#EditMaterialCode').change(function () {
|
||||
$('#EditMaterialCode').change(function() {
|
||||
|
||||
var editselectedMaterialCode = '';
|
||||
editselectedMaterialCode = $("#EditMaterialCode").val();
|
||||
|
||||
$.each(JSON.parse(materialData), function (index, value) {
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (editselectedMaterialCode == value.MaterialCode) {
|
||||
$("#EditMaterialCode").val(value.MaterialCode);
|
||||
$("#EditItemName").val(value.MaterialName);
|
||||
@ -7290,13 +7268,13 @@ if (!empty($INRSYMBOL)) {
|
||||
supplierid: d,
|
||||
materialcode: editselectedMaterialCode
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function (e) {
|
||||
$(document).ready(function() {
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function(e) {
|
||||
var userid = $(e.relatedTarget).data('userid');
|
||||
|
||||
var CheckLocalInter = $('#CheckLocalInter' + userid).val();
|
||||
@ -7368,7 +7346,7 @@ if (!empty($INRSYMBOL)) {
|
||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||
var parsedMaterialData = JSON.parse(materialData);
|
||||
|
||||
$.each(parsedMaterialData, function (index, value) {
|
||||
$.each(parsedMaterialData, function(index, value) {
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
$("#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 = '';
|
||||
editselectedMaterialCode = $("#EditRevenueMaterialCode").val();
|
||||
|
||||
$.each(JSON.parse(materialData), function (index, value) {
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (editselectedMaterialCode == value.MaterialCode) {
|
||||
$("#EditRevenueMaterialCode").val(value.MaterialCode);
|
||||
$("#EditRevenueItemName").val(value.MaterialName);
|
||||
@ -7406,13 +7384,13 @@ if (!empty($INRSYMBOL)) {
|
||||
supplierid: d,
|
||||
materialcode: editselectedMaterialCode
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
$('.EditRevenue').click(function () {
|
||||
$('.EditRevenue').click(function() {
|
||||
|
||||
tinyMCE.triggerSave();
|
||||
if (validateEditRevenueTax()) {
|
||||
@ -7648,7 +7626,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
}
|
||||
// this function is used to clear data changing schedule option
|
||||
$('#Scheduleby').change(function () {
|
||||
$('#Scheduleby').change(function() {
|
||||
|
||||
// $("#Deliverydt").datepicker({
|
||||
// minDate: 'now',
|
||||
@ -7660,7 +7638,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
});
|
||||
|
||||
$('#Deliverydt').change(function () {
|
||||
$('#Deliverydt').change(function() {
|
||||
|
||||
$('#Scheduleby').val('');
|
||||
|
||||
@ -7692,7 +7670,7 @@ if (!empty($INRSYMBOL)) {
|
||||
// ExceedQuantityCheck();
|
||||
}
|
||||
|
||||
$("#ScheduleType").change(function () {
|
||||
$("#ScheduleType").change(function() {
|
||||
if ($('#ScheduleType').val().trim() != 'Recurring') {
|
||||
document.getElementById('ServicePeriodOption').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') {
|
||||
document.getElementById('EditServicePeriodOption').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
|
||||
$("#PaymentMethod").change(function () {
|
||||
$("#PaymentMethod").change(function() {
|
||||
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
@ -7803,7 +7781,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
}
|
||||
$('#insuranceTxtDiv').hide();
|
||||
$("#insuranceStatus").change(function () {
|
||||
$("#insuranceStatus").change(function() {
|
||||
|
||||
if ($("#insuranceStatus").val() == "1") {
|
||||
$('#insuranceTxtDiv').show();
|
||||
@ -7841,7 +7819,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
// }
|
||||
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();
|
||||
if ($.inArray(temp, itemvalue) < 0) {
|
||||
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();
|
||||
if ($.inArray(temp2, itemname) < 0) {
|
||||
itemname[y] = temp2;
|
||||
@ -7869,7 +7847,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$("#emergencyitemcode").html(options);
|
||||
} 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();
|
||||
if ($.inArray(temp3, itemvalue) < 0) {
|
||||
itemvalue[x] = temp3;
|
||||
@ -7884,10 +7862,10 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
$("#serviceitemcode").html(options);
|
||||
|
||||
} else { }
|
||||
} else {}
|
||||
}
|
||||
</script>
|
||||
<script type="text/html" id="addList">
|
||||
</script>
|
||||
<script type="text/html" id="addList">
|
||||
<tr id="<%=index%>">
|
||||
<td style="width: 15%;" align="left"><%=MaterialCode1%></td>
|
||||
<td style="width: 15%;" align="left"><%=DeliveryChallanDate%></td>
|
||||
@ -7899,8 +7877,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
</script>
|
||||
<script type="text/html" id="addservice">
|
||||
</script>
|
||||
<script type="text/html" id="addservice">
|
||||
<tr id="<%=index%>">
|
||||
<td style="width: 15%;" align="left"><%=MaterialCode%></td>
|
||||
<td style="width: 15%;" align="left"><%=Description%></td>
|
||||
@ -7908,7 +7886,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</tr>
|
||||
</script>
|
||||
<script>
|
||||
<script>
|
||||
//table append for file uploading
|
||||
var index = '1';
|
||||
var specialrow = 0;
|
||||
@ -8099,11 +8077,11 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Multiple file Upload Script -->
|
||||
<script>
|
||||
<!-- Multiple file Upload Script -->
|
||||
<script>
|
||||
var counter = 0;
|
||||
var counterConstant = 0;
|
||||
|
||||
@ -8111,7 +8089,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$("#addmorebutton").click(function () {
|
||||
$("#addmorebutton").click(function() {
|
||||
|
||||
if (counter > 4) {
|
||||
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%; ">' +
|
||||
'<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>'
|
||||
|
||||
+
|
||||
@ -8143,8 +8121,8 @@ if (!empty($INRSYMBOL)) {
|
||||
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
||||
|
||||
|
||||
'<div class="col-md-3" > '+
|
||||
'</div> '+
|
||||
'<div class="col-md-3" > ' +
|
||||
'</div> ' +
|
||||
'</div><br>';
|
||||
|
||||
$('#newdiv').append(div);
|
||||
@ -8213,14 +8191,14 @@ if (!empty($INRSYMBOL)) {
|
||||
div.innerHTML =
|
||||
|
||||
'<div class="col-md-3">' +
|
||||
'<label><br></label>'+
|
||||
'<label><br></label>' +
|
||||
'<input type="file" name="browseFiles' + counterConstant + '" id="imag" onchange="Copyfilename(this.name); "><br>' +
|
||||
|
||||
'</div>' +
|
||||
|
||||
|
||||
'<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>'
|
||||
|
||||
+
|
||||
@ -8229,8 +8207,8 @@ if (!empty($INRSYMBOL)) {
|
||||
'<div class="col-md-3" style="margin-top:1.8%; ">' +
|
||||
|
||||
|
||||
'<div class="col-md-3" > '+
|
||||
'</div> '+
|
||||
'<div class="col-md-3" > ' +
|
||||
'</div> ' +
|
||||
'</div>';
|
||||
|
||||
$('#newdiv').append(div);
|
||||
@ -8336,7 +8314,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var counters = 0;
|
||||
var counterConstants = 0;
|
||||
|
||||
$("#addemorebutton").click(function () {
|
||||
$("#addemorebutton").click(function() {
|
||||
|
||||
//alert('sda');
|
||||
|
||||
@ -8540,9 +8518,9 @@ if (!empty($INRSYMBOL)) {
|
||||
$("#addemorebutton").show();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$('#IsOpenOrder').change(function () {
|
||||
</script>
|
||||
<script>
|
||||
$('#IsOpenOrder').change(function() {
|
||||
var input = document.getElementById('purpose').value;
|
||||
// alert("IsOpenOrder");
|
||||
if (this.checked) {
|
||||
@ -8573,7 +8551,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('select').each(function () {
|
||||
$('select').each(function() {
|
||||
var $this = $(this);
|
||||
|
||||
// Check if the element already has the class, if not add it
|
||||
@ -8585,6 +8563,4 @@ if (!empty($INRSYMBOL)) {
|
||||
$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 = '';
|
||||
if (!empty($staticspecialinstruction)) {
|
||||
// Reset z-index when the second modal is hidden (optional)
|
||||
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||
});
|
||||
|
||||
$('#editpackagingcalmodel').on('show.bs.modal', function() {
|
||||
// Set a higher z-index for the second modal to appear on top
|
||||
$('#editpackagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||
// Ensure the second modal backdrop appears above the first one
|
||||
setTimeout(function() {
|
||||
$('.modal-backdrop').last().css('z-index', 1055);
|
||||
}, 0);
|
||||
});
|
||||
|
||||
// Reset z-index when the second modal is hidden (optional)
|
||||
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||
$('#editpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$t = '';
|
||||
if (!empty($staticspecialinstruction)) {
|
||||
foreach ($staticspecialinstruction as $text)
|
||||
$t = $text->ConfigValue;
|
||||
}
|
||||
}
|
||||
|
||||
$insuranceStatus = array(
|
||||
$insuranceStatus = array(
|
||||
array("name" => "NO", "value" => "0"),
|
||||
array("name" => "YES", "value" => "1")
|
||||
);
|
||||
$ReqType = '';
|
||||
$CompanyAddress = '';
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$CurrentDate = $dt->format('d-m-Y');
|
||||
$MaxPoDate = '';
|
||||
$AvlAmount = 0;
|
||||
$paymentDate = '';
|
||||
$paymentCheckDays = 'Before';
|
||||
$paymentCheckDays1 = 'After';
|
||||
if (!empty($MaxPODate)) {
|
||||
);
|
||||
$ReqType = '';
|
||||
$CompanyAddress = '';
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$CurrentDate = $dt->format('d-m-Y');
|
||||
$MaxPoDate = '';
|
||||
$AvlAmount = 0;
|
||||
$paymentDate = '';
|
||||
$paymentCheckDays = 'Before';
|
||||
$paymentCheckDays1 = 'After';
|
||||
if (!empty($MaxPODate)) {
|
||||
foreach ($MaxPODate as $date) {
|
||||
|
||||
$MaxPoDate = $date->PODate;
|
||||
}
|
||||
}
|
||||
if (!empty($CompanyDetails)) {
|
||||
}
|
||||
if (!empty($CompanyDetails)) {
|
||||
foreach ($CompanyDetails as $Req) {
|
||||
$CompanyAddress = $Req->Address;
|
||||
}
|
||||
}
|
||||
if (!empty($AvlBudAmt)) {
|
||||
}
|
||||
if (!empty($AvlBudAmt)) {
|
||||
|
||||
$AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', '');
|
||||
}
|
||||
}
|
||||
|
||||
// if(!empty($AvlimportBudAmt))
|
||||
// {
|
||||
// if(!empty($AvlimportBudAmt))
|
||||
// {
|
||||
|
||||
// $AvlAmount = $AvlimportBudAmt;
|
||||
// $AvlAmount = $AvlimportBudAmt;
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
$INR = '';
|
||||
$INRSYM = '';
|
||||
if (!empty($INRSYMBOL)) {
|
||||
$INR = '';
|
||||
$INRSYM = '';
|
||||
if (!empty($INRSYMBOL)) {
|
||||
foreach ($INRSYMBOL as $INR) {
|
||||
$INRSYM = $INR->Currency_Code;
|
||||
$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 {
|
||||
margin-top: -5%;
|
||||
}
|
||||
@ -84,13 +126,13 @@
|
||||
.centered input {
|
||||
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({
|
||||
selector: "textarea#txtSpcialInstruction",
|
||||
|
||||
@ -118,8 +160,8 @@
|
||||
statusbar: false,
|
||||
toolbar: false
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#PaymentMethod").select2();
|
||||
@ -252,8 +294,8 @@
|
||||
return true;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="content-page">
|
||||
</script>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
@ -814,8 +856,8 @@
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||
</div>
|
||||
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
@ -842,13 +884,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<div id="editpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||
</div><!-- /.modal -->
|
||||
<div id="editpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<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"
|
||||
aria-hidden="true">×</button>
|
||||
</div>
|
||||
@ -869,8 +911,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||
</div><!-- /.modal -->
|
||||
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none; overflow-y:scroll !important">
|
||||
<div class="modal-dialog modal-full-width">
|
||||
<div class="modal-content">
|
||||
@ -886,8 +928,6 @@
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-2">
|
||||
<label>Req No<span class="text-danger">*</span></label>
|
||||
|
||||
|
||||
<?php
|
||||
$RL = array("0" => 'Select Req No');
|
||||
if (!empty($RequistionDetails)) {
|
||||
@ -895,11 +935,8 @@
|
||||
$RL[$SID->ReqNo] = $SID->ReqNo . ' ' . ' - ' . ' ' . $SID->DepartmentName;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('Reqnumber', $RL, set_value('Reqnumber'), 'id="Reqnumber" class="form-control select2 required"');
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Department Name</label>
|
||||
@ -1045,34 +1082,23 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreightloc', $options, set_value('drpFreightloc'), 'id="drpFreightloc" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Rate </label>
|
||||
<?php
|
||||
@ -1337,25 +1363,17 @@
|
||||
<div class="form-group col-md-3" id="TripsValueafterHide"></div>
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
||||
<span>NO Of Trips</span>
|
||||
<?php
|
||||
@ -1474,8 +1492,8 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||
</div><!-- /.modal -->
|
||||
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog modal-full-width">
|
||||
<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">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Rate </label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: -2px;">
|
||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
@ -2032,53 +2035,38 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
|
||||
<span>NO Of Trips</span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Rate </span>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||
<span>Freight Amt <?php echo "($INR)" ?></span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
@ -2185,8 +2173,8 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<div class="modal fade" id="DomesticNOT" role="dialog">
|
||||
</div><!-- /.modal -->
|
||||
<div class="modal fade" id="DomesticNOT" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
@ -2222,9 +2210,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- <script type="text/html" id="CapitalList">
|
||||
<!-- <script type="text/html" id="CapitalList">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
@ -2244,7 +2232,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</script> -->
|
||||
<script>
|
||||
<script>
|
||||
var tempUserId = 0;
|
||||
var RequistQuantity = '';
|
||||
var AvilBudAmt = '';
|
||||
@ -5221,13 +5209,19 @@
|
||||
var FreightType = $("#drpFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#TripsValue').show();
|
||||
$('#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 {
|
||||
|
||||
$('#TripsValue').hide();
|
||||
$('#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() != '') {
|
||||
@ -5258,12 +5252,19 @@
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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() != '') {
|
||||
selValue = $("#drpEditFreight").val();
|
||||
$('#txtEditFreight').val('');
|
||||
@ -5662,11 +5663,17 @@
|
||||
var FreightType = $("#drpFreightloc").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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; ?>') {
|
||||
var PackagingCalculation = '';
|
||||
$('#CAPITAL').modal('hide');
|
||||
edit = 'FreightCalculationOn';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||
@ -5808,16 +5814,21 @@
|
||||
var FreightType = $("#drpFreighteditloc").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#TripsValuelocedit').show();
|
||||
$('#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 {
|
||||
|
||||
$('#TripsValuelocedit').hide();
|
||||
$('#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") {
|
||||
selValue = $("#drpFreighteditloc").val();
|
||||
|
||||
@ -5837,7 +5848,6 @@
|
||||
|
||||
if (selValue == '<?php echo PERCENTAGE; ?>') {
|
||||
var PackagingCalculation = '';
|
||||
$('#EDITCAPITAL').modal('hide');
|
||||
$('#editpackagingcalmodel').modal('show');
|
||||
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||
|
||||
@ -6551,4 +6561,4 @@
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
@ -1628,24 +1628,14 @@
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "'); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
@ -1948,25 +1938,16 @@
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="AmendTripsValue" style="display:none;">
|
||||
<span>NO Of Trips</span>
|
||||
<?php
|
||||
@ -3996,15 +3977,19 @@
|
||||
|
||||
|
||||
$('#drpamendFreight').change(function() {
|
||||
|
||||
//alert();
|
||||
var FreightType = $('#drpamendFreight').val();
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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() {
|
||||
var FreightType = $("#drpFreighteditloc").val();
|
||||
|
||||
|
||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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") {
|
||||
selValue = $("#drpFreighteditloc").val();
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -409,7 +409,7 @@ if (!empty($RequistionDetails)) {
|
||||
<!-- <label>Delivery Date</label>
|
||||
|
||||
<?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);
|
||||
?> -->
|
||||
|
||||
@ -1040,60 +1040,45 @@ if (!empty($RequistionDetails)) {
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="AmendTripsValue" style="display:block;">
|
||||
<span>NO Of Trips</span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Rate </span>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||
<span>Freight Amt In <?php echo $INR; ?></span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
|
||||
|
||||
<center> <label>Cost of the product Per UOM</label></center>
|
||||
<hr/>
|
||||
<hr />
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
@ -2577,7 +2562,8 @@ if (!empty($RequistionDetails)) {
|
||||
});
|
||||
}
|
||||
|
||||
});});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('.EditImport').click(function() {
|
||||
@ -3010,16 +2996,21 @@ if (!empty($RequistionDetails)) {
|
||||
|
||||
//alert();
|
||||
var FreightType = $('#drpamendFreight').val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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") {
|
||||
selValue = $("#drpamendFreight").val();
|
||||
$('#AmendtxtFreight').val('');
|
||||
|
||||
@ -320,13 +320,19 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#drpEditFreight').change(function() {
|
||||
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
// alert(FreightType);
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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();
|
||||
$('#txtEditFreight').val('');
|
||||
@ -1716,53 +1722,38 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="form-group col-md-4"></div>
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Rate </label>
|
||||
<div>
|
||||
<?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;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="text-align:left;">
|
||||
<div class="form-group col-md-4"></div>
|
||||
<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 = '';
|
||||
$CompanyAddress = '';
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
@ -139,6 +171,10 @@ if (!empty($getlogpodtl)) {
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
.modal {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
/* #packagingcalmodel {
|
||||
margin-top: 200px;
|
||||
z-index: 1080 !important;
|
||||
@ -516,7 +552,7 @@ if (!empty($getlogpodtl)) {
|
||||
$('#txtAfterPackaging').val('');
|
||||
selValue = $("#PackagingType").val();
|
||||
if (selValue == PercentageType) {
|
||||
$('#REVENUE').modal('hide');
|
||||
// $('#REVENUE').modal('hide');
|
||||
edit = 'PackingCalculationOn';
|
||||
var PackagingCalculation = '';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
@ -547,7 +583,7 @@ if (!empty($getlogpodtl)) {
|
||||
$('#txtEditAfterPackaging').val('');
|
||||
selValue = $("#EditPackagingType").val();
|
||||
if (selValue == PercentageType) {
|
||||
$('#EDITREVENUE').modal('hide');
|
||||
// $('#EDITREVENUE').modal('hide');
|
||||
var PackagingCalculation = '';
|
||||
edit = 'EditPackingCalculationOn';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
@ -606,18 +642,18 @@ if (!empty($getlogpodtl)) {
|
||||
var FreightType = $("#drpFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#TripsValue').show();
|
||||
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||
} else {
|
||||
|
||||
$('#TripsValue').hide();
|
||||
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||
}
|
||||
|
||||
selValue = $("#drpFreight").val();
|
||||
$('#txtFreight').val('');
|
||||
$('#txtAfterFreight').val('');
|
||||
if (selValue == PercentageType) {
|
||||
$('#REVENUE').modal('hide');
|
||||
// $('#REVENUE').modal('hide');
|
||||
freight = 'FreightCalculationOn';
|
||||
var FreightCalculation = '';
|
||||
$('#freightcalmodel').modal('show');
|
||||
@ -660,11 +696,11 @@ if (!empty($getlogpodtl)) {
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#EditTripsValue').show();
|
||||
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||
} else {
|
||||
|
||||
$('#EditTripsValue').hide();
|
||||
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||
}
|
||||
|
||||
selValue = $("#drpEditFreight").val();
|
||||
@ -691,13 +727,12 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
$('#drpViewFreight').change(function() {
|
||||
var FreightType = $("#drpViewFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#ViewTripsValue').show();
|
||||
$(this).parent().removeClass('col-md-4').addClass('col-md-2');
|
||||
} else {
|
||||
|
||||
$('#ViewTripsValue').hide();
|
||||
$(this).parent().removeClass('col-md-2').addClass('col-md-4');
|
||||
}
|
||||
|
||||
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) { ?>
|
||||
<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>
|
||||
<?php
|
||||
} 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
|
||||
} ?>
|
||||
@ -2582,7 +2617,9 @@ if (!empty($getlogpodtl)) {
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
<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="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
<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">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
@ -2849,7 +2885,6 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<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">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
<?php $options = array("0" => 'Select Freight Type');
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
|
||||
?>
|
||||
</div>
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"'); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
@ -3500,7 +3526,6 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="form-group col-md-4">
|
||||
<label>Packaging Type </label>
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ViewPackagingType', 'value' => set_value('ViewPackagingType'), 'id' => 'ViewPackagingType', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
@ -3540,37 +3565,31 @@ if (!empty($getlogpodtl)) {
|
||||
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 class="form-group col-md-2" id="ViewTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Rate </label>
|
||||
<div class="form-group">
|
||||
<?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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label><?php echo "Freight Amt ($INRSYM)"; ?> </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-8"></div>
|
||||
<div class="form-group col-md-2">
|
||||
@ -3668,7 +3687,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</form>
|
||||
</div>
|
||||
@ -3962,7 +3981,9 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
var index = <?php if(isset($index)){ echo $index; } ?>;
|
||||
var index = <?php if (isset($index)) {
|
||||
echo $index;
|
||||
} ?>;
|
||||
var userid = '';
|
||||
var taxcheck = 0;
|
||||
$("#BudgetType").change(function() {
|
||||
@ -4830,7 +4851,7 @@ if (!empty($getlogpodtl)) {
|
||||
var Discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').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);
|
||||
// alert('tot:'+tot);
|
||||
@ -5002,7 +5023,7 @@ if (!empty($getlogpodtl)) {
|
||||
AvlBudAmt = '<?php echo number_format($AvlAmount + $totBasicAmt - $totDiscountAmt, 2, '.', '') ?>';
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
$('#isEdit').val(1);
|
||||
//alert(userid);
|
||||
// alert(userid);
|
||||
var tr = document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
var id = $('#Reqnumber' + userid).val();
|
||||
|
||||
@ -644,6 +644,12 @@ foreach ($PaymentTerms as $TER) {
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#mceu_5{
|
||||
border-width: 0px 0px 0px !important;
|
||||
}
|
||||
#mceu_4{
|
||||
padding: 1px !important;
|
||||
}
|
||||
/* .modal {
|
||||
padding-right: 25% ! important;
|
||||
} */
|
||||
@ -1486,8 +1492,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
|
||||
<div class="form-row px-3">
|
||||
<div class="form-group col-md-6">
|
||||
|
||||
<div class="form-group col-md-6" align="right">
|
||||
CGST In %
|
||||
</div>
|
||||
|
||||
@ -1514,7 +1519,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
</div>
|
||||
<div class="form-row px-3">
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-6" align="right">
|
||||
|
||||
SGST In %
|
||||
</div>
|
||||
@ -1543,7 +1548,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
|
||||
<div class="form-row px-3">
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-6" align="right">
|
||||
|
||||
IGST In %
|
||||
</div>
|
||||
@ -1571,11 +1576,8 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<div class="form-group">
|
||||
@ -1588,11 +1590,8 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<div class="form-group">
|
||||
@ -1604,11 +1603,8 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row pl-3">
|
||||
<div class="form-group col-md-2">
|
||||
<div class="form-group col-md-11">
|
||||
<label>Service Description </label>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<?php $data = array(
|
||||
'name' => 'EdittxtSpcialInstruction',
|
||||
'value' => set_value('EdittxtSpcialInstruction', $ServiceMaterialDescription),
|
||||
@ -1630,7 +1626,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
<div class="modal-footer" align="right">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -529,7 +529,7 @@ if (!empty($getlogpodtl)) {
|
||||
<label>Exchange Rate On</label>
|
||||
<div>
|
||||
<?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);
|
||||
?>
|
||||
</div>
|
||||
@ -565,7 +565,7 @@ if (!empty($getlogpodtl)) {
|
||||
<label>Purchase Order Date</label>
|
||||
<div>
|
||||
<?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);
|
||||
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
|
||||
</div>
|
||||
@ -1697,53 +1697,38 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpaddFreight', $options, set_value('drpaddFreight'), 'id="drpaddFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4" id="AddTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'addNOOfTrips', 'value' => set_value('addNOOfTrips'), 'id' => 'addNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Rate </label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4" style="padding-left: 0px;">
|
||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'addtxtAfterFreight', 'value' => set_value('addtxtAfterFreight'), 'id' => 'addtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
@ -1861,7 +1846,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="form-group col-md-12">
|
||||
<label>Import Description :</label>
|
||||
<?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);
|
||||
?>
|
||||
</div>
|
||||
@ -2304,53 +2289,38 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="EditTripsValue" style="display:block;">
|
||||
<span>NO Of Trips</span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Rate </span>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||
<span>Freight Amt <?php echo $INR; ?></span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
@ -2486,18 +2456,15 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<form>
|
||||
<div class="modal-body p-4">
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-row" style="margin-bottom: 10px;">
|
||||
<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>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'ViewReqNo', 'value' => set_value('ViewReqNo'), 'id' => 'ViewReqNo', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label>Department Name</label>
|
||||
<div>
|
||||
@ -2510,123 +2477,88 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="form-group col-md-3">
|
||||
<label>Cost Center Code</label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Cost Center');
|
||||
|
||||
<?php $options = array("0" => 'Select Cost Center');
|
||||
//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');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" style="padding-right: 0px;">
|
||||
<label>Available Budget Amount (<?php echo $INR ?>)</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewAvlBudAmt', 'value' => set_value('ViewAvlBudAmt'), 'id' => 'ViewAvlBudAmt', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewAvlBudAmt', 'value' => set_value('ViewAvlBudAmt'), 'id' => 'ViewAvlBudAmt', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-row" style="margin-bottom: 10px;">
|
||||
<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>
|
||||
|
||||
<!--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>
|
||||
<?php
|
||||
// $options = array("0"=>'Item Code');
|
||||
|
||||
//if(!empty($MaterialList))
|
||||
//{
|
||||
// foreach ($MaterialList as $SID):
|
||||
|
||||
|
||||
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
||||
|
||||
//endforeach;
|
||||
//}
|
||||
|
||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
||||
|
||||
$options = array("0" => 'Item Code');
|
||||
//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 class="form-group col-md-2">
|
||||
<label>Item Name</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewItemName', 'value' => set_value('ViewItemName'), 'id' => 'ViewItemName', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewItemName', 'value' => set_value('ViewItemName'), 'id' => 'ViewItemName', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-1">
|
||||
<label>UOM</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewUOM', 'value' => set_value('ViewUOM'), 'id' => 'ViewUOM', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewUOM', 'value' => set_value('ViewUOM'), 'id' => 'ViewUOM', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Quantity<span class="text-danger" style="color:red;text-align:right;background-color: #fff;">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-1">
|
||||
<label>Per</label> <?php
|
||||
$data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'readonly' => true, 'class' => 'form-control');
|
||||
<label>Per</label>
|
||||
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'readonly' => true, 'class' => 'form-control');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-2" style="padding: 0px;">
|
||||
<!-- <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>
|
||||
<?php
|
||||
//$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');
|
||||
echo form_input($data);
|
||||
?>
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-row" style="margin-bottom: 10px;">
|
||||
<div class="form-group col-md-3">
|
||||
|
||||
<!-- Basic Price in US $ per Ton : -->
|
||||
|
||||
<p id=labelEditBasicPriceUs><b><?php echo "Basic Price in $Currencycode ($Value)" ?></p>
|
||||
|
||||
|
||||
<label id=labelEditBasicPriceUs><b><?php echo "Basic Price in $Currencycode ($Value)" ?></b></label>
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-group col-md-3">
|
||||
|
||||
<!-- Exchange Rate : -->
|
||||
|
||||
<label id=labelviewexc><?php echo "Exchange Rate ($Currencycode ($Value))" ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
|
||||
<!-- Basic value in INR : -->
|
||||
|
||||
<p id=labelEditBasicINR><label><?php echo "Basic value in ($INR) :"; ?></label></p>
|
||||
|
||||
<label id=labelEditBasicINR><?php echo "Basic value in ($INR) :"; ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$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>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<br />
|
||||
<div class="form-group col-md-6" style="padding:0px;">
|
||||
<div class="form-row" style="border: 1px solid;padding:0px;margin: 10px 0px;">
|
||||
<br>
|
||||
<div class="form-group col-md-6" style="padding:15px;">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
Basic Price (<?php echo $INR ?>)
|
||||
@ -2697,21 +2619,14 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'readonly' => true, 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -2759,9 +2674,6 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
<!-- Custom ED_cess : (e) -->
|
||||
@ -2769,18 +2681,14 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -2799,15 +2707,13 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</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-group col-md-4">
|
||||
<!-- Additional Excise duty : (g) -->
|
||||
@ -2815,25 +2721,17 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div style="display: none;">
|
||||
<?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()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?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()');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewSubtotal', 'value' => set_value('ViewSubtotal'), 'id' => 'ViewSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewSubtotal', 'value' => set_value('ViewSubtotal'), 'id' => 'ViewSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
<!-- Additional Excise duty : (g) -->
|
||||
@ -2841,28 +2739,17 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst', 0), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst', 0), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-8">
|
||||
<!-- Gross duty payable -->
|
||||
@ -2870,105 +2757,65 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewGrossdutypayable ', 'value' => set_value('ViewGrossdutypayable'), 'id' => 'ViewGrossdutypayable', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewGrossdutypayable ', 'value' => set_value('ViewGrossdutypayable'), 'id' => 'ViewGrossdutypayable', 'class' => 'form-control num', 'readonly' => true, 'onkeypress' => 'return isNumberKey(event);');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--Start of Adding of Frieght model-->
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-3">
|
||||
<span>Freight Type </span>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpviewFreight', $options, set_value('drpviewFreight'), 'id="drpviewFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
echo form_dropdown('drpviewFreight', $options, set_value('drpviewFreight'), 'id="drpviewFreight" class="form-control " disabled'); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="ViewTripsValue" style="display:block;">
|
||||
<span>NO Of Trips</span>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'viewNOOfTrips', 'value' => set_value('viewNOOfTrips'), 'id' => 'viewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<?php $data = array('name' => 'viewNOOfTrips', 'value' => set_value('viewNOOfTrips'), 'id' => 'viewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);', 'disabled' => 'disabled');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<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);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'viewtxtFreight', 'value' => set_value('viewtxtFreight'), 'id' => 'viewtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||
<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');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'viewtxtAfterFreight', 'value' => set_value('viewtxtAfterFreight'), 'id' => 'viewtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<center> <label>Cost of the product Per KG</label></center>
|
||||
<hr />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
Duty Impact
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<label>Duty Impact</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'ViewDutyImpact', 'value' => set_value('ViewDutyImpact'), 'id' => 'ViewDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewDutyImpact', 'value' => set_value('ViewDutyImpact'), 'id' => 'ViewDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4" style="margin-top: -4.8%">
|
||||
<span>Quantity</span>
|
||||
<div class="form-group col-md-6">
|
||||
<label>Quantity</label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<?php $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); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<!-- Custom Duty Expenses -->
|
||||
<div class="form-group col-md-6">
|
||||
<label><?php echo "Custom Duty($INR) /UOM" ?></label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<!-- RMC Including Customers -->
|
||||
<label><?php echo "Clearing Charges ($INR)"; ?></label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<!-- RMC Including Customers -->
|
||||
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-group col-md-4" style="display:none;">
|
||||
<!-- Total Amount: -->
|
||||
<label id=labelViewTotalAmount>Total Amount</label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div style="display:none;">
|
||||
<?php
|
||||
$data = array('name' => 'ViewTotalExp', 'value' => set_value('ViewTotalExp'), 'id' => 'ViewTotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'ViewTotalExp', 'value' => set_value('ViewTotalExp'), 'id' => 'ViewTotalExp', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
</div>
|
||||
<div class="form-row" style="margin-bottom: 10px;">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Import Description :</label>
|
||||
<?php
|
||||
$data = array('name' => 'viewtxtInstruction', 'value' => set_value('viewtxtInstruction'), 'id' => 'viewtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
<?php $data = array('name' => 'viewtxtInstruction', 'value' => set_value('viewtxtInstruction'), 'id' => 'viewtxtInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
|
||||
echo form_textarea($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<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 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 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>
|
||||
</form>
|
||||
</div>
|
||||
@ -5601,12 +5420,19 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
$('#drpviewFreight').change(function() {
|
||||
var FreightType = $('#drpviewFreight').val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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('');
|
||||
@ -5636,16 +5462,20 @@ if (!empty($getlogpodtl)) {
|
||||
$('#drpeditFreight').change(function() {
|
||||
var FreightType = $('#drpeditFreight').val();
|
||||
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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('');
|
||||
$('#edittxtFreight').val('');
|
||||
$('#edittxtAfterFreight').val('');
|
||||
@ -5678,16 +5508,22 @@ if (!empty($getlogpodtl)) {
|
||||
$('#drpaddFreight').change(function() {
|
||||
//alert();
|
||||
var FreightType = $('#drpaddFreight').val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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") {
|
||||
selValue = $("#drpaddFreight").val();
|
||||
$('#txtFreight').val('');
|
||||
|
||||
@ -747,8 +747,18 @@ td {
|
||||
if ($("#drpMaterial option:selected").val() == '-1') {
|
||||
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);
|
||||
if (isNaN(qty) || qty < 1) {
|
||||
$('#Quantity').focus();
|
||||
$('#Quantity').click();
|
||||
alert('Please Enter the Vaild Quantity');
|
||||
return false;
|
||||
}
|
||||
@ -773,13 +783,13 @@ td {
|
||||
index = parseInt(index) + 1;
|
||||
|
||||
var rowHtml = `<tr id="${temp}">
|
||||
<td align="left">${temp}</td>
|
||||
<td align="left">${materialCode}</td>
|
||||
<td align="left">${materialName}</td>
|
||||
<td align="left">${uom}</td>
|
||||
<td align="left">${quantity}</td>
|
||||
<td align="left">0.00</td>
|
||||
<td align="left">NEW</td>
|
||||
<td align="center">${temp}</td>
|
||||
<td align="center">${materialCode}</td>
|
||||
<td align="center">${materialName}</td>
|
||||
<td align="center">${uom}</td>
|
||||
<td align="center">${quantity}</td>
|
||||
<td align="center">0.00</td>
|
||||
<td align="center">NEW</td>
|
||||
<td>
|
||||
<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>
|
||||
|
||||
@ -538,7 +538,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
<label>Exchange Rate On</label>
|
||||
<div>
|
||||
<?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);
|
||||
?>
|
||||
</div>
|
||||
@ -899,7 +899,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
|
||||
<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)">
|
||||
<span class="bold">Submit</span>
|
||||
@ -1339,53 +1339,38 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
<div class="form-row" style="padding:0px;">
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Rate </label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4" style="padding-left: 0px;">
|
||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -1397,11 +1382,8 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<label>Duty Impact</label>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-group col-md-4" style="margin-top: -4.8%">
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label>Quantity</label>
|
||||
<div>
|
||||
<?php
|
||||
@ -1423,11 +1406,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<!-- Custom Duty Expenses -->
|
||||
<label><?php echo "Custom Duty($INR)/UOM"; ?></label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-row mt-2">
|
||||
<div class="form-group col-md-4">
|
||||
<div class="form-group col-md-6">
|
||||
<!-- RMC Including Customers -->
|
||||
<label><?php echo "Clearing Charges($INR)"; ?></label>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<div>
|
||||
<?php
|
||||
$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 class="form-group col-md-4" style="margin-top: -4.8%">
|
||||
<div class="form-group col-md-6">
|
||||
<!-- RMC Including Customers -->
|
||||
<label><?php echo "Nett per UOM($INR)"; ?></label>
|
||||
<div>
|
||||
@ -1464,16 +1442,16 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group col-md-4" style="display:none;">
|
||||
<div class="form-group col-md-6" style="display: none;">
|
||||
<!-- Total Amount: -->
|
||||
|
||||
<label id=labelTotalAmount>Total Amount</label>
|
||||
</div>
|
||||
<div class="form-group col-md-4" style="display: none;">
|
||||
<div class="form-group col-md-6" style="display: none;">
|
||||
<div>
|
||||
<?php
|
||||
$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 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>
|
||||
<?php
|
||||
$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-group col-md-3">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpeditFreight', $options, set_value('drpeditFreight'), 'id="drpeditFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="editTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'editNOOfTrips', 'value' => set_value('editNOOfTrips'), 'id' => 'editNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Rate </label>
|
||||
<div>
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3" style="padding-left: 0px;">
|
||||
<label>Freight Amt In <?php echo $INR; ?></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in edit model -->
|
||||
@ -2108,6 +2071,10 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
// for delivey date and scheduled
|
||||
//alert();
|
||||
$(document).ready(function() {
|
||||
setTimeout(() => {
|
||||
$('#Exchangerateon').addClass('date_range form-date-search');
|
||||
|
||||
}, 1000);
|
||||
$('#Date').click(function() {
|
||||
//for Date range selection
|
||||
$('#Schedulediv').hide();
|
||||
@ -4203,27 +4170,39 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
});
|
||||
$('#drpFreight').change(function() {
|
||||
var FreightType = $('#drpFreight').val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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() {
|
||||
var FreightType = $('#drpeditFreight').val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
|
||||
$('#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 {
|
||||
|
||||
$('#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") {
|
||||
selValue = $("#drpEditFreight").val();
|
||||
$('#txtEditFreight').val('');
|
||||
|
||||
@ -341,23 +341,28 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.text-truncate:hover {
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
word-wrap: break-word;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.text-truncate.expanded {
|
||||
white-space: normal;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* This CSS is for Table Cell Expend*/
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<!-- 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>
|
||||
#loader {
|
||||
display: flex;
|
||||
@ -397,22 +402,73 @@
|
||||
transform: rotate(0);
|
||||
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: rotate(900deg);
|
||||
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
}
|
||||
|
||||
100% {
|
||||
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>
|
||||
<!-- 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>
|
||||
|
||||
<body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'>
|
||||
|
||||
<!-- Begin page -->
|
||||
<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 = '';
|
||||
$CompanyAddress = '';
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
@ -469,7 +501,7 @@ if (!empty($INRSYMBOL)) {
|
||||
selValue = $("#PackagingType").val();
|
||||
if (selValue == PercentageType) {
|
||||
var PackagingCalculation = '';
|
||||
$('#REVENUE').modal('hide');
|
||||
// $('#REVENUE').modal('hide');
|
||||
edit = 'PackingCalculationOn';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
$('#txtPackaging').removeAttr('readonly', 'true');
|
||||
@ -507,7 +539,7 @@ if (!empty($INRSYMBOL)) {
|
||||
selValue = $("#EditPackagingType").val();
|
||||
if (selValue == PercentageType) {
|
||||
var PackagingCalculation = '';
|
||||
$('#EDITREVENUE').modal('hide');
|
||||
// $('#EDITREVENUE').modal('hide');
|
||||
edit = 'EditPackingCalculationOn';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
$('#txtEditPackaging').removeAttr('readonly', 'true');
|
||||
@ -621,10 +653,19 @@ if (!empty($INRSYMBOL)) {
|
||||
var freight = '';
|
||||
$('#drpFreight').change(function() {
|
||||
var FreightType = $("#drpFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
$('#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 {
|
||||
$('#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") {
|
||||
selValue = $("#drpFreight").val();
|
||||
@ -632,7 +673,7 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#txtAfterFreight').val('');
|
||||
if (selValue == PercentageType) {
|
||||
var freightCalculation = '';
|
||||
$('#REVENUE').modal('hide');
|
||||
// $('#REVENUE').modal('hide');
|
||||
freight = 'FreightCalculationOn';
|
||||
$('#freightcalmodel').modal('show');
|
||||
//$('#freightcalmodel').modal('blur');
|
||||
@ -665,10 +706,19 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
$('#drpEditFreight').change(function() {
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
$('#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 {
|
||||
$('#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") {
|
||||
selValue = $("#drpEditFreight").val();
|
||||
@ -678,7 +728,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var FreightCalculation = '';
|
||||
// $('#freight').modal('show');
|
||||
freight = 'EditFreightCalculationOn';
|
||||
$('#EDITREVENUE').modal('hide');
|
||||
// $('#EDITREVENUE').modal('hide');
|
||||
$('#freightcalmodel').modal('show');
|
||||
$('#txtEditFreight').removeAttr('readonly', 'true');
|
||||
//Editchange();
|
||||
@ -2568,43 +2618,30 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="form-group col-md-4"></div>
|
||||
<div class="form-group col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2" id="TripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||
<?php
|
||||
@ -2922,53 +2959,38 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Freight Type </label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2" id="EditTripsValue" style="display:none;">
|
||||
<label>NO Of Trips</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Rate </label>
|
||||
<div class="form-group">
|
||||
<?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;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-8"></div>
|
||||
<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