import po modification
This commit is contained in:
parent
ecc550ce10
commit
9196389d56
@ -98,10 +98,8 @@ class purchaseorder extends BaseController
|
|||||||
/**
|
/**
|
||||||
* This function used to show the Purchase Order Screen
|
* This function used to show the Purchase Order Screen
|
||||||
*/
|
*/
|
||||||
|
function CreatePurchaseOrder()
|
||||||
function CreatePurchaseOrder()
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->form_validation->set_rules('txtReqNo', 'txtReqNo', 'callback_Req_validate');
|
$this->form_validation->set_rules('txtReqNo', 'txtReqNo', 'callback_Req_validate');
|
||||||
|
|
||||||
@ -117,8 +115,14 @@ class purchaseorder extends BaseController
|
|||||||
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
|
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
|
||||||
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
|
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
|
||||||
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
|
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
|
||||||
//$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
|
$data['Payment']=$this->purchaseorder_model->getSupplierPayment();
|
||||||
$data['Payment']=$this->purchaseorder_model->getSupplierPayment();
|
// foreach ($data['Suplist'] as $SUP)
|
||||||
|
// {
|
||||||
|
// $Detail=$SUP->PaymentTerms;
|
||||||
|
// }
|
||||||
|
|
||||||
|
//print_r($data['Payment']);
|
||||||
|
//print_r($data['Suplist']);
|
||||||
$SelectedReq = json_decode($this->input->post('txtReqNo'));
|
$SelectedReq = json_decode($this->input->post('txtReqNo'));
|
||||||
|
|
||||||
$Req = $SelectedReq->Req;
|
$Req = $SelectedReq->Req;
|
||||||
@ -136,6 +140,7 @@ class purchaseorder extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
$data['MaterialList'] = $result;
|
$data['MaterialList'] = $result;
|
||||||
|
//print_r($data['MaterialList']);
|
||||||
/* Cost code from Requisition - Client Review Fix
|
/* Cost code from Requisition - Client Review Fix
|
||||||
Start here */
|
Start here */
|
||||||
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
|
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
|
||||||
@ -162,6 +167,11 @@ class purchaseorder extends BaseController
|
|||||||
// $data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
// $data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
||||||
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
|
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
|
||||||
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
|
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
|
||||||
|
//print_r($data['Currency']);
|
||||||
|
|
||||||
|
|
||||||
|
// $data[$Rate->ExchangeRate]=$Rate->ExchangeRate;
|
||||||
|
//$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
|
||||||
|
|
||||||
$ViewName = '';
|
$ViewName = '';
|
||||||
if($ReqType == REVENUE)
|
if($ReqType == REVENUE)
|
||||||
@ -183,7 +193,6 @@ class purchaseorder extends BaseController
|
|||||||
$this->loadViews($ViewName, $this->global,$data, NULL);
|
$this->loadViews($ViewName, $this->global,$data, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function CreatePOPrint()
|
function CreatePOPrint()
|
||||||
{
|
{
|
||||||
$PONO = $_GET['PONO'];
|
$PONO = $_GET['PONO'];
|
||||||
|
|||||||
@ -52,7 +52,7 @@ function purchaseorderListing()
|
|||||||
*/
|
*/
|
||||||
function getSupplierName($supID='')
|
function getSupplierName($supID='')
|
||||||
{
|
{
|
||||||
$this->db->select('SupplierID, SupplierName,Address');
|
$this->db->select('SupplierID, SupplierName,Address,PaymentTerms,PayableAT,PaymentDays');
|
||||||
$this->db->from('T_SupplierDetailsN');
|
$this->db->from('T_SupplierDetailsN');
|
||||||
if($supID != '')
|
if($supID != '')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -74,12 +74,7 @@ if(!empty($AvlBudAmt))
|
|||||||
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#PayableAT").datepicker({
|
|
||||||
minDate : m,
|
|
||||||
//maxDate : 'now',
|
|
||||||
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#Exchangerateon").datepicker({
|
$("#Exchangerateon").datepicker({
|
||||||
minDate : m,
|
minDate : m,
|
||||||
//maxDate : 'now',
|
//maxDate : 'now',
|
||||||
@ -1729,7 +1724,10 @@ $('#drpSupplier').change(function() {
|
|||||||
{
|
{
|
||||||
$("#SupAddress").val(obj.Address);
|
$("#SupAddress").val(obj.Address);
|
||||||
$("#PayableAT").val(obj.PayableAT);
|
$("#PayableAT").val(obj.PayableAT);
|
||||||
$("#PaymentTerms").append( $('<option></option>').val(obj.PaymentTerms).html(obj.PaymentTerms) );
|
$("#PaymentTerms").val(obj.PaymentTerms);
|
||||||
|
//var a=$("PayableAT").val();
|
||||||
|
console.log(obj.PaymentTerms);
|
||||||
|
//$("#PaymentTerms").append( $('<option></option>').val(obj.PaymentTerms).html(obj.PaymentTerms) );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user