diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php index a81bf10d..84f13e1a 100755 --- a/application/controllers/amendmentpurchaseorder.php +++ b/application/controllers/amendmentpurchaseorder.php @@ -132,6 +132,7 @@ class amendmentpurchaseorder extends BaseController // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate; $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency); $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); + $data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR'); //print_r($data['PaymentTerms']); $unicode =''; foreach ($data['CurrencyDetail'] as $Detail) @@ -655,21 +656,40 @@ function UpdateAmendServicePurchaseOrder() $Deliverydt = $this->getDateformat($dt); $POType = $this->input->post('POType'); $PoRange = $this->input->post('txtPoRange'); - $DeliveryOption = $this->input->post('DateRange'); + //$DeliveryOption = $this->input->post('DateRange'); + $updatedBy = $this->session->userdata ( 'userId' ); + $Exchangerate=$this->input->post('ExchangeRate'); $ExchangeRateCalculatedon=$this->input->post('Exchangerateon'); $CurrencyType=$this->input->post('currencytype'); - + $DeliveryOption = $this->input->post('DateRange'); - if($DeliveryOption==1){ - $Deliverydt = ''; - $DeliverySchedule = $this->input->post('Scheduleby'); - } - else{ - $Deliverydt = $this->getDateformat($dt); - $DeliverySchedule = ''; - } + + $DeliverySchedule=''; + $Dispatch=''; + if($DeliveryOption==1) + { + $Dispatch=''; + $DeliverySchedule = $this->input->post('Scheduleby'); + } + + + else + { + $Dispatch = $this->input->post('Dispatch'); + $DeliverySchedule = ''; + } + + + // if($DeliveryOption==1){ + // $Deliverydt = ''; + // $DeliverySchedule = $this->input->post('Scheduleby'); + // } + // else{ + // $Deliverydt = $this->getDateformat($dt); + // $DeliverySchedule = ''; + // } $SpcialInstruction = $this->input->post('txtSpcialInstruction'); @@ -688,10 +708,15 @@ function UpdateAmendServicePurchaseOrder() $PaymentTerms=$this->input->post('PaymentTerms'); $Payableat=$this->input->post('PayableAT'); - echo $RowCount; + $Palaceoforigin=$this->input->post('PlaceOforigin'); + //echo $RowCount; // PO Master // PO Master - $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt); + $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin); + + + // $POList = array('SupplierID'=>$Supp,lierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'Import_PlaceofOrgin'=>$Palaceoforigin); + //print_r($POMaster); diff --git a/application/views/editImportAmendPO.php b/application/views/editImportAmendPO.php index d7e35f60..2d6259dc 100755 --- a/application/views/editImportAmendPO.php +++ b/application/views/editImportAmendPO.php @@ -7,6 +7,12 @@ $Rowcount = 0; $Value=$unicode; +$Import_DispatchDetails=''; +$Import_PlaceofOrgin=''; + +$DeliverySchedule=''; + + $Currencycode=$currencycode; $Cur = ''; $CurCode= ''; @@ -37,6 +43,18 @@ if(!empty($MaxPODate)) } +$INR=''; +if(!empty($INRSYMBOL)) +{ + foreach ($INRSYMBOL as $INR) + { + $INR=$INR->Currency_Code; + // $INR=$INR->FontCode2000; + } +} +//echo $INR; + + $CompanyAddress = ''; if(!empty($CompanyDetails)) @@ -103,6 +121,10 @@ if(!empty($POMaster)) $PaymentDays=$Req->PaymentDays; $StatusName=$Req->StatusName; + $Import_DispatchDetails=$Req->Import_DispatchDetails; + $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; + $DeliverySchedule=$Req->DeliverySchedule; + } } @@ -183,10 +205,10 @@ body { }); - $("#Deliverydt").datepicker({ - minDate : 'now', - dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10' - }); + // $("#Deliverydt").datepicker({ + // minDate : 'now', + // dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10' + // }); $("#Requeston").datepicker({ //minDate : d, @@ -337,7 +359,7 @@ body {
+