po pdf changes and bug fixed
This commit is contained in:
parent
8467aba991
commit
bd7033a9cc
@ -653,11 +653,11 @@ function purchaseorderListing($forwhat='')
|
||||
}
|
||||
|
||||
// This Method to get the Revenue PO Child Details for Edit the Item
|
||||
function GetRevenuePurchaseOrderDetails($PONO = '')
|
||||
function GetRevenuePurchaseOrderDetails($PONO = '')
|
||||
{
|
||||
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,Quantity,ReceivedQuantity,Rate,Req.Status,(Quantity *Rate) as BasicValue , ((AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST +
|
||||
AfterIGST + Insurance - AfterDiscount)) as Taxamount ,TotalValue,Tax.*,Req.CostCenterCode,Dept.DepartmentName
|
||||
AfterIGST + Insurance)) as Taxamount ,TotalValue,Tax.*,Req.CostCenterCode,Dept.DepartmentName
|
||||
FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
join T_Revenue_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
|
||||
@ -677,10 +677,10 @@ function purchaseorderListing($forwhat='')
|
||||
function GetRevenuePurchaseOrderDetailsForPDF($PONO = '')
|
||||
{
|
||||
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,Date(ReqMast.ReqDate) as ReqDate,Mat.MaterialCode,Mat.MaterialName,
|
||||
Mat.UOM,Quantity,Rate,(Quantity *Rate) as BasicValue ,
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
|
||||
Mat.UOM,Mat.HSNCODE,Quantity,Rate,(Quantity *Rate) as BasicValue ,
|
||||
(AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST +
|
||||
AfterIGST + Insurance - AfterDiscount) as Taxamount,AdvanceAmount,
|
||||
AfterIGST + Insurance) as Taxamount,AdvanceAmount,
|
||||
TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentID,Payment.PaymentTerms
|
||||
FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
@ -690,7 +690,6 @@ function purchaseorderListing($forwhat='')
|
||||
|
||||
join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
|
||||
left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
|
||||
join T_Requestion_Master ReqMast on LineItem.ReqNo=ReqMast.ReqNo
|
||||
where LineItem.PONO =?';
|
||||
|
||||
$query = $this->db->query($subQuery,array($PONO));
|
||||
@ -1329,19 +1328,18 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
}
|
||||
|
||||
// This Method to get the Capital PO Details for pdf
|
||||
function GetCapitalPurchaseOrderDetailsForPDF($PONO = '')
|
||||
function GetCapitalPurchaseOrderDetailsForPDF($PONO = '')
|
||||
{
|
||||
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
|
||||
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
|
||||
LineItem.CostCenterCode , POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentID,Payment.PaymentTerms,AdvanceAmount
|
||||
Mat.UOM,Mat.HSNCODE,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
|
||||
LineItem.CostCenterCode , POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentID,Payment.PaymentTerms
|
||||
FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
|
||||
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
|
||||
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
|
||||
join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
|
||||
left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
|
||||
where LineItem.PONO =?';
|
||||
$query = $this->db->query($subQuery,array($PONO));
|
||||
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/I </a></span></center>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
@ -145,9 +145,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PO DATE :<?php echo $Podt?></td>
|
||||
<td>DELIVERY DATE / SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
<td>PLACE OF ORIGIN: <?php echo $PlaceofOrigin;?></td>
|
||||
<td>PO DATE : <?php echo $Podt?></td>
|
||||
<td>DELIVERY DATE / SCHEDULE BY : <?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
<td>PLACE OF ORIGIN: <?php echo $PlaceofOrigin;?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -158,31 +158,36 @@
|
||||
<div class="page" style="font-size:12px;">
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center</td>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td style="text-align: center;">Requistion Number</td>
|
||||
<td style="text-align: center;">Requistion Date</td>
|
||||
<td style="text-align: center;">Requested By</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $ReqNo;?></td>
|
||||
<td><?php echo $ReqBy;?></td>
|
||||
<td><?php echo $DEPNAME?></td>
|
||||
<td><?php echo $CostCenterCode?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqNo;?></td>
|
||||
<td style="text-align: center;">03/08/2017</td>
|
||||
<td style="text-align: center;"><?php echo $ReqBy;?></td>
|
||||
<td style="text-align: center;"><?php echo $DEPNAME?></td>
|
||||
<td style="text-align: center;"><?php echo $CostCenterCode?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" border="0" width="100%" >
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th>#</th>
|
||||
<th>Item and Description</th>
|
||||
<th>Qty</th>
|
||||
<th>UOM</p>
|
||||
<th>Rate per unit in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<th>Basic Price in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" border="1" width="100%" >
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<th style="text-align: center;">#</th>
|
||||
<th style="text-align: center;">Item and Description</th>
|
||||
<th style="text-align: center;">HSN Code</th>
|
||||
<th style="text-align: center;">UOM</th>
|
||||
<th style="text-align: center;">Qty</th>
|
||||
|
||||
<th style="text-align: center;">Rate per unit in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<th style="text-align: center;">Basic Price in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<!-- <th>Total Amount in <?php echo "$CurrencyCode ($CurrencyName)"?></th> -->
|
||||
|
||||
</tr>
|
||||
@ -221,10 +226,12 @@
|
||||
|
||||
|
||||
<tr>
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td>000666</td>
|
||||
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->UOM ; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
<td align="right"><?php $BasicValue=($record->Quantity*$record->Rate);
|
||||
echo number_format($BasicValue,2) ; ?></td>
|
||||
@ -262,9 +269,9 @@
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
</table>
|
||||
<p> </p>
|
||||
<p><strong>Payment Terms:</strong> <?php echo $PaymentTerms;?></p>
|
||||
|
||||
<div align="Left"> <b>Special Instructions :</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
@ -345,23 +352,10 @@
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Payment Terms</strong></p>
|
||||
<p><?php echo $PaymentTerms;?></p>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
|
||||
<p><?php echo $CompanyName; ?></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<div align="Left"> <b>Special Instructions :</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
@ -372,8 +366,8 @@
|
||||
|
||||
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
<div align="Left"> <b> Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b> Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@ -382,7 +376,21 @@
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
|
||||
<p><?php echo $CompanyName; ?></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@ -191,19 +191,47 @@ $('#drpSupplier').change(function() {
|
||||
if(id != '0')
|
||||
{
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var PaymentID='';
|
||||
$('#PaymentTerms').empty();
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#PaymentTerms").val(obj.PaymentID);
|
||||
|
||||
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
if(PaymentID!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
}
|
||||
else{
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@ -1826,7 +1854,7 @@ $(document).ready(function () {
|
||||
$TotalBasicAmount = $TotalBasicAmount + $record->BasicValue * $FrequencyNo;
|
||||
|
||||
}
|
||||
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
|
||||
?>
|
||||
<?php
|
||||
|
||||
}
|
||||
@ -1903,7 +1931,8 @@ $(document).ready(function () {
|
||||
|
||||
<div align="right"><br/>
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<?php if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED ) {
|
||||
if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED){?>
|
||||
@ -1983,7 +2012,7 @@ $(document).ready(function () {
|
||||
|
||||
</script>
|
||||
<script>
|
||||
var index = $('#txtRowCount').val();;
|
||||
var index = <?php echo $index; ?>;
|
||||
var userid = '';
|
||||
var SelectedMaterialCode = [];
|
||||
var CollIndex = 0;
|
||||
@ -2190,7 +2219,7 @@ $('.AddService').click(function(){
|
||||
var uom = $("#UOM").val();
|
||||
var quantity = $("#Quantity").val();
|
||||
var itemRate = parseFloat($("#Rate").val()).toFixed(2);
|
||||
|
||||
|
||||
|
||||
var Cgst = $("#Cgst").val();
|
||||
var AfterCgst = $("#AfterCgst").val();
|
||||
|
||||
@ -278,7 +278,7 @@ var SelectedMaterialList = {
|
||||
$('#txtDiscount').val('');
|
||||
$('#txtAfterDiscount').val('');
|
||||
}
|
||||
calculatePackaging(0);
|
||||
change();
|
||||
|
||||
});
|
||||
$('#EditDiscountType').change(function() {
|
||||
@ -308,7 +308,7 @@ var SelectedMaterialList = {
|
||||
$('#EditDiscountType').val("0");
|
||||
$('#EditRate').focus();
|
||||
}
|
||||
calculateDiscount(1);
|
||||
Editchange();
|
||||
});
|
||||
|
||||
$('#PackagingType').change(function() {
|
||||
@ -496,8 +496,7 @@ function calculateDiscount(isEdit)
|
||||
$('#txtAfterDiscount').val("0.00");
|
||||
}
|
||||
}
|
||||
calculateVat(0);
|
||||
calculateCST(0);
|
||||
|
||||
calculateTotalValue();
|
||||
}
|
||||
else
|
||||
@ -636,8 +635,7 @@ function calculatePackaging(isEdit)
|
||||
$('#txtAfterPackaging').val("0.00");
|
||||
}
|
||||
}
|
||||
calculateVat(0);
|
||||
calculateCST(0);
|
||||
|
||||
calculateTotalValue();
|
||||
}
|
||||
else
|
||||
@ -1654,24 +1652,26 @@ function SetExciseCalculationCancel()
|
||||
var txtUnitPrice = parseFloat($('#EditRevenueRate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtEditRevenueBasicValue').val(Tot);
|
||||
|
||||
|
||||
calculateDiscount(isEdit);
|
||||
var discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val();
|
||||
var basic = $('#txtEditRevenueBasicValue').val();
|
||||
var basicValue = parseFloat(basic-discount);
|
||||
|
||||
if($("#RevenueEditCgst").val()!=''){
|
||||
$('#RevenueEditAfterCgst').val(calculateCgstTax($('#txtEditRevenueBasicValue').val(),$('#RevenueEditCgst').val()));
|
||||
$('#RevenueEditAfterCgst').val(calculateCgstTax(basicValue,$('#RevenueEditCgst').val()));
|
||||
}
|
||||
if($("#RevenueEditSgst").val()!=''){
|
||||
|
||||
$('#RevenueEditAfterSgst').val(calculateSgstTax($('#txtEditRevenueBasicValue').val(),$('#RevenueEditSgst').val()));
|
||||
$('#RevenueEditAfterSgst').val(calculateSgstTax(basicValue,$('#RevenueEditSgst').val()));
|
||||
}
|
||||
|
||||
if($("#RevenueEditIgst").val()!=''){
|
||||
|
||||
$('#RevenueEditAfterIgst').val(calculateIgstTax($('#txtEditRevenueBasicValue').val(),$('#RevenueEditIgst').val()));
|
||||
$('#RevenueEditAfterIgst').val(calculateIgstTax(basicValue,$('#RevenueEditIgst').val()));
|
||||
}
|
||||
|
||||
calculateFreight(isEdit)
|
||||
calculateDiscount(isEdit);
|
||||
|
||||
calculatePackaging(isEdit);
|
||||
calculateEditTotalValue();
|
||||
|
||||
@ -1695,18 +1695,21 @@ function SetExciseCalculationCancel()
|
||||
calculatePackaging(isEdit);
|
||||
}
|
||||
|
||||
|
||||
var discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val();
|
||||
var basic = $('#txtBasicValue').val();
|
||||
var basicValue = parseFloat(basic-discount);
|
||||
if($("#RevenueCgst").val()!=''){
|
||||
$('#RevenueAfterCgst').val(calculateCgstTax($('#txtBasicValue').val(),$('#RevenueCgst').val()));
|
||||
|
||||
$('#RevenueAfterCgst').val(calculateCgstTax(basicValue,$('#RevenueCgst').val()));
|
||||
}
|
||||
if($("#RevenueSgst").val()!=''){
|
||||
|
||||
$('#RevenueAfterSgst').val(calculateSgstTax($('#txtBasicValue').val(),$('#RevenueSgst').val()));
|
||||
$('#RevenueAfterSgst').val(calculateSgstTax(basicValue,$('#RevenueSgst').val()));
|
||||
}
|
||||
|
||||
if($("#RevenueIgst").val()!=''){
|
||||
|
||||
$('#RevenueAfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#RevenueIgst').val()));
|
||||
$('#RevenueAfterIgst').val(calculateIgstTax(basicValue,$('#RevenueIgst').val()));
|
||||
}
|
||||
|
||||
|
||||
@ -2918,7 +2921,7 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(1);','style'=>'text-align:right;');
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Editchange();calculateDiscount(1);','style'=>'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -3238,7 +3241,7 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(0);');
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'change();calculateDiscount(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -5315,12 +5318,12 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
if(id != '0')
|
||||
{
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
var supPaymentTerms='';
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
supPaymentTerms=obj.PaymentTerms;
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
|
||||
|
||||
|
||||
@ -5329,8 +5332,12 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
}
|
||||
|
||||
});
|
||||
if(supPaymentTerms!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$('#PaymentMethod').empty();
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
$.each(paymentList, function(idx1, obj1) {
|
||||
|
||||
@ -5355,9 +5362,7 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentID).html(obj.PaymentTerms));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -55,7 +55,12 @@
|
||||
|
||||
|
||||
$ServiceDescription =$PO->ServiceDescription;
|
||||
if($PO->PaymentID!='PT08'){
|
||||
$PaymentTerms = $PO->PaymentTerms;
|
||||
}
|
||||
else{
|
||||
$PaymentTerms = $PO->PaymentTerms . ' ( '.$PO->PaymentOtherDescription.' ) ';
|
||||
}
|
||||
$Placeoforigin=$PO->Import_PlaceofOrgin;
|
||||
$ExchangeRate = $PO->ExchangeRate;
|
||||
$CapitalRange = $PO->CapitalRange;
|
||||
@ -161,7 +166,7 @@
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td>01/08/2017</td><!--Requistion Date code should come from DB-->
|
||||
<td><?php echo $ReqDetails['ReqDate']; ?></td><!--Requistion Date code should come from DB-->
|
||||
<td><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
@ -233,7 +238,7 @@
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td> <?php echo $record->MaterialCode ; ?></td>
|
||||
<td><?php echo $record->MaterialName ; ?></td>
|
||||
<td>000666</td><!--HSN code should come from DB-->
|
||||
<td><?php echo $record->HSNCODE ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo number_format(($record->Rate),2, '.', '') ; ?></td>
|
||||
|
||||
@ -70,9 +70,6 @@ if(!empty($INRSYMBOL))
|
||||
#DomesticNOT {
|
||||
margin-top:200px;
|
||||
z-index: 1080 !important;
|
||||
}
|
||||
.num {
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
<script src="<?php echo base_url() ?>assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
||||
@ -88,8 +85,6 @@ if(!empty($INRSYMBOL))
|
||||
toolbar: false
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$("#PaymentMethod").select2();
|
||||
|
||||
clearTotalItemValues();
|
||||
$('#CapitalToatlOrder').val(0);
|
||||
//Initialize Select2 Elements
|
||||
@ -361,7 +356,7 @@ function vaildateBeforeOpenModal()
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" id="Schedulediv">
|
||||
<label >Schedule By</label>
|
||||
<label >Schedule </label>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
|
||||
@ -405,7 +400,7 @@ function vaildateBeforeOpenModal()
|
||||
<label>Exchange Rate On</label>
|
||||
<div class="form-group">
|
||||
<?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' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -414,7 +409,7 @@ function vaildateBeforeOpenModal()
|
||||
<label id="CurrencySymbol">Exchange Rate</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -447,7 +442,7 @@ function vaildateBeforeOpenModal()
|
||||
<legend>Payment Details</legend>
|
||||
<!-- Text input-->
|
||||
<div class="col-md-3">
|
||||
<label for="payablefrom">Payable Terms</label>
|
||||
<span for="payablefrom">Payable Terms</span>
|
||||
|
||||
|
||||
|
||||
@ -465,7 +460,7 @@ function vaildateBeforeOpenModal()
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control select2"');
|
||||
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
|
||||
@ -526,9 +521,9 @@ function vaildateBeforeOpenModal()
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:1000px;">
|
||||
<div class="modal-content" style="width:1100px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Capital Purchase Order Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
@ -572,7 +567,7 @@ function vaildateBeforeOpenModal()
|
||||
<div>
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
@ -582,7 +577,7 @@ function vaildateBeforeOpenModal()
|
||||
<label>Avail Bud Amount<?php echo "($INR)"?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -592,7 +587,7 @@ function vaildateBeforeOpenModal()
|
||||
<label> Exchange Rate</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExchangeRtModal','value' => set_value('ExchangeRtModal'),'id'=>'ExchangeRtModal', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'ExchangeRtModal','value' => set_value('ExchangeRtModal'),'id'=>'ExchangeRtModal', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -606,7 +601,7 @@ function vaildateBeforeOpenModal()
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0"=>'Item Code');
|
||||
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control num select2"');
|
||||
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control select2"');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@ -614,7 +609,7 @@ function vaildateBeforeOpenModal()
|
||||
<label>Item Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CapitalItemName','value' => set_value('ICapitalItemName'),'id'=>'CapitalItemName', 'class' => 'form-control ' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CapitalItemName','value' => set_value('ICapitalItemName'),'id'=>'CapitalItemName', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -634,7 +629,7 @@ function vaildateBeforeOpenModal()
|
||||
<label>Quantity</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPQuantity','value' => set_value('CPQuantity'),'id'=>'CPQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'CPQuantity','value' => set_value('CPQuantity'),'id'=>'CPQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -643,7 +638,7 @@ function vaildateBeforeOpenModal()
|
||||
<label id="RateIn">Rate(In INR /UOM)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPRate','value' => set_value('CPRate'),'id'=>'CPRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();' );
|
||||
$data = array('name' => 'CPRate','value' => set_value('CPRate'),'id'=>'CPRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -652,7 +647,7 @@ function vaildateBeforeOpenModal()
|
||||
<label id="TotalAmount">Basic value in INR</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPTotalAmount','value' => set_value('CPTotalAmount'),'id'=>'CPTotalAmount', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CPTotalAmount','value' => set_value('CPTotalAmount'),'id'=>'CPTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -662,7 +657,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-12">
|
||||
|
||||
|
||||
<div class="col-md-12" id="CAPdiv" >
|
||||
<div class="col-md-12" id="CAPdiv" style="border:1px solid #000;padding:5px;">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
@ -774,7 +769,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4" style="display:none;">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'BasicPriceTax','value' => set_value('BasicPriceTax'),'id'=>'BasicPriceTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'BasicPriceTax','value' => set_value('BasicPriceTax'),'id'=>'BasicPriceTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -782,7 +777,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterBasicPriceTax','value' => set_value('AfterBasicPriceTax'),'id'=>'AfterBasicPriceTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterBasicPriceTax','value' => set_value('AfterBasicPriceTax'),'id'=>'AfterBasicPriceTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -795,7 +790,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'LandingCharge','value' => set_value('LandingCharge'),'id'=>'LandingCharge', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'LandingCharge','value' => set_value('LandingCharge'),'id'=>'LandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -803,7 +798,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterLandingCharge','value' => set_value('AfterLandingCharge'),'id'=>'AfterLandingCharge', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterLandingCharge','value' => set_value('AfterLandingCharge'),'id'=>'AfterLandingCharge', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -816,7 +811,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Highseas ','value' => set_value('Highseas'),'id'=>'Highseas', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' , 'onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'Highseas ','value' => set_value('Highseas'),'id'=>'Highseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' , 'onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -824,7 +819,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterHighseas','value' => set_value('AfterHighseas'),'id'=>'AfterHighseas', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterHighseas','value' => set_value('AfterHighseas'),'id'=>'AfterHighseas', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -837,7 +832,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Customduty','value' => set_value('Customduty'),'id'=>'Customduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'Customduty','value' => set_value('Customduty'),'id'=>'Customduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -845,7 +840,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomduty','value' => set_value('AfterCustomduty'),'id'=>'AfterCustomduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomduty','value' => set_value('AfterCustomduty'),'id'=>'AfterCustomduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -858,7 +853,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyTax','value' => set_value('ExcisedutyTax'),'id'=>'ExcisedutyTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'ExcisedutyTax','value' => set_value('ExcisedutyTax'),'id'=>'ExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -866,7 +861,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyTax','value' => set_value('AfterExcisedutyTax'),'id'=>'AfterExcisedutyTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutyTax','value' => set_value('AfterExcisedutyTax'),'id'=>'AfterExcisedutyTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -879,7 +874,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyEDcess','value' => set_value('ExcisedutyEDcess'),'id'=>'ExcisedutyEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'ExcisedutyEDcess','value' => set_value('ExcisedutyEDcess'),'id'=>'ExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -887,7 +882,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyEDcess','value' => set_value('AfterExcisedutyEDcess'),'id'=>'AfterExcisedutyEDcess', 'class' => 'form-control num','readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutyEDcess','value' => set_value('AfterExcisedutyEDcess'),'id'=>'AfterExcisedutyEDcess', 'class' => 'form-control','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -900,7 +895,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutySHcess','value' => set_value('ExcisedutySHcess'),'id'=>'ExcisedutySHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'ExcisedutySHcess','value' => set_value('ExcisedutySHcess'),'id'=>'ExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -908,7 +903,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutySHcess','value' => set_value('AfterExcisedutySHcess'),'id'=>'AfterExcisedutySHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutySHcess','value' => set_value('AfterExcisedutySHcess'),'id'=>'AfterExcisedutySHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -921,7 +916,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomEDcess','value' => set_value('CustomEDcess'),'id'=>'CustomEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'CustomEDcess','value' => set_value('CustomEDcess'),'id'=>'CustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -929,7 +924,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomEDcess','value' => set_value('AfterCustomEDcess'),'id'=>'AfterCustomEDcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomEDcess','value' => set_value('AfterCustomEDcess'),'id'=>'AfterCustomEDcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -942,7 +937,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomSHcess','value' => set_value('CustomSHcess'),'id'=>'CustomSHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'CustomSHcess','value' => set_value('CustomSHcess'),'id'=>'CustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -950,7 +945,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomSHcess','value' => set_value('AfterCustomSHcess'),'id'=>'AfterCustomSHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomSHcess','value' => set_value('AfterCustomSHcess'),'id'=>'AfterCustomSHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -965,7 +960,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AdditionalExciseduty ','value' => set_value('AdditionalExciseduty'),'id'=>'AdditionalExciseduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'AdditionalExciseduty ','value' => set_value('AdditionalExciseduty'),'id'=>'AdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -973,7 +968,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterAdditionalExciseduty','value' => set_value('AfterAdditionalExciseduty'),'id'=>'AfterAdditionalExciseduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterAdditionalExciseduty','value' => set_value('AfterAdditionalExciseduty'),'id'=>'AfterAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -986,7 +981,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -999,7 +994,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvailableModvat','value' => set_value('AvailableModvat'),'id'=>'AvailableModvat', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AvailableModvat','value' => set_value('AvailableModvat'),'id'=>'AvailableModvat', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?> (b + c + d + g)
|
||||
</div>
|
||||
@ -1014,7 +1009,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1032,7 +1027,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'purchaserate','value' => set_value('purchaserate'),'id'=>'purchaserate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
$data = array('name' => 'purchaserate','value' => set_value('purchaserate'),'id'=>'purchaserate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1041,7 +1036,7 @@ function vaildateBeforeOpenModal()
|
||||
<span>Quantity</span>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PurQuantity','value' => set_value('PurQuantity'),'id'=>'PurQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'PurQuantity','value' => set_value('PurQuantity'),'id'=>'PurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1056,7 +1051,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomDutyExpenses ','value' => set_value('CustomDutyExpenses'),'id'=>'CustomDutyExpenses', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
$data = array('name' => 'CustomDutyExpenses ','value' => set_value('CustomDutyExpenses'),'id'=>'CustomDutyExpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1070,7 +1065,7 @@ function vaildateBeforeOpenModal()
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RMCIncludingCustomers','value' => set_value('RMCIncludingCustomers'),'id'=>'RMCIncludingCustomers', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
$data = array('name' => 'RMCIncludingCustomers','value' => set_value('RMCIncludingCustomers'),'id'=>'RMCIncludingCustomers', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1113,9 +1108,9 @@ function vaildateBeforeOpenModal()
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:1000px;">
|
||||
<div class="modal-content" style="width:1100px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Capital Purchase Order Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
@ -1155,7 +1150,7 @@ function vaildateBeforeOpenModal()
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Cost Center Name</label>
|
||||
<label>Cost Center Code</label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
@ -1249,7 +1244,7 @@ function vaildateBeforeOpenModal()
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12" id="EDITCAPdiv">
|
||||
<div class="col-md-12" style="border:1px solid #000;padding:5px;" id="EDITCAPdiv">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
@ -1991,8 +1986,7 @@ function vaildateBeforeOpenModal()
|
||||
$('#drpSupplier').change(function() {
|
||||
|
||||
var supPaymentTerms='';
|
||||
var supPaymentAT='';
|
||||
var subPaymentDate='';
|
||||
|
||||
var id = $('#drpSupplier').val();
|
||||
|
||||
$("#SupAddress").val('');
|
||||
@ -2007,8 +2001,8 @@ function vaildateBeforeOpenModal()
|
||||
{
|
||||
|
||||
$("#SupAddress").val(obj.Address);
|
||||
supPaymentTerms=obj.PaymentTerms;
|
||||
$("#PaymentMethod").val(obj.PaymentID);
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
//$("#PaymentMethod").val(obj.PaymentID);
|
||||
|
||||
|
||||
|
||||
@ -2016,7 +2010,41 @@ function vaildateBeforeOpenModal()
|
||||
|
||||
});
|
||||
|
||||
if(supPaymentTerms!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$('#PaymentMethod').empty();
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
$.each(paymentList, function(idx1, obj1) {
|
||||
|
||||
|
||||
if(obj1.PaymentID == supPaymentTerms )
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj1.PaymentID).html(obj1.PaymentTerms));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$.each(paymentList, function(idx, obj) {
|
||||
|
||||
|
||||
if(obj.PaymentID != supPaymentTerms )
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentID).html(obj.PaymentTerms));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
@ -146,9 +146,6 @@ if(!empty($AvlBudAmt))
|
||||
.select2{
|
||||
width:100% ! important;
|
||||
}
|
||||
.num {
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
<script src="<?php echo base_url() ?>assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
@ -163,9 +160,6 @@ if(!empty($AvlBudAmt))
|
||||
var SchName = <?php echo json_encode($DeliverSchedule); ?>;
|
||||
var DelDt = '<?php echo $Deliverydt; ?>';
|
||||
$(document).ready(function () {
|
||||
$("#PaymentMethod").select2();
|
||||
|
||||
|
||||
if(DelOpt=="0"){
|
||||
$('#Deliverydtdiv').hide();
|
||||
$('#Schedulediv').hide();
|
||||
@ -448,7 +442,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" id="Schedulediv" style="display:none;"><br/>
|
||||
<label >Schedule By </label>
|
||||
<label >Schedule </label>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
|
||||
@ -510,7 +504,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
$data = array('name' => 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -807,9 +801,9 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:1000px;">
|
||||
<div class="modal-content" style="width:1100px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Capital Purchase Order Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
@ -841,7 +835,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label>Department Name</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'CapitalDepartmentName','value' => set_value('CapitalDepartmentName'),'id'=>'CapitalDepartmentName', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CapitalDepartmentName','value' => set_value('CapitalDepartmentName'),'id'=>'CapitalDepartmentName', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -853,7 +847,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<div>
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
@ -863,7 +857,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label>Avail Bud Amount<?php echo "($INR)"?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -915,7 +909,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label>Quantity</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPQuantity','value' => set_value('CPQuantity'),'id'=>'CPQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
$data = array('name' => 'CPQuantity','value' => set_value('CPQuantity'),'id'=>'CPQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -924,7 +918,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label id="RateIn">Rate(In INR /UOM)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPRate','value' => set_value('CPRate'),'id'=>'CPRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();' );
|
||||
$data = array('name' => 'CPRate','value' => set_value('CPRate'),'id'=>'CPRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange();' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -933,7 +927,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<label id="TotalAmount">Basic value in INR</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CPTotalAmount','value' => set_value('CPTotalAmount'),'id'=>'CPTotalAmount', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
$data = array('name' => 'CPTotalAmount','value' => set_value('CPTotalAmount'),'id'=>'CPTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1395,7 +1389,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:1000px;">
|
||||
<div class="modal-content" style="width:1100px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Capital Purchase Order Item </h4></center>
|
||||
@ -1528,7 +1522,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
|
||||
<div class="col-md-12" id="EDITCAPdiv">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
@ -2754,42 +2748,30 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-8"><br/>
|
||||
<div class="row">
|
||||
<div class="col-md-2"><label>Request On</label></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Requeston','value' => set_value('Requeston',$UpdatedOn),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div><br/>
|
||||
<div class="row">
|
||||
<div class="col-md-2"><label>Request By</label></div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
$data = array('name' => 'RequestBy','value' => set_value('RequestBy', $requestedBy),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div><br/>
|
||||
|
||||
<div class="row"><div class="col-md-2"><label>Status</label></div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'Status','value' => set_value('Status',$PoStatusName),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div><br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" style="padding:1% 0%;">
|
||||
<div class="col-md-4">
|
||||
<label>Request On</label>
|
||||
<?php
|
||||
$data = array('name' => 'Requeston','value' => set_value('Requeston',$UpdatedOn),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Request By</label>
|
||||
<?php
|
||||
$data = array('name' => 'RequestBy','value' => set_value('RequestBy',$requestedBy),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Status</label>
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'Status','value' => set_value('Status',$PoStatusName),'id'=>'Status', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div align="right" style="padding:1% 0%;">
|
||||
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
@ -2900,8 +2882,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
||||
|
||||
var id = $('#drpSupplier').val();
|
||||
var supPaymentTerms='';
|
||||
var supPaymentAT='';
|
||||
var subPaymentDate='';
|
||||
|
||||
$("#SupAddress").val('');
|
||||
|
||||
if(id != '0')
|
||||
@ -2913,13 +2894,47 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
supPaymentTerms=obj.PaymentTerms;
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
|
||||
$("#PaymentMethod").val(obj.PaymentID);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if(supPaymentTerms!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$('#PaymentMethod').empty();
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
$.each(paymentList, function(idx1, obj1) {
|
||||
|
||||
|
||||
if(obj1.PaymentID == supPaymentTerms )
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj1.PaymentID).html(obj1.PaymentTerms));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$.each(paymentList, function(idx, obj) {
|
||||
|
||||
|
||||
if(obj.PaymentID != supPaymentTerms )
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentID).html(obj.PaymentTerms));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
@ -235,17 +235,45 @@ $('#drpSupplier').change(function() {
|
||||
if(id != '0')
|
||||
{
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var PaymentID='';
|
||||
$('#PaymentTerms').empty();
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#PayableAT").val(obj.PayableAT);
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
if(PaymentID!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
|
||||
$("#PaymentTerms").append($('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
}
|
||||
else{
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@ -430,7 +458,7 @@ $("#txtEditBasicValue").val('');
|
||||
$('#txtAfterDiscount').val('');
|
||||
}
|
||||
|
||||
calculateDiscount(0);
|
||||
change();
|
||||
|
||||
});
|
||||
|
||||
@ -455,7 +483,7 @@ $('#EditDiscountType').change(function() {
|
||||
$('#txtEditAfterDiscount').val('');
|
||||
}
|
||||
|
||||
calculateDiscount(1);
|
||||
Editchange();
|
||||
|
||||
});
|
||||
|
||||
@ -1806,18 +1834,21 @@ SetVatorCST();
|
||||
var txtUnitPrice = parseFloat($('#EditRate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtEditBasicValue').val(parseFloat(Tot).toFixed(2));
|
||||
if ($("#EditDiscountType").val()!=0) {
|
||||
calculateDiscount(1);
|
||||
}
|
||||
if($("#EditCgst").val()!=''){
|
||||
|
||||
$('#EditAfterCgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditCgst').val()));
|
||||
$('#EditAfterCgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditCgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
if($("#EditSgst").val()!=''){
|
||||
|
||||
$('#EditAfterSgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditSgst').val()));
|
||||
$('#EditAfterSgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditSgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if($("#EditIgst").val()!=''){
|
||||
|
||||
$('#EditAfterIgst').val(calculateIgstTax($('#txtEditBasicValue').val(),$('#EditIgst').val()));
|
||||
$('#EditAfterIgst').val(calculateIgstTax($('#txtEditBasicValue').val(),$('#EditIgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
if ($("#EditDiscountType").val()!=0) {
|
||||
calculateDiscount(1);
|
||||
@ -2380,7 +2411,7 @@ function calculateEditTaxValue()
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(0);');
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'change();calculateDiscount(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -2737,7 +2768,7 @@ function calculateEditTaxValue()
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(1);','style'=>'text-align:right;');
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Editchange();calculateDiscount(1);','style'=>'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -3290,10 +3321,11 @@ function calculateEditTaxValue()
|
||||
|
||||
<tbody id='RevenueAppend'>
|
||||
<?php
|
||||
|
||||
if(!empty($POItem))
|
||||
{
|
||||
$index = 0;
|
||||
|
||||
|
||||
foreach($POItem as $record)
|
||||
{
|
||||
$index = $index + 1;
|
||||
@ -3307,7 +3339,7 @@ function calculateEditTaxValue()
|
||||
<td><?php echo $record->UOM ?></td>
|
||||
<td align="right"><?php echo $record->Rate ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->BasicValue ?></td>
|
||||
<td align="right"><?php echo number_format($record->BasicValue, 2, '.', ''); ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->Taxamount ?></td>
|
||||
<td align="right"><?php echo $record->TotalValue ?></td>
|
||||
@ -3697,7 +3729,7 @@ $("#VIEWREVENUE").on("shown.bs.modal", function(e) {
|
||||
$('#ViewUOM').val($('#uom'+userid).val());
|
||||
$('#ViewQuantity').val($('#quantity'+userid).val());
|
||||
$('#ViewRate').val($('#itemRate'+userid).val());
|
||||
$('#txtViewBasicValue').val(cellval[6].innerHTML);
|
||||
$('#txtViewBasicValue').val(cellval[7].innerHTML);
|
||||
RequistQuantity = $('#quantity'+userid).val();
|
||||
$('#txtViewDiscount').val($('#DisVal'+userid).val());
|
||||
$('#txtViewAfterDiscount').val($('#AfterDisVal'+userid).val());
|
||||
@ -3749,7 +3781,7 @@ $('.AddRevenue').click(function(){
|
||||
|
||||
if(validateRevenueTax() && validateExceedLimit() && ExceedQuantityCheck())
|
||||
{
|
||||
var temp = index+1;
|
||||
var temp = parseInt(index)+1;
|
||||
var Reqnumber = $('#ReqNo').val();
|
||||
var departmentName = $('#deptName').val();
|
||||
var AvilBudget = $('#AvlBudAmt').val();
|
||||
@ -3796,7 +3828,7 @@ $('.AddRevenue').click(function(){
|
||||
"ReqNo" : Reqnumber,
|
||||
|
||||
});
|
||||
//index = parseInt(index)+1;
|
||||
index = parseInt(index)+1;
|
||||
|
||||
var template = jQuery("#RevenueList").html();
|
||||
|
||||
@ -4118,9 +4150,9 @@ function validateEditRevenueTax()
|
||||
return true;
|
||||
}
|
||||
}
|
||||
function calculateCgstTax(varBasicValue,Cgst)
|
||||
function calculateCgstTax(varBasicValue,Cgst,discount)
|
||||
{
|
||||
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var Cgst = parseFloat(Cgst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
@ -4132,9 +4164,9 @@ function calculateCgstTax(varBasicValue,Cgst)
|
||||
return TAXval;// $('#AfterServiceTax').val(TAXval);
|
||||
|
||||
}
|
||||
function calculateSgstTax(varBasicValue,Sgst)
|
||||
function calculateSgstTax(varBasicValue,Sgst,discount)
|
||||
{
|
||||
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var Sgst = parseFloat(Sgst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
@ -4146,9 +4178,9 @@ function calculateCgstTax(varBasicValue,Cgst)
|
||||
return TAXval;// $('#AfterServiceTax').val(TAXval);
|
||||
|
||||
}
|
||||
function calculateIgstTax(varBasicValue,Igst)
|
||||
function calculateIgstTax(varBasicValue,Igst,discount)
|
||||
{
|
||||
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var Igst = parseFloat(Igst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
@ -4467,23 +4499,23 @@ function change(){
|
||||
var txtUnitPrice = parseFloat($('#Rate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtBasicValue').val(parseFloat(Tot).toFixed(2));
|
||||
|
||||
if ($("#DiscountType").val()!=0) {
|
||||
calculateDiscount(0);
|
||||
}
|
||||
if($("#Cgst").val()!=''){
|
||||
$('#AfterCgst').val(calculateCgstTax($('#txtBasicValue').val(),$('#Cgst').val()));
|
||||
$('#AfterCgst').val(calculateCgstTax($('#txtBasicValue').val(),$('#Cgst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val()));
|
||||
}
|
||||
if($("#Sgst").val()!=''){
|
||||
|
||||
$('#AfterSgst').val(calculateSgstTax($('#txtBasicValue').val(),$('#Sgst').val()));
|
||||
$('#AfterSgst').val(calculateSgstTax($('#txtBasicValue').val(),$('#Sgst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if($("#Igst").val()!=''){
|
||||
|
||||
$('#AfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#Igst').val()));
|
||||
$('#AfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#Igst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val());
|
||||
}
|
||||
|
||||
if ($("#DiscountType").val()!=0) {
|
||||
calculateDiscount(0);
|
||||
}
|
||||
|
||||
if ($("#PackagingType").val()!=0) {
|
||||
calculatePackaging(0);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@ $CompanyAddress = '';
|
||||
$Value='';
|
||||
$Value="៛";
|
||||
$UOM='';
|
||||
|
||||
$Terms='';
|
||||
|
||||
date_default_timezone_set('Australia/Melbourne');
|
||||
$date = date('m/d/Y h:i:s a', time());
|
||||
@ -78,7 +78,9 @@ if(!empty($AvlimportBudAmt))
|
||||
<script src="<?php echo base_url(); ?>assets/js/CreatePOValidation.js" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function(){
|
||||
$("#PaymentTerms").select2();
|
||||
|
||||
tinymce.init({
|
||||
selector: "textarea#txtSpcialInstruction",
|
||||
|
||||
@ -183,18 +185,17 @@ function vaildateBeforeOpenModal()
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.content {
|
||||
Padding:0% ! important;
|
||||
}
|
||||
body {
|
||||
background-color: #ecf0f5;
|
||||
}
|
||||
|
||||
|
||||
.pagination {
|
||||
margin :0px ! important;
|
||||
}
|
||||
.box-body {
|
||||
padding:0px ! important;
|
||||
}
|
||||
.num {
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -352,7 +353,7 @@ body {
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" id="Schedulediv" style="display:none;"><br/>
|
||||
<label >Schedule </label>
|
||||
<label >Schedule By </label>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
|
||||
@ -384,7 +385,7 @@ body {
|
||||
<label>Exchange Rate On</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
$data = array('name' => 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -393,7 +394,7 @@ body {
|
||||
<label id=label1>Exchange Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
||||
$data = array('name' => 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -415,52 +416,55 @@ body {
|
||||
|
||||
<legend>Payment Details</legend>
|
||||
<!-- Text input-->
|
||||
<div class="col-md-3">
|
||||
|
||||
<span for="payablefrom">Payable Terms</span>
|
||||
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
|
||||
<option value="" ></option>
|
||||
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
|
||||
<?php
|
||||
|
||||
?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="payablefrom">Payable Terms</label>
|
||||
<input type="hidden" name="beforePaymentTerms" value="<?php echo $Terms;?>">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if(!empty($Payment))
|
||||
{
|
||||
|
||||
foreach ($Payment as $pay2)
|
||||
|
||||
if($Terms==$pay2->PaymentID){
|
||||
//echo "$Terms";
|
||||
//echo "$pay2->PaymentTerms";
|
||||
|
||||
?>
|
||||
<input type="hidden" name="beforePaymentTermsText" value="<?php echo $pay2->PaymentTerms?>">
|
||||
<?php
|
||||
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
|
||||
}
|
||||
|
||||
foreach ($Payment as $pay1):
|
||||
|
||||
if($Terms!=$pay1->PaymentID){
|
||||
|
||||
$optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms;
|
||||
|
||||
}
|
||||
endforeach;
|
||||
} echo form_dropdown('PaymentTerms', $optionsPay,set_value('PaymentTerms'),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!--<div class="col-md-3">
|
||||
<span for="PayableAT">Payable AT</span>
|
||||
<input type="text" class="form-control required" id="PayableAT" name="PayableAT">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3"><span>Payment Date</span><br/>
|
||||
<label class="radio-inline"><input type="radio" name="Payment" value="Before">Before</label>
|
||||
<label class="radio-inline"><input type="radio" name="Payment" value="After">After</label>
|
||||
</div> -->
|
||||
<!-- <div class="col-md-3">
|
||||
<span>Payable AT</span>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'PayableAT','value' => set_value('PayableAT'),'id'=>'PayableAT', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5
|
||||
;">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
Payment Date <br/>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Before', 'Before') ." ". form_radio(array("name"=>"Payment", "id"=>"Before", "value"=>"0", 'checked'=>'checked')); ?> </td> -->
|
||||
|
||||
|
||||
<!-- <?php echo form_label('Date', 'Date') ." ". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?> </td> -->
|
||||
<!-- <td>
|
||||
<?php echo form_label('After', 'After') ." ". form_radio(array("name"=>"Payment", "id"=>"After", "value"=>"1", 'checked'=>set_radio('Payment', '1', FALSE))); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div> -->
|
||||
$data = array('name' => 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -485,9 +489,9 @@ body {
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:900px;">
|
||||
<div class="modal-content" style="width:1000px;font-size:12px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
|
||||
<center><h4>Add Import Purchase Order Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
@ -524,7 +528,7 @@ body {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Cost Center Name</label>
|
||||
<label>Cost Center Code</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
//$options = array("0"=>'Select Cost Center');
|
||||
@ -541,7 +545,7 @@ body {
|
||||
<label>Available Budget Amount(<?php echo $INR?>)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -578,7 +582,7 @@ body {
|
||||
<label>UOM</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -587,7 +591,7 @@ body {
|
||||
<label>Quantity</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange(),ExceedQuantityCheck()');
|
||||
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange(),ExceedQuantityCheck()');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
@ -597,7 +601,7 @@ body {
|
||||
<!-- <P id=labelRate> --> <label id=labelRate><?php echo "Rate in";?> </label><!-- </P> -->
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange(),validateExceedLimit()' );
|
||||
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange(),validateExceedLimit()' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -609,7 +613,7 @@ body {
|
||||
<?php
|
||||
//$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
|
||||
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -623,7 +627,7 @@ body {
|
||||
<!-- Basic Price in US $ per Ton : -->
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'imBasicPrice','value' => set_value('imBasicPrice'),'id'=>'imBasicPrice', 'class' => 'form-control' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
||||
$data = array('name' => 'imBasicPrice','value' => set_value('imBasicPrice'),'id'=>'imBasicPrice', 'class' => 'form-control num' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()' , 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -637,7 +641,7 @@ body {
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -653,7 +657,7 @@ body {
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'INRBasicvalue','value' => set_value('INRBasicvalue'),'id'=>'INRBasicvalue', 'class' => 'form-control changetodecimal' ,'readonly' => 'true',);
|
||||
$data = array('name' => 'INRBasicvalue','value' => set_value('INRBasicvalue'),'id'=>'INRBasicvalue', 'class' => 'form-control num changetodecimal' ,'readonly' => 'true',);
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -673,7 +677,7 @@ body {
|
||||
<div class="col-md-4" >
|
||||
<div class="form-group" style="display:none;">
|
||||
<?php
|
||||
$data = array('name' => 'BasicPriceTax','value' => set_value('BasicPriceTax'),'id'=>'BasicPriceTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'BasicPriceTax','value' => set_value('BasicPriceTax'),'id'=>'BasicPriceTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -681,7 +685,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterBasicPriceTax','value' => set_value('AfterBasicPriceTax'),'id'=>'AfterBasicPriceTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterBasicPriceTax','value' => set_value('AfterBasicPriceTax'),'id'=>'AfterBasicPriceTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -695,7 +699,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'LandingCharge','value' => set_value('LandingCharge'),'id'=>'LandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Calculateloadingcharge()');
|
||||
$data = array('name' => 'LandingCharge','value' => set_value('LandingCharge'),'id'=>'LandingCharge', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Calculateloadingcharge()');
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
@ -706,7 +710,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterLandingCharge','value' => set_value('AfterLandingCharge'),'id'=>'AfterLandingCharge', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterLandingCharge','value' => set_value('AfterLandingCharge'),'id'=>'AfterLandingCharge', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -720,7 +724,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Highseas ','value' => set_value('Highseas'),'id'=>'Highseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateHighseassalescharge()');
|
||||
$data = array('name' => 'Highseas ','value' => set_value('Highseas'),'id'=>'Highseas', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateHighseassalescharge()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -728,7 +732,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterHighseas','value' => set_value('AfterHighseas'),'id'=>'AfterHighseas', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterHighseas','value' => set_value('AfterHighseas'),'id'=>'AfterHighseas', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -742,7 +746,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Customduty','value' => set_value('Customduty'),'id'=>'Customduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomduty()');
|
||||
$data = array('name' => 'Customduty','value' => set_value('Customduty'),'id'=>'Customduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomduty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -750,7 +754,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomduty','value' => set_value('AfterCustomduty'),'id'=>'AfterCustomduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomduty','value' => set_value('AfterCustomduty'),'id'=>'AfterCustomduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -764,7 +768,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyTax','value' => set_value('ExcisedutyTax'),'id'=>'ExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseDuty()');
|
||||
$data = array('name' => 'ExcisedutyTax','value' => set_value('ExcisedutyTax'),'id'=>'ExcisedutyTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseDuty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -772,7 +776,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyTax','value' => set_value('AfterExcisedutyTax'),'id'=>'AfterExcisedutyTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutyTax','value' => set_value('AfterExcisedutyTax'),'id'=>'AfterExcisedutyTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -786,7 +790,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyEDcess','value' => set_value('ExcisedutyEDcess'),'id'=>'ExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseED1()');
|
||||
$data = array('name' => 'ExcisedutyEDcess','value' => set_value('ExcisedutyEDcess'),'id'=>'ExcisedutyEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseED1()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -794,7 +798,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyEDcess','value' => set_value('AfterExcisedutyEDcess'),'id'=>'AfterExcisedutyEDcess', 'class' => 'form-control','readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutyEDcess','value' => set_value('AfterExcisedutyEDcess'),'id'=>'AfterExcisedutyEDcess', 'class' => 'form-control num','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -808,7 +812,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutySHcess','value' => set_value('ExcisedutySHcess'),'id'=>'ExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateexciseSHcess()');
|
||||
$data = array('name' => 'ExcisedutySHcess','value' => set_value('ExcisedutySHcess'),'id'=>'ExcisedutySHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateexciseSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -816,7 +820,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutySHcess','value' => set_value('AfterExcisedutySHcess'),'id'=>'AfterExcisedutySHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterExcisedutySHcess','value' => set_value('AfterExcisedutySHcess'),'id'=>'AfterExcisedutySHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -830,7 +834,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomEDcess','value' => set_value('CustomEDcess'),'id'=>'CustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomEdcess()');
|
||||
$data = array('name' => 'CustomEDcess','value' => set_value('CustomEDcess'),'id'=>'CustomEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomEdcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -838,7 +842,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomEDcess','value' => set_value('AfterCustomEDcess'),'id'=>'AfterCustomEDcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomEDcess','value' => set_value('AfterCustomEDcess'),'id'=>'AfterCustomEDcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -852,7 +856,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomSHcess','value' => set_value('CustomSHcess'),'id'=>'CustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomSHcess()');
|
||||
$data = array('name' => 'CustomSHcess','value' => set_value('CustomSHcess'),'id'=>'CustomSHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -860,7 +864,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomSHcess','value' => set_value('AfterCustomSHcess'),'id'=>'AfterCustomSHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterCustomSHcess','value' => set_value('AfterCustomSHcess'),'id'=>'AfterCustomSHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -876,7 +880,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AdditionalExciseduty ','value' => set_value('AdditionalExciseduty'),'id'=>'AdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateaddlExciseDuty(),CalculateAvlModvat(),CalculateGrossExpense()');
|
||||
$data = array('name' => 'AdditionalExciseduty ','value' => set_value('AdditionalExciseduty'),'id'=>'AdditionalExciseduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateaddlExciseDuty(),CalculateAvlModvat(),CalculateGrossExpense()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -884,7 +888,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterAdditionalExciseduty','value' => set_value('AfterAdditionalExciseduty'),'id'=>'AfterAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AfterAdditionalExciseduty','value' => set_value('AfterAdditionalExciseduty'),'id'=>'AfterAdditionalExciseduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -898,7 +902,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true','onchange'=>'CalculateAvlModvat()');
|
||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true','onchange'=>'CalculateAvlModvat()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -912,7 +916,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvailableModvat','value' => set_value('AvailableModvat'),'id'=>'AvailableModvat', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'AvailableModvat','value' => set_value('AvailableModvat'),'id'=>'AvailableModvat', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?> (b + c + d + g)
|
||||
</div>
|
||||
@ -928,7 +932,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control' ,'readonly'=>'true','onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control num' ,'readonly'=>'true','onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -947,7 +951,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'purchaserate','value' => set_value('purchaserate'),'id'=>'purchaserate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'purchaserate','value' => set_value('purchaserate'),'id'=>'purchaserate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -956,7 +960,7 @@ body {
|
||||
<span>Quantity</span>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PurQuantity','value' => set_value('PurQuantity'),'id'=>'PurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCtable()');
|
||||
$data = array('name' => 'PurQuantity','value' => set_value('PurQuantity'),'id'=>'PurQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCtable()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -972,7 +976,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomDutyExpenses ','value' => set_value('CustomDutyExpenses'),'id'=>'CustomDutyExpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'CustomDutyExpenses ','value' => set_value('CustomDutyExpenses'),'id'=>'CustomDutyExpenses', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -987,7 +991,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RMCIncludingCustomers','value' => set_value('RMCIncludingCustomers'),'id'=>'RMCIncludingCustomers', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'RMCIncludingCustomers','value' => set_value('RMCIncludingCustomers'),'id'=>'RMCIncludingCustomers', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1000,7 +1004,7 @@ body {
|
||||
<div class="col-md-4" >
|
||||
<div class="form-group" style="display:none;>
|
||||
<?php
|
||||
$data = array('name' => 'TotalExp','value' => set_value('TotalExp'),'id'=>'TotalExp', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'TotalExp','value' => set_value('TotalExp'),'id'=>'TotalExp', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1037,7 +1041,7 @@ body {
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:900px;">
|
||||
<div class="modal-content" style="width:1000px;font-size:12px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Import Purchase Order Item </h4></center>
|
||||
@ -1065,7 +1069,7 @@ body {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Cost Center Name</label>
|
||||
<label>Cost Center Code</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$options = array("0"=>'Select Cost Center');
|
||||
@ -1082,7 +1086,7 @@ body {
|
||||
<label>Available Budget Amount (<?php echo $INR?>)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAvlBudAmt','value' => set_value('EditAvlBudAmt'),'id'=>'EditAvlBudAmt', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAvlBudAmt','value' => set_value('EditAvlBudAmt'),'id'=>'EditAvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1143,7 +1147,7 @@ body {
|
||||
<label>Quantity</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange(),ExceedEditQuantityCheck()');
|
||||
$data = array('name' => 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange(),ExceedEditQuantityCheck()');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
@ -1154,7 +1158,7 @@ body {
|
||||
<!-- <label>Rate </label> -->
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange()' );
|
||||
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange()' );
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
@ -1169,7 +1173,7 @@ body {
|
||||
<?php
|
||||
//$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
|
||||
$data = array('name' => 'EdittxtBasicValue','value' => set_value('EdittxtBasicValue'),'id'=>'EdittxtBasicValue', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EdittxtBasicValue','value' => set_value('EdittxtBasicValue'),'id'=>'EdittxtBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1184,7 +1188,7 @@ body {
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditimBasicPrice','value' => set_value('EditimBasicPrice'),'id'=>'EditimBasicPrice', 'class' => 'form-control' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'EditimBasicPrice','value' => set_value('EditimBasicPrice'),'id'=>'EditimBasicPrice', 'class' => 'form-control num' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1197,7 +1201,7 @@ body {
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditExchangeRt','value' => set_value('EditExchangeRt'),'id'=>'EditExchangeRt', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'EditExchangeRt','value' => set_value('EditExchangeRt'),'id'=>'EditExchangeRt', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1212,7 +1216,7 @@ body {
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditINRBasicvalue','value' => set_value('EditINRBasicvalue'),'id'=>'EditINRBasicvalue', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditINRBasicvalue','value' => set_value('EditINRBasicvalue'),'id'=>'EditINRBasicvalue', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1232,7 +1236,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group" style="display:none;">
|
||||
<?php
|
||||
$data = array('name' => 'EditBasicPriceTax','value' => set_value('EditBasicPriceTax'),'id'=>'EditBasicPriceTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'EditBasicPriceTax','value' => set_value('EditBasicPriceTax'),'id'=>'EditBasicPriceTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1240,7 +1244,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterBasicPriceTax','value' => set_value('EditAfterBasicPriceTax'),'id'=>'EditAfterBasicPriceTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterBasicPriceTax','value' => set_value('EditAfterBasicPriceTax'),'id'=>'EditAfterBasicPriceTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1254,7 +1258,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditLandingCharge','value' => set_value('EditLandingCharge'),'id'=>'EditLandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateloadingcharge()');
|
||||
$data = array('name' => 'EditLandingCharge','value' => set_value('EditLandingCharge'),'id'=>'EditLandingCharge', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateloadingcharge()');
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
@ -1265,7 +1269,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group" >
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterLandingCharge','value' => set_value('EditAfterLandingCharge'),'id'=>'EditAfterLandingCharge', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterLandingCharge','value' => set_value('EditAfterLandingCharge'),'id'=>'EditAfterLandingCharge', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1279,7 +1283,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditHighseas ','value' => set_value('EditHighseas'),'id'=>'EditHighseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateHighseassalescharge()');
|
||||
$data = array('name' => 'EditHighseas ','value' => set_value('EditHighseas'),'id'=>'EditHighseas', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateHighseassalescharge()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1287,7 +1291,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterHighseas','value' => set_value('EditAfterHighseas'),'id'=>'EditAfterHighseas', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterHighseas','value' => set_value('EditAfterHighseas'),'id'=>'EditAfterHighseas', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1301,7 +1305,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditCustomduty','value' => set_value('EditCustomduty'),'id'=>'EditCustomduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomduty()');
|
||||
$data = array('name' => 'EditCustomduty','value' => set_value('EditCustomduty'),'id'=>'EditCustomduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomduty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1309,7 +1313,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterCustomduty','value' => set_value('EditAfterCustomduty'),'id'=>'EditAfterCustomduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterCustomduty','value' => set_value('EditAfterCustomduty'),'id'=>'EditAfterCustomduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1323,7 +1327,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditExcisedutyTax','value' => set_value('EditExcisedutyTax'),'id'=>'EditExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseDuty()');
|
||||
$data = array('name' => 'EditExcisedutyTax','value' => set_value('EditExcisedutyTax'),'id'=>'EditExcisedutyTax', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseDuty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1331,7 +1335,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterExcisedutyTax','value' => set_value('EditAfterExcisedutyTax'),'id'=>'EditAfterExcisedutyTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterExcisedutyTax','value' => set_value('EditAfterExcisedutyTax'),'id'=>'EditAfterExcisedutyTax', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1345,7 +1349,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditExcisedutyEDcess','value' => set_value('EditExcisedutyEDcess'),'id'=>'EditExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseED1()');
|
||||
$data = array('name' => 'EditExcisedutyEDcess','value' => set_value('EditExcisedutyEDcess'),'id'=>'EditExcisedutyEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseED1()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1353,7 +1357,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterExcisedutyEDcess','value' => set_value('EditAfterExcisedutyEDcess'),'id'=>'EditAfterExcisedutyEDcess', 'class' => 'form-control','readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterExcisedutyEDcess','value' => set_value('EditAfterExcisedutyEDcess'),'id'=>'EditAfterExcisedutyEDcess', 'class' => 'form-control num','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1367,7 +1371,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditExcisedutySHcess','value' => set_value('EditExcisedutySHcess'),'id'=>'EditExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateexciseSHcess()');
|
||||
$data = array('name' => 'EditExcisedutySHcess','value' => set_value('EditExcisedutySHcess'),'id'=>'EditExcisedutySHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateexciseSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1375,7 +1379,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterExcisedutySHcess','value' => set_value('EditAfterExcisedutySHcess'),'id'=>'EditAfterExcisedutySHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterExcisedutySHcess','value' => set_value('EditAfterExcisedutySHcess'),'id'=>'EditAfterExcisedutySHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1389,7 +1393,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditCustomEDcess','value' => set_value('EditCustomEDcess'),'id'=>'EditCustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomEdcess()');
|
||||
$data = array('name' => 'EditCustomEDcess','value' => set_value('EditCustomEDcess'),'id'=>'EditCustomEDcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomEdcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1397,7 +1401,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterCustomEDcess','value' => set_value('EditAfterCustomEDcess'),'id'=>'EditAfterCustomEDcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterCustomEDcess','value' => set_value('EditAfterCustomEDcess'),'id'=>'EditAfterCustomEDcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1411,7 +1415,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditCustomSHcess','value' => set_value('EditCustomSHcess'),'id'=>'EditCustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomSHcess()');
|
||||
$data = array('name' => 'EditCustomSHcess','value' => set_value('EditCustomSHcess'),'id'=>'EditCustomSHcess', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1419,7 +1423,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterCustomSHcess','value' => set_value('EditAfterCustomSHcess'),'id'=>'EditAfterCustomSHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterCustomSHcess','value' => set_value('EditAfterCustomSHcess'),'id'=>'EditAfterCustomSHcess', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1435,7 +1439,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAdditionalExciseduty ','value' => set_value('EditAdditionalExciseduty'),'id'=>'EditAdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateaddlExciseDuty(),EditCalculateAvlModvat(),EditCalculateGrossExpense()');
|
||||
$data = array('name' => 'EditAdditionalExciseduty ','value' => set_value('EditAdditionalExciseduty'),'id'=>'EditAdditionalExciseduty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateaddlExciseDuty(),EditCalculateAvlModvat(),EditCalculateGrossExpense()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1443,7 +1447,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAfterAdditionalExciseduty','value' => set_value('EditAfterAdditionalExciseduty'),'id'=>'EditAfterAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAfterAdditionalExciseduty','value' => set_value('EditAfterAdditionalExciseduty'),'id'=>'EditAfterAdditionalExciseduty', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1457,7 +1461,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditGrossdutypayable ','value' => set_value('EditGrossdutypayable'),'id'=>'EditGrossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'EditGrossdutypayable ','value' => set_value('EditGrossdutypayable'),'id'=>'EditGrossdutypayable', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1471,7 +1475,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditAvailableModvat','value' => set_value('EditAvailableModvat'),'id'=>'EditAvailableModvat', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'EditAvailableModvat','value' => set_value('EditAvailableModvat'),'id'=>'EditAvailableModvat', 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?> (b + c + d + g)
|
||||
</div>
|
||||
@ -1487,7 +1491,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditGrossexpenses','value' => set_value('EditGrossexpenses'),'id'=>'EditGrossexpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
$data = array('name' => 'EditGrossexpenses','value' => set_value('EditGrossexpenses'),'id'=>'EditGrossexpenses', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1507,7 +1511,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Editpurchaserate','value' => set_value('Editpurchaserate'),'id'=>'Editpurchaserate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'Editpurchaserate','value' => set_value('Editpurchaserate'),'id'=>'Editpurchaserate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1516,7 +1520,7 @@ body {
|
||||
<span>Quantity</span>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditPurQuantity','value' => set_value('EditPurQuantity'),'id'=>'EditPurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCtable()');
|
||||
$data = array('name' => 'EditPurQuantity','value' => set_value('EditPurQuantity'),'id'=>'EditPurQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCtable()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1532,7 +1536,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditCustomDutyExpenses ','value' => set_value('EditCustomDutyExpenses'),'id'=>'EditCustomDutyExpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'EditCustomDutyExpenses ','value' => set_value('EditCustomDutyExpenses'),'id'=>'EditCustomDutyExpenses', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1547,7 +1551,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditRMCIncludingCustomers','value' => set_value('EditRMCIncludingCustomers'),'id'=>'EditRMCIncludingCustomers', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'EditRMCIncludingCustomers','value' => set_value('EditRMCIncludingCustomers'),'id'=>'EditRMCIncludingCustomers', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1559,7 +1563,7 @@ body {
|
||||
<div class="col-md-4">
|
||||
<div class="form-group" style="display:none;">
|
||||
<?php
|
||||
$data = array('name' => 'EditTotalExp','value' => set_value('EditTotalExp'),'id'=>'EditTotalExp', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
$data = array('name' => 'EditTotalExp','value' => set_value('EditTotalExp'),'id'=>'EditTotalExp', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -3825,79 +3829,6 @@ $('#Deliverydt').change(function(){
|
||||
|
||||
});
|
||||
|
||||
function validate()
|
||||
{
|
||||
|
||||
|
||||
if($('#PODate').val() == '')
|
||||
{
|
||||
alert('Please Enter the Purchase Order date');
|
||||
$('#PODate').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#drpSupplier').val() == "0")
|
||||
{
|
||||
alert('Please Select the Supplier details');
|
||||
$('#drpSupplier').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#DeliveryAddr').val() == '')
|
||||
{
|
||||
alert('Please Enter the Delivery Address');
|
||||
$('#DeliveryAddr').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '')
|
||||
{
|
||||
alert('Please Enter the Dispatch Instruction');
|
||||
$('#Dispatch').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#currencytype').val() == '0')
|
||||
{
|
||||
alert('Please Select the Currency Type');
|
||||
$('#currencytype').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#ExchangeRate').val() == '')
|
||||
{
|
||||
alert('Please Enter the Exchange Rate');
|
||||
$('#ExchangeRate').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
else if($('#PlaceOforigin').val()== '')
|
||||
{
|
||||
alert('Please Enter Place Of Origin');
|
||||
$('#PlaceOforigin').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
else if($('#PaymentTerms').val()=='')
|
||||
{
|
||||
alert('Please Select Payment Terms');
|
||||
$('#PaymentTerms').focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
if(document.getElementById('ImportTax').rows.length <3)
|
||||
{
|
||||
// alert();
|
||||
// die();
|
||||
alert('Please Select Line item to Create PO');
|
||||
$('#Deliverydt').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -3926,10 +3857,9 @@ var txtDeletedRow = $('#txtDeletedRow').val();
|
||||
//exit();
|
||||
if(validate())
|
||||
{
|
||||
if(document.getElementById('ImportTax').rows.length <3)
|
||||
if(document.getElementById('ImportTax').rows.length <= 0)
|
||||
{
|
||||
// alert();
|
||||
// die();
|
||||
|
||||
alert('Please Select Line item to Create PO');
|
||||
$('#Deliverydt').focus();
|
||||
return false;
|
||||
@ -4000,6 +3930,18 @@ var Detail = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
|
||||
} );
|
||||
$("#PaymentTerms").change(function() {
|
||||
|
||||
if ($('#PaymentTerms').val().trim()=='PT08')
|
||||
|
||||
{
|
||||
|
||||
$('#otheroptiondiv').show();
|
||||
}
|
||||
else {
|
||||
$('#otheroptiondiv').hide();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -182,23 +182,46 @@ $('#drpSupplier').change(function() {
|
||||
if(id != '0')
|
||||
{
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var PaymentID='';
|
||||
$('#PaymentTerms').empty();
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
|
||||
|
||||
var b=obj.PaymentID;
|
||||
$("#PaymentTerms").val(obj.PaymentID);
|
||||
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
if(PaymentID!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
}
|
||||
else{
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@ -395,7 +418,7 @@ $("#txtEditBasicValue").val('');
|
||||
$('#PackagingType').val("0");
|
||||
$('#Rate').focus();
|
||||
}
|
||||
calculateDiscount(0);
|
||||
change();
|
||||
|
||||
});
|
||||
|
||||
@ -428,7 +451,7 @@ $('#EditDiscountType').change(function() {
|
||||
$('#EditDiscountType').val("0");
|
||||
$('#EditRate').focus();
|
||||
}
|
||||
calculateDiscount(1);
|
||||
Editchange();
|
||||
});
|
||||
|
||||
$('#PackagingType').change(function() {
|
||||
@ -683,6 +706,7 @@ function calculateDiscount(isEdit)
|
||||
$('#txtAfterDiscount').val("0.00");
|
||||
}
|
||||
}
|
||||
// change();
|
||||
calculateTotalValue();
|
||||
}
|
||||
else
|
||||
@ -739,6 +763,7 @@ function calculateDiscount(isEdit)
|
||||
$('#txtEditAfterDiscount').val("0.00");
|
||||
}
|
||||
}
|
||||
// Editchange();
|
||||
calculateEditTotalValue();
|
||||
}
|
||||
}
|
||||
@ -819,6 +844,7 @@ function calculatePackaging(isEdit)
|
||||
$('#txtAfterPackaging').val("0.00");
|
||||
}
|
||||
}
|
||||
|
||||
calculateTotalValue();
|
||||
}
|
||||
else
|
||||
@ -892,6 +918,7 @@ function calculatePackaging(isEdit)
|
||||
$('#txtEditAfterPackaging').val("0.00");
|
||||
}
|
||||
}
|
||||
|
||||
calculateEditTotalValue();
|
||||
}
|
||||
}
|
||||
@ -1815,27 +1842,27 @@ return true;
|
||||
var txtUnitPrice = parseFloat($('#EditRate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtEditBasicValue').val(parseFloat(Tot).toFixed(2));
|
||||
|
||||
if ($("#EditDiscountType").val()!=0) {
|
||||
calculateDiscount(1);
|
||||
}
|
||||
if($("#EditCgst").val()!=''){
|
||||
|
||||
$('#EditAfterCgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditCgst').val()));
|
||||
$('#EditAfterCgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditCgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
if($("#EditSgst").val()!=''){
|
||||
|
||||
$('#EditAfterSgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditSgst').val()));
|
||||
$('#EditAfterSgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$('#EditSgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if($("#EditIgst").val()!=''){
|
||||
|
||||
$('#EditAfterIgst').val(calculateIgstTax($('#txtEditBasicValue').val(),$('#EditIgst').val()));
|
||||
$('#EditAfterIgst').val(calculateIgstTax($('#txtEditBasicValue').val(),$('#EditIgst').val(),$('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val()));
|
||||
}
|
||||
if ($("#DiscountType").val()!=0) {
|
||||
calculateDiscount(1);
|
||||
}
|
||||
if ($("#PackagingType").val()!=0) {
|
||||
|
||||
if ($("#EditPackagingType").val()!=0) {
|
||||
calculatePackaging(1);
|
||||
}
|
||||
if($("#drpFreight").val()!=0){
|
||||
if($("#drpEditFreight").val()!=0){
|
||||
calculateFreight(1);
|
||||
|
||||
}
|
||||
@ -2391,7 +2418,7 @@ function calculateEditTaxValue()
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(0);');
|
||||
$data = array('name' => 'txtDiscount','value' => set_value('txtDiscount'),'id'=>'txtDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'change();calculateDiscount(0);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -2745,7 +2772,7 @@ function calculateEditTaxValue()
|
||||
<label>Discount Rate </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'calculateDiscount(1);','style'=>'text-align:right;');
|
||||
$data = array('name' => 'txtEditDiscount','value' => set_value('txtEditDiscount'),'id'=>'txtEditDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Editchange();calculateDiscount(1);','style'=>'text-align:right;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -3821,23 +3848,25 @@ function change(){
|
||||
var txtUnitPrice = parseFloat($('#Rate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtBasicValue').val(parseFloat(Tot).toFixed(2));
|
||||
|
||||
if ($("#DiscountType").val()!=0) {
|
||||
calculateDiscount(0);
|
||||
}
|
||||
if($("#Cgst").val()!=''){
|
||||
$('#AfterCgst').val(calculateCgstTax($('#txtBasicValue').val(),$('#Cgst').val()));
|
||||
|
||||
$('#AfterCgst').val(calculateCgstTax($('#txtBasicValue').val(),$('#Cgst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if($("#Sgst").val()!=''){
|
||||
|
||||
$('#AfterSgst').val(calculateSgstTax($('#txtBasicValue').val(),$('#Sgst').val()));
|
||||
$('#AfterSgst').val(calculateSgstTax($('#txtBasicValue').val(),$('#Sgst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if($("#Igst").val()!=''){
|
||||
|
||||
$('#AfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#Igst').val()));
|
||||
$('#AfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#Igst').val(),$('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val()));
|
||||
}
|
||||
|
||||
if ($("#DiscountType").val()!=0) {
|
||||
calculateDiscount(0);
|
||||
}
|
||||
|
||||
if ($("#PackagingType").val()!=0) {
|
||||
calculatePackaging(0);
|
||||
}
|
||||
@ -3874,10 +3903,10 @@ function calculateTotalValue()
|
||||
ExceedQuantityCheck();
|
||||
}
|
||||
|
||||
function calculateCgstTax(varBasicValue,Cgst)
|
||||
function calculateCgstTax(varBasicValue,Cgst,discount)
|
||||
{
|
||||
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue-discount);
|
||||
var Cgst = parseFloat(Cgst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
|
||||
@ -3888,10 +3917,10 @@ function calculateTotalValue()
|
||||
return TAXval;// $('#AfterServiceTax').val(TAXval);
|
||||
|
||||
}
|
||||
function calculateSgstTax(varBasicValue,Sgst)
|
||||
function calculateSgstTax(varBasicValue,Sgst,discount)
|
||||
{
|
||||
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue-discount);
|
||||
var Sgst = parseFloat(Sgst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
|
||||
@ -3902,10 +3931,10 @@ function calculateTotalValue()
|
||||
return TAXval;// $('#AfterServiceTax').val(TAXval);
|
||||
|
||||
}
|
||||
function calculateIgstTax(varBasicValue,Igst)
|
||||
function calculateIgstTax(varBasicValue,Igst,discount)
|
||||
{
|
||||
|
||||
var basicValue = parseFloat(varBasicValue);
|
||||
var discount = discount;
|
||||
var basicValue = parseFloat(varBasicValue-discount);
|
||||
var Igst = parseFloat(Igst);
|
||||
var ServiceTaxValue = 0.0;
|
||||
|
||||
|
||||
@ -49,7 +49,12 @@
|
||||
|
||||
|
||||
$ServiceDescription =$PO->ServiceDescription;
|
||||
if($PO->PaymentID!='PT08'){
|
||||
$PaymentTerms = $PO->PaymentTerms;
|
||||
}
|
||||
else{
|
||||
$PaymentTerms = $PO->PaymentTerms . ' ( '.$PO->PaymentOtherDescription.' ) ';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -145,7 +150,7 @@
|
||||
?>
|
||||
<tr>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td style="text-align: center;">01/08/2017</td><!--Requistion Date code should come from DB-->
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['ReqDate']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
@ -159,7 +164,7 @@
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<table style="border-collapse: collapse;" border="0" width="100%" cellspacing="0" cellpadding="0">
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td style="text-align: center;">#</td>
|
||||
@ -188,9 +193,9 @@
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;">001</td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;">000666</td><!--HSN code should come from DB-->
|
||||
<td style="text-align: center;"><?php echo $record->HSNCODE ; ?>
|
||||
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
|
||||
@ -201,7 +206,7 @@
|
||||
|
||||
<?php
|
||||
|
||||
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
|
||||
$SubTotalAmount = $SubTotalAmount + $record->BasicValue-$record->AfterDiscount;
|
||||
$TotalTax = $TotalTax+$record->Taxamount;
|
||||
$OrderValue = $SubTotalAmount + $TotalTax;
|
||||
|
||||
@ -216,71 +221,12 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--<table style="border-collapse: collapse;" border="0" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td>#</td>
|
||||
|
||||
<td>Discount In INR</td>
|
||||
<td>SGST In INR</td>
|
||||
<td>CGST In INR</td>
|
||||
<td>IGST In INR</td>
|
||||
<td>Packaging In INR</td>
|
||||
<td>Insurance In INR</td>
|
||||
<td>Freight In INR</td>
|
||||
<td>Total Amount In INR</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($POItem))
|
||||
{
|
||||
|
||||
$index = 0;
|
||||
$TotalAmount = 0;
|
||||
$OrderValue = 0;
|
||||
$TotalTax = 0;
|
||||
$SubTotalAmount = 0;
|
||||
foreach($POItem as $record)
|
||||
{
|
||||
$index = $index + 1;
|
||||
$TotalAmount = $record->BasicValue+$record->Taxamount;
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td><?php echo $index ; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->AfterDiscount;?></td>
|
||||
<td align="right"><?php echo $record->AfterSGST ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterCGST ; ?></td>
|
||||
|
||||
|
||||
<td align="right"><?php echo $record->AfterIGST ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterPackagingValue;?></td>
|
||||
<td align="right"><?php echo $record->AfterFreightValue;?></td>
|
||||
<td align="right"><?php echo $record->Insurance;?></td>
|
||||
<td align="right"><?php echo number_format($TotalAmount, 2, '.', '') ; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
|
||||
$TotalTax = $TotalTax+$record->Taxamount;
|
||||
$OrderValue = $SubTotalAmount + $TotalTax;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>-->
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;" rowspan="2"><strong>HSN Code</strong><br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>Discount In INR</strong><br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>SGST</strong> <br /><br /></td>
|
||||
@ -289,56 +235,58 @@
|
||||
<td style="text-align: center;" colspan="2"><strong>Packaging In INR</strong> </td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Insurance In INR</strong> </td>
|
||||
<td style="text-align: center;" colspan="2"> <strong>Freight In INR </strong></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Tax Amt In INR</strong><br /></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong> Total Amount In INR</strong> </td>
|
||||
</tr>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<tr style="line-height: 2.5em;">
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Type</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
</tr>
|
||||
<?php if(!empty($POItem)) {
|
||||
|
||||
foreach($POItem as $record1)
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: right;">000666</td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">5%</td>
|
||||
<td style="text-align: right;">25</td>
|
||||
<td style="text-align: right;">150</td>
|
||||
</tr>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: right;">000666</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">20</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">30</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">50</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">60</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">500</td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;"> </td>
|
||||
<td style="text-align: right;">5000</td>
|
||||
<td style="text-align: right;">10000</td>
|
||||
<td style="text-align: right;"><?php echo $record1->HSNCODE ; ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->DiscountType.'-'.$record1->DiscountValue; ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterDiscount, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->SGST ; ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterSGST, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->CGST ; ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterCGST, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->IGST ; ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterIGST, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->PackagingType.'-'. $record1->PackagingValue ; ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterPackagingValue, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->Insurance, 2, '.', ''); ?></td>
|
||||
<?php if($record1->FreightType=='PER TRIP'){ ?>
|
||||
<td style="text-align: right;"><?php echo $record1->FreightType.'('.$record1->NoOfTrip.')-'. $record1->FreightValue;?></td>
|
||||
<?php } ?>
|
||||
<?php if($record1->FreightType!='PER TRIP'){ ?>
|
||||
<td style="text-align: right;"><?php echo $record1->FreightType.'-'. $record1->FreightValue;?></td>
|
||||
<?php } ?>
|
||||
|
||||
<td style="text-align: right;"><?php echo number_format($record1->AfterFreightValue, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->Taxamount, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format(($record1->BasicValue+$record1->Taxamount-$record1->AfterDiscount), 2, '.', ''); ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
@ -91,9 +91,11 @@ $('#drpSupplier').change(function() {
|
||||
|
||||
if(id != '0')
|
||||
{
|
||||
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
|
||||
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var PaymentID='';
|
||||
$('#PaymentTerms').empty();
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
@ -102,12 +104,39 @@ $('#drpSupplier').change(function() {
|
||||
|
||||
$("#SupAddress").val(obj.Address);
|
||||
PaymentID = obj.PaymentID;
|
||||
$("#PaymentTerms").val(obj.PaymentID);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
if(PaymentID!='PT08'){
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$.each(Payment, function(pay, payobj) {
|
||||
if(payobj.PaymentID == PaymentID)
|
||||
{
|
||||
|
||||
}
|
||||
else{
|
||||
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -297,13 +297,13 @@
|
||||
<td style="text-align: center;"><strong>IN%</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
</tr>
|
||||
<?php if(!empty($POItem)) {
|
||||
|
||||
foreach($POItem as $record1)
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
<?php if(!empty($POItem)) {
|
||||
|
||||
foreach($POItem as $record1)
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><?php echo $record1->HSNCODE ; ?></td>
|
||||
<td style="text-align: right;"><?php echo $record1->CGST ; ?></td>
|
||||
@ -315,11 +315,11 @@
|
||||
<td style="text-align: right;"><?php echo number_format($record1->Taxamount, 2, '.', ''); ?></td>
|
||||
<td style="text-align: right;"><?php echo number_format($record1->otherallowance, 2, '.', ''); ?></td>
|
||||
<td align="right"><?php if($record->NumberOfService==0 || $record->NumberOfService==''){
|
||||
echo number_format($record->BasicValue + $record1->Taxamount + $record1->otherallowance, 2, '.', '');
|
||||
echo number_format($record1->BasicValue + $record1->Taxamount + $record1->otherallowance, 2, '.', '');
|
||||
|
||||
}
|
||||
else{
|
||||
echo number_format($record->BasicValue * $record->NumberOfService + $record1->Taxamount + $record1->otherallowance, 2, '.', '');
|
||||
echo number_format($record1->BasicValue * $record1->NumberOfService + $record1->Taxamount + $record1->otherallowance, 2, '.', '');
|
||||
|
||||
}
|
||||
?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user