diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 416ecfd6..d6b6b1b0 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -183,7 +183,8 @@ class purchaseorder extends BaseController // $data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate(); $data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate(); $data['Currency']=$this->purchaseorder_model->GetCurrencytype(); - //print_r($data['Currency']); + $data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR'); + //print_r($data['INRSYMBOL']); // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate; @@ -270,6 +271,7 @@ class purchaseorder extends BaseController $data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray); $data['Suplist'] = $this->purchaseorder_model->getSupplierName(); $data['Payment']=$this->purchaseorder_model->getSupplierPayment(); + $data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR'); /* Cost code from Requisition - Client Review Fix Start here */ $ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray); diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 1e4233b6..d9357036 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -668,6 +668,15 @@ function GetCurrencytype() return $query->result(); } + function GetINRCurrencytype($Currency_Code='') + { + $subQuery='select FontCode2000 from T_Currency_Details where Currency_Code=?'; + $query=$this->db->query($subQuery,array($Currency_Code)); + //print_r($this->db->last_query()); + return $query->result(); + + } + diff --git a/application/views/EditservicePurchaseorder.php b/application/views/EditservicePurchaseorder.php index ea8fae50..8cec8234 100755 --- a/application/views/EditservicePurchaseorder.php +++ b/application/views/EditservicePurchaseorder.php @@ -23,6 +23,18 @@ $DeliverSchedule=''; $MaxPoDate = ''; $AvlAmount = 0; $Value="₹"; + + +if(!empty($INRSYMBOL)) +{ + + foreach($INRSYMBOL as $INRS) + { + $INRSYM=$INRS->FontCode2000; + + } +} + if(!empty($MaxPODate)) { foreach ($MaxPODate as $date) @@ -946,7 +958,7 @@ $(document).ready(function () {
+