diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index ed0becc6..3478c50f 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -414,6 +414,7 @@ class purchaseorder extends BaseController } //print_r($data['AvlBudAmt']); $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO); + // print_r($data['POItem']); $data['Currency']=$this->purchaseorder_model->GetCurrencytype(); foreach($data['POMaster'] as $CUR) { diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index e13aaa57..0d7b407b 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -579,7 +579,7 @@ function purchaseorderListing($forwhat='') function GetServicePurchaseOrder($PONO = '') { $this->db->distinct(); - $this->db->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,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->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,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.*,POMast.TotalOrderValue'); $this->db->from('T_PurchaseOrder_Master POMast'); $this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID'); $this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status'); diff --git a/application/views/editimportpo.php b/application/views/editimportpo.php index 6057dbec..71be30ff 100755 --- a/application/views/editimportpo.php +++ b/application/views/editimportpo.php @@ -108,6 +108,7 @@ $StatusName=''; $Import_DispatchDetails=''; $Import_PlaceofOrgin=''; $DeliveryOption=''; +$Orderedsum=''; if(!empty($POMaster)) { @@ -144,10 +145,12 @@ if(!empty($POMaster)) $PaymentTerms=$Req->PaymentTerms; $DeliveryOption=$Req->DeliveryOption; $ServiceDescription=$Req->ServiceDescription; + $Orderedsum=$Req->TotalOrderValue; } } //echo $ServiceDescription; -//echo $PaymentTerms; +$SavedSum=$Orderedsum*$ExchangeRate; +//echo $SavedSum; if(!empty($RequistionDetails)) @@ -2641,6 +2644,8 @@ if($PONOStatus == PO_RELEASED) > + +