import po issue

This commit is contained in:
venbatechnologies@gmail.com 2017-07-31 16:30:19 +05:30
parent 67248e8fdc
commit e8ae7d72af
2 changed files with 3 additions and 13 deletions

View File

@ -568,7 +568,7 @@ function purchaseorderListing($forwhat='')
function GetServicePurchaseOrder($PONO = '') function GetServicePurchaseOrder($PONO = '')
{ {
$this->db->distinct(); $this->db->distinct();
$this->db->select('ReqNo,POMast.PONO,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.PaymentDays,POMast.PayableAT,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*'); $this->db->select('ReqNo,POMast.PONO,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*');
$this->db->from('T_PurchaseOrder_Master POMast'); $this->db->from('T_PurchaseOrder_Master POMast');
$this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID'); $this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID');
$this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status'); $this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status');

View File

@ -131,8 +131,8 @@ if(!empty($POMaster))
//echo "$ExchangeRate"; //echo "$ExchangeRate";
$ExchangeRateCalculatedon=$Req->ExchangeRateCalculatedon; $ExchangeRateCalculatedon=$Req->ExchangeRateCalculatedon;
$PaymentTerms=$Req->PaymentTerms; $PaymentTerms=$Req->PaymentTerms;
$PayableAT=$Req->PayableAT; // $PayableAT=$Req->PayableAT;
$PaymentDays=$Req->PaymentDays; // $PaymentDays=$Req->PaymentDays;
$StatusName=$Req->StatusName; $StatusName=$Req->StatusName;
$Currency_Type=$Req->CurrencyType; $Currency_Type=$Req->CurrencyType;
$parentPO =$Req->ParentPO; $parentPO =$Req->ParentPO;
@ -2803,16 +2803,6 @@ document.getElementById("Date").checked = true;
$('#Deliverydtdiv').show(); $('#Deliverydtdiv').show();
$('#Schedulediv').hide(); $('#Schedulediv').hide();
} }
// var paymentday=<?php echo json_encode($PaymentDays,JSON_PRETTY_PRINT)?>
// if (paymentday=="After")
// {
// //alert();
// document.getElementById("After").checked = true;
// }
// else
// {
// document.getElementById("Before").checked = true;
// }
// $('#ExchangeRate').val(<?php echo $ExchangeRate;?>); // $('#ExchangeRate').val(<?php echo $ExchangeRate;?>);
$('#EditAvlBudAmt').val(<?php echo $AvlAmount; ?>); $('#EditAvlBudAmt').val(<?php echo $AvlAmount; ?>);