import po issues

This commit is contained in:
venbatechnologies@gmail.com 2017-08-09 17:20:34 +05:30
parent 54c96e89e7
commit a0bd6198d6
3 changed files with 51 additions and 36 deletions

View File

@ -869,7 +869,9 @@ QuantityRejected,ROUND(ReceivedQuantity-QuantityRejected)as PendingQty,
join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo
join T_Employee_Details emp on Req.Requestedby = emp.EmpID join T_Employee_Details emp on Req.Requestedby = emp.EmpID
left join T_MRIR_Details Det on Det.MaterialCode=LineItem.MaterialCode left join T_MRIR_Master Mast on POMast.PONO=Mast.PONO
left join T_MRIR_Details Det on Det.MaterialCode=LineItem.MaterialCode and Mast.MRIRNO=Det.MRIRNO
join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?'; join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?';
//print_r($subQuery); //print_r($subQuery);

View File

@ -2465,7 +2465,7 @@ if($PONOStatus == PO_RELEASED)
$totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty;
$ExchangeRate=$record->ExchangeRate; $ExchangeRate=$record->ExchangeRate;
//$totorder=$totorder+$record->ProductPrice; //$totorder=$totorder+$record->ProductPrice;
$totorder=$totorder+$record->BasicValue; $totorder=$totorder+$record->ProductPrice;
//$ServiceDescription=$record->ServiceDescription; //$ServiceDescription=$record->ServiceDescription;
//alert($totorder); //alert($totorder);
@ -4086,7 +4086,7 @@ $('.AddImport').click(function()
//alert('in'); //alert('in');
var template = jQuery("#ImportList").html(); var template = jQuery("#ImportList").html();
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,MaterialCode:materialCode,Description:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxamt,TotalValue:totalexp,ReceivedQty:receivedqty,RejectedQty:rejectedqty,PendingQty:pendingqty})); $('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,Description:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxamt,TotalValue:totalexp,ReceivedQty:receivedqty,RejectedQty:rejectedqty,PendingQty:pendingqty}));
//alert(JSON.strigify(BasicAmt)); //alert(JSON.strigify(BasicAmt));

View File

@ -1855,52 +1855,63 @@ var NilType = '<?php echo NILTYPE;?>';
$('#drpSupplier').change(function() { $('#drpSupplier').change(function() {
var supPaymentTerms=''; var id = $('#drpSupplier').val();
var supPaymentAT='';
var subPaymentDate='';
var id = $('#drpSupplier').val();
$("#SupAddress").val(''); $("#SupAddress").val('');
if(id != '0') if(id != '0')
{ {
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>; var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
var PaymentID='';
$('#PaymentTerms').empty();
$.each(y, function(idx, obj) { $.each(y, function(idx, obj)
if(obj.SupplierID === id) {
{ if(obj.SupplierID === id)
// $("#SupAddress").val(obj.Address); {
// // $("#PayableAT").val(obj.PayableAT); $("#SupAddress").val(obj.Address);
// $("#PaymentTerms").val(obj.PaymentTerms);
// var a=obj.PaymentTerms; PaymentID = obj.PaymentID;
// console.log(a); }
// // if (a=="After")
// // { });
// // //alert();
// // document.getElementById("After").checked = true;
// // }
// // else if(PaymentID!='PT08')
// // document.getElementById("Before").checked = true; {
$('#otheroptiondiv').hide();
// //var a=$("PayableAT").val(); $('#Otherpayment').val('');
}
// $("#PaymentTerms").append( $('<option></option>').val(obj.PaymentTerms).html(obj.PaymentTerms) );
$("#SupAddress").val(obj.Address); $.each(Payment, function(pay, payobj)
supPaymentTerms=obj.PaymentTerms;
supPaymentAT=obj.PayableAT; {
subPaymentDate=obj.PaymentDays; if(payobj.PaymentID == PaymentID)
{
}
else
{
$("#PaymentTerms").append( $('<option></option>').val(payobj.PaymentID).html(payobj.PaymentTerms));
}
});
}
});
} }
else else
{ {
@ -1912,6 +1923,8 @@ $('#drpSupplier').change(function() {
$('#currencytype').change(function(){ $('#currencytype').change(function(){
$('#ExchangeRate').val(''); $('#ExchangeRate').val('');
}); });