diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 2a4b50a6..b8846372 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -1768,7 +1768,7 @@ function addNewImportPurchaseOrder() - $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'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); + $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'Import_PlaceofOrgin'=>$Palaceoforigin); //echo $PONO; //echo $TotalOrder; //print_r($POList); diff --git a/application/views/editImportAmendPO.php b/application/views/editImportAmendPO.php index 39819bad..fd2ef5ff 100755 --- a/application/views/editImportAmendPO.php +++ b/application/views/editImportAmendPO.php @@ -136,6 +136,7 @@ if(!empty($POMaster)) $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; $DeliverySchedule=$Req->DeliverySchedule; $ServiceDescription=$Req->ServiceDescription; + $DeliveryOption=$Req->DeliveryOption; } } @@ -1740,6 +1741,21 @@ var AvlBudAmt = ''; //$('#EditAvlBudAmt').val(); +var delivery=; +if(delivery==1) +{ + document.getElementById("Schedule").checked = true; + $('#Deliverydtdiv').hide(); + $('#Schedulediv').show(); +} +else +{ +document.getElementById("Date").checked = true; +$('#Deliverydtdiv').show(); +$('#Schedulediv').hide(); +} + +