From 06c58fa2eeddf2492a4271af92ecac20f2e4726b Mon Sep 17 00:00:00 2001 From: venbatechnologies Date: Fri, 23 Mar 2018 17:38:50 +0530 Subject: [PATCH] budget type added in po screen --- application/controllers/purchaseorder.php | 5 +- .../views/EditservicePurchaseorder.php | 68 +- application/views/alterpurchaseorder.php | 182 +- application/views/editCapitalPo.php | 18331 ++++++++-------- .../views/editRevenuepurchaseorder.php | 114 +- application/views/editimportpo.php | 12457 +++++------ 6 files changed, 15710 insertions(+), 15447 deletions(-) mode change 100755 => 100644 application/views/alterpurchaseorder.php diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 465ca1a0..efa32b32 100644 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -6,7 +6,7 @@ require APPPATH . '/third_party/mpdf/mpdf.php'; /** * Class : purchaseorder (Purchase order - Controller) * purchaseorder Class to control all po related operations. - * @author : Venba InfoTech + * @author : Venba InfoTech * @version : 1.1 * @since : 18 November 2017 */ @@ -1114,8 +1114,7 @@ class purchaseorder extends BaseController $Qualitycheck=1; // PO Master - $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'UpdateBY'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Supplier_Reference'=>$supplierreference,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'POSubType'=>$revenuetype,'InsuranceNumber'=>$insuranceno,' - IsQualityChkReqired'=>$Qualitycheck,'BudgetType'=>$BudgetType); + $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'UpdateBY'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Supplier_Reference'=>$supplierreference,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'POSubType'=>$revenuetype,'InsuranceNumber'=>$insuranceno,'IsQualityChkReqired'=>$Qualitycheck,'BudgetType'=>$BudgetType); $POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList); $LineItemStatus = REQITEM_NEW; diff --git a/application/views/EditservicePurchaseorder.php b/application/views/EditservicePurchaseorder.php index 4701d495..ccff887d 100755 --- a/application/views/EditservicePurchaseorder.php +++ b/application/views/EditservicePurchaseorder.php @@ -36,6 +36,7 @@ array("name"=>"NO","value"=>"0"),array("name"=>"YES","value"=>"1") $InsuranceNo=''; $ServiceTypeOptions=''; $DescriptionOfPo = ''; + $BudgetType = ''; if(!empty($INRSYMBOL)) @@ -88,6 +89,7 @@ if(!empty($POMaster)) $InsuranceNo=$Req->InsuranceNumber; $ServiceTypeOptions=$Req->POSubType; $DescriptionOfPo = $Req->Description_Of_Service; + $BudgetType = $Req->BudgetType; } } @@ -529,15 +531,15 @@ function ExceedQuantityCheck() var ReqAmount = parseFloat(ValuetoCheck); var BudAmount = parseFloat(budgetAmount); - if(ReqAmount > BudAmount ) - { - swal('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.'); - return false; - } - else - { + // if(ReqAmount > BudAmount ) + // { + // swal('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.'); + // return false; + // } + // else + // { return true; - } + //} } function calculateServiceTax(varBasicValue) { @@ -1074,7 +1076,28 @@ $(document).ready(function () { - + +
+ + + +
@@ -1472,12 +1495,11 @@ $(document).ready(function () { 'EditOtheritemDescription','value' => set_value('EditOtheritemDescription'),'id'=>'EditOtheritemDescription', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); - ?> + ?> + + - - - -
+
+ +   Save @@ -2301,6 +2325,14 @@ var userid = ''; }; +$("#BudgetType").change(function(){ + + var aa = $("#BudgetType option:selected").text(); + + $('#Budget').val(aa); + + +}); $('#EditotherDescription').hide(); $('#otherdescription').hide(); @@ -2933,11 +2965,11 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val(); $('#Deliverydt').focus(); return false; } - else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) { - swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.'); + // else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) { + // swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.'); - return false; - } + // return false; + // } else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){ swal('Please Enter Other Payment Details'); $('#Otherpayment').focus(); diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php old mode 100755 new mode 100644 index ebb14b77..0faa638c --- a/application/views/alterpurchaseorder.php +++ b/application/views/alterpurchaseorder.php @@ -1,5 +1,4 @@ "NO","value"=>"0"),array("name"=>"YES","value"=>"1") ); @@ -1728,13 +1727,38 @@ function calculatePackaging(isEdit) } } +function rfilealert() +{ +var file = $('#imag').val(); + if (file=='') + { + swal('File not found'); + SpecialPOcheck(); + } + else{ + SpecialPOcheck(); + } +} + +function sfilealert() +{ + +var file1 = $('#images1').val(); + if (file1=='') + { + swal('File not found'); + SpecialPOcheck(); + } + else{ + SpecialPOcheck(); + } +} + function SpecialPOcheck() { - - // swal('splpo') //$('#content').loader('show'); POcheck=$("input:radio[name='Quality']:checked").val(); @@ -1757,7 +1781,7 @@ function SpecialPOcheck() { var images = $('#images').val(); - + $('#content').loader('show'); if(POcheck==0) @@ -2225,6 +2249,14 @@ Editchange(); } + else if($('#BudgetType').val()=="0") + { + swal('Please Select Budget Type'); + $('#BudgetType').focus(); + return false; + + } + else if(input=='REVENUE' && $('#Deliverydate').val()=='' && radioValue==0){ @@ -2694,7 +2726,7 @@ function populateValueMainFormForDeleteItem(rowid) { foreach ($ServiceOption as $SerOption): - + $ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue; endforeach; @@ -2803,7 +2835,7 @@ function populateValueMainFormForDeleteItem(rowid)
- +
+ +
+ + 'Select','1'=>'REVENUE','2'=>'CAPITAL'); + echo form_dropdown('BudgetType', $optionsnew,set_value('BudgetType'),'id="BudgetType"' ,'required="true"' ,'class="form-control select2'); + + ?> + + +
+ +
@@ -3063,21 +3110,15 @@ function populateValueMainFormForDeleteItem(rowid)
- - + +
- +
- +
@@ -3107,7 +3148,7 @@ function populateValueMainFormForDeleteItem(rowid) Add table --> @@ -3134,7 +3175,7 @@ function populateValueMainFormForDeleteItem(rowid)
- +
@@ -3150,7 +3191,7 @@ function populateValueMainFormForDeleteItem(rowid)
@@ -3297,7 +3338,7 @@ function populateValueMainFormForDeleteItem(rowid)
- - - - - - - - - - - - - - - - - - - - - Rate * $record->Quantity); - - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - $record->MaterialCode,"ReqNo"=>$record->ReqNo); - array_push($res_arr_values, $row); - ?> - - - - -" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - After_CGST; - $TotalSgst = $TotalSgst + $record->After_SGST; - $TotalIgst = $TotalIgst + $record->After_IGST; - $OtherAmt = $OtherAmt + $record->otherallowance; - $TotalFreightvalue=$TotalFreightvalue+$record->Afvalue; - - - $TotalSummary = $TotalSummary+$record->ServiceTaxamount; - - $TotalDiscountedAmt = $record->Afterdiscountval; - - $ExitDiscountedAmt=$ExitDiscountedAmt+$record->Afterdiscountval; - - $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance+$record->Afvalue - $TotalDiscountedAmt; - - } - $TotalBasicAmount = $TotalBasicAmount+$record->BasicValue; - $ServiceDescription = $ServiceDescription; - - - if($CapitalRange=='0'){ - $TotalLanding = $TotalLanding + $record->AfterLandingCharge; - $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; - $totcustom = $totcustom + $record->AfterCustomDuty; - $totexciseduty = $totexciseduty + $record->AfterExciseDuty; - $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; - $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; - $totcustomED = $totcustomED +$record->AfterCustomEdCess; - - $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; - $totaddtnlexcise= $totaddtnlexcise + $record->AfterAddlExciseDuty; - $totgrossduty = $totgrossduty + $record->Grossdutypayable; - $totavlmodvat = $totavlmodvat +$record->AvailableModvat; - $TotalFreightAmt = $TotalFreightAmt+$record->AfterFreightValue; - - $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; - $ExchangeRate=$record->ExchangeRate; - $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity; - - - $totassesable=$totassesable+$record->AssessableValue; - $totSubtotal=$totSubtotal+$record->SubTotal; - $totigst=$totigst+$record->AfterIGST; - - - } - - - // $totorder=$totorder+$record->TotalOrderValue; - - - - - } - ?> - - - - - - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountActual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode?>MaterialName?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount;?>Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance+ $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>Rate * $record->Quantity, 2, '.', '') ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     - -    
-
-
- -
-
- -
- - - - - - - -
-
-
-
- - - 'CapitalBasicOrder','value' => set_value('CapitalBasicOrder',number_format($ExitTotalBasicOrderValue, 2, '.', '')),'id'=>'CapitalBasicOrder', 'class' => 'form-control num' ,'readonly' => 'true',); - echo form_input($data); - ?> -
-
- - - 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($ExitDiscountedAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
-
- - 'txtTotCgst','value' => set_value('txtTotCgst', number_format($TotalCgst, 2, '.', '')),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
- - -
- - 'txtTotSgst','value' => set_value('txtTotSgst',number_format($TotalSgst, 2, '.', '') ),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
- - 'txtTotIgst','value' => set_value('txtTotIgst',number_format($TotalIgst, 2, '.', '')),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
- -
- - 'TotalOtherAllowances','value' => set_value('TotalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'TotalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
- - -
- - 'TotalFreight','value' => set_value('TotalFreight',number_format($TotalFreightvalue,2,'.','')),'id'=>'TotalFreight', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
- - - -
- - - -
- -
- - - 'txttotallanding','value' => set_value('txttotallanding',number_format($TotalLanding, 2, '.', '')),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalAssessable','value' => set_value('txttotalAssessable',$totassesable),'id'=>'txttotalAssessable', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustom','value' => set_value('txttotalcustom',number_format($totcustom, 2, '.', '')),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalSubtotal','value' => set_value('txttotalSubtotal',$totSubtotal),'id'=>'txttotalSubtotal', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - - -
- - - 'txttotalIgst','value' => set_value('txttotalIgst',$totigst),'id'=>'txttotalIgst', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - -
- - - 'txttotalcustomED','value' => set_value('txttotalcustomED',number_format($totcustomED, 2, '.', '')),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH','value' => set_value('txttotalcustomSH',number_format($totcustomSH, 2, '.', '')),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalgrossduty','value' => set_value('txttotalgrossduty',number_format($totgrossduty, 2, '.', '')),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($TotalFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
- - - -
-
-
- - - 'CapitalToatlOrder','value' => set_value('CapitalToatlOrder',number_format($totalCapitalOrder, 2, '.', '')),'id'=>'CapitalToatlOrder', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
-
- -
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); - echo form_textarea($data); - ?> -
- - - - -
- - - - - - - - -   Save - -   Submit -   Cancel - - - OK - - - -   Submit - - -   OK - - - -   Submit - -   OK - - - - -
- -
-
- - -
- - - - - - - - - - - - - - - + "NO","value"=>"0"),array("name"=>"YES","value"=>"1") + ); + $requestedBy=$RequistionDetails[0]->FirstName; + $Updateddt = new DateTime($RequistionDetails[0]->ReqDate); + $UpdatedOn=$Updateddt->format('d-m-Y'); + $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + $CurrentDate = $dt->format('d-m-Y'); + $res_arr_values = array(); + $DeliverOption=''; + $SupId = ''; + $SupName = ''; + $Address = ''; + $PODate = ''; + $TotalCgst=''; + $TotalSgst=''; + $TotalIgst=''; + $DeliveryAddress =''; + $POStatus = ''; + $PONO = ''; + $TotalCgst = 0; + $TotalSgst = 0.0; + $TotalIgst = 0.0; + $OtherAmt = 0.0; + $TotalFreightvalue=0.0; + + + $totassesable=0; + $totSubtotal=0; + $totigst=0; + + $TotalSummary = 0.0; + $TotalBasicAmount = 0.0; + $ServiceDescription = ''; + $Import_DispatchDetails=''; + $Import_PlaceofOrgin=''; + $CapitalRange=''; + $tt=0.0; + + $Deliverydt=''; + $DeliverSchedule=''; + $PONOStatus=''; + $MaxPoDate = ''; + $AvlAmount = 0; + $currentCurrencyType=''; + $exchangeRate = $ExchangeRate; + $ConfigValue=''; + + $TotalLanding=0; + $tothighseas=0; + $totcustom=0; + $totexciseduty=0; + $totexcisedutyED=0; + $totexciseSH=0; + $totcustomED=0; + $totcustomSH=0; + $totaddtnlexcise=0; + $totgrossduty=0; + $totavlmodvat=0; + $totgrossexpense=0; + $totordervalue=0; + $ExchangeRate=0; + $totorder=0; + $totDis=0; + $totFreight=0; + $ExchangeRate=''; + $PaymentTerms=''; + $PaymentDays=''; + $PayableAT=''; + $ExchangeDate=''; + $ExchangeRateOn=''; + + $CapitalRange=''; + $PoStatusName=''; + $otherPayment=''; + $INR=''; + $INRSYM=''; + $ExitTotalOrderValue=0; + $ExitTotalBasicOrderValue=0; + + $ExitExchangeRate=''; + + $ModeOfShipment=''; + $SupplierReference=''; + $SuppliersOfferNo=''; + $OtherReferences=''; + $Fincap=''; + $InsuranceOptions=''; + $InsuranceNo=''; + $ServiceTypeOptions=''; + $BudgetType = ''; + +if(!empty($INRSYMBOL)) +{ + foreach ($INRSYMBOL as $INR) + { + $INRSYM=$INR->Currency_Code; + $INR=$INR->FontCode2000; + } +} + +//echo $INR; + +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + + } +} +if(!empty($POMaster)) +{ + + + foreach ($POMaster as $Req) + { + + + $SupId = $Req->SupplierID; + + $SupName = $Req->SupplierName; + $Address = $Req->Address; + $pdt = new DateTime($Req->PODate); + $PODate = $pdt->format('d-m-Y'); + $DeliverOption = $Req->DeliveryOption; + + $DeliverSchedule = $Req->DeliverySchedule; + $Ddt = new DateTime($Req->DeliveryDate); + $Deliverydt = $Ddt->format('d-m-Y'); + + $DeliveryAddress =$Req->DeliveryAddress; + $PONOStatus = $Req->StatusCode; + $POStatus = $Req->StatusCode; + $PoStatusName=$Req->StatusName; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + + $Exchangedt = new DateTime($Req->ExchangeRateCalculatedon); + $ExchangeRateOn=$Exchangedt->format('d-m-Y'); + + + $PaymentTerms=$Req->PaymentTerms; + $otherPayment = $Req->PaymentOtherDescription; + + + $CapitalRange=$Req->CapitalRange; + $Import_DispatchDetails=$Req->Import_DispatchDetails; + $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; + $CapitalRange=$Req->CapitalRange; + + if($CapitalRange=='0'){ + $ExitExchangeRate=$Req->ExchangeRate; + $ExitTotalOrderValue=number_format($Req->TotalOrderValue*$ExitExchangeRate, 2, '.', ''); + } + else{ + $ExitTotalOrderValue=$Req->TotalOrderValue; + } + + $ModeOfShipment=$Req->Mode_Of_Shipment; + $SupplierReference=$Req->Supplier_Reference; + $SuppliersOfferNo=$Req->Supplier_Offer_No; + $OtherReferences=$Req->Other_Reference; + $Fincap=$Req->Fincap; + $InsuranceOptions=$Req->InsuranceStatus; + $InsuranceNo=$Req->InsuranceNumber; + $ServiceTypeOptions=$Req->POSubType; + $BudgetType = $Req->BudgetType; + + } + +} + +if(!empty($POItem) && $CapitalRange=='1') +{ + + $currentPoBasicAmt=0; + $currentPoDiscountedAmt=0; + foreach ($POItem as $getTotalAmt) + { + + $currentPoBasicAmt=$currentPoBasicAmt+($getTotalAmt->Rate * $getTotalAmt->Quantity); + $currentPoDiscountedAmt=$currentPoDiscountedAmt+$getTotalAmt->Afterdiscountval; + + + + + } +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = number_format($AvlCapitalBudAmt+$currentPoBasicAmt-$currentPoDiscountedAmt, 2, '.', ''); + + +} + +} +else { + $AvlAmount = number_format($AvlCapitalBudAmt+$ExitTotalOrderValue, 2, '.', ''); + +} + + + + + + +?> + + + + + + + + + +
+
+ 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); + + $attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'CapitalPO'); + + + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+ +
+
+ +

Resico Industries - Edit Capital Purchase Order-

+ + +
+
+
+
+
+
+ + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + + foreach ($ReqList as $SID): + + $options[$SID->ReqNo] = $SID->ReqNo; + + endforeach; + } + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); + + ?> +
+ + +
+
+
+
+ + + SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('drpSupplier', $options2,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + ?> + +
+

+ +
+ 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+ +
+
+
+
+ +
+ + 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+ +
+
+
+ + Select Delivery By*
+
+ + +
+ 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> + +
+
+
+ + + +

+ + + 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); + // echo form_input($data); + + $data = array('name' => 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110'); + echo Form_textarea($data); + ?> +
+ +
+ +
+
+ + + + + + + +
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+ + + +
+ + + +
+
+
+
+ + + +
+ + 'editmodeofshipment','value' => set_value('editmodeofshipment',$ModeOfShipment),'id'=>'editmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ + + +
+
+
+
+
+ +
+ + 'editsupplierreference','value' => set_value('editsupplierreference',$SupplierReference),'id'=>'editsupplierreference', 'class' => 'form-control', 'maxlength'=>'40'); + echo form_input($data); + ?> +
+ + + + +
+
+
+
+ +
+ + 'editsupplierofferno','value' => set_value('editsupplierofferno',$SuppliersOfferNo),'id'=>'editsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + + ?> +
+ +
+
+
+
+ + +
+ + 'editotherreference','value' => set_value('editotherreference',$OtherReferences),'id'=>'editotherreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+
+
+
+ +
+
+
+
+
+ + + +
+ + 'Select Work Status'); + + + if(!empty($PoTypeOptions)) + { + foreach ($PoTypeOptions as $POpt): + + if($ServiceTypeOptions==$POpt->ConfigValue){ + $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; + } + endforeach; + foreach ($PoTypeOptions as $POpt1): + + if($ServiceTypeOptions!=$POpt1->ConfigValue){ + $optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue; + } + endforeach; + } + + echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); + + + ?> +
+ + + +
+
+ +
+ + +
+ + + + +
+
+
+ +
+ +
+ 'insuranceNo','value' => set_value('insuranceNo',$InsuranceNo),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ + +
+ + + PaymentTerms) + { + $options6[$rl->PaymentID] = $rl->PaymentTerms; + } + + endforeach; + + + if(!empty($Payment)) + { + foreach ($Payment as $rl2): + + if($PaymentTerms!=$rl2->PaymentTerms) + { + $options6[$rl2->PaymentID] = $rl2->PaymentTerms; + } + + endforeach; + } + + echo form_dropdown('PaymentMethod', $options6,set_value('PaymentMethod',$PaymentTerms),'id="PaymentMethod"' ,'required="true"' ,'class="form-control select2"'); + + ?> + + + +
+ + +
+
+ + + + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + Rate * $record->Quantity); + + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + $record->MaterialCode,"ReqNo"=>$record->ReqNo); + array_push($res_arr_values, $row); + ?> + + + + +" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + After_CGST; + $TotalSgst = $TotalSgst + $record->After_SGST; + $TotalIgst = $TotalIgst + $record->After_IGST; + $OtherAmt = $OtherAmt + $record->otherallowance; + $TotalFreightvalue=$TotalFreightvalue+$record->Afvalue; + + + $TotalSummary = $TotalSummary+$record->ServiceTaxamount; + + $TotalDiscountedAmt = $record->Afterdiscountval; + + $ExitDiscountedAmt=$ExitDiscountedAmt+$record->Afterdiscountval; + + $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance+$record->Afvalue - $TotalDiscountedAmt; + + } + $TotalBasicAmount = $TotalBasicAmount+$record->BasicValue; + $ServiceDescription = $ServiceDescription; + + + if($CapitalRange=='0'){ + $TotalLanding = $TotalLanding + $record->AfterLandingCharge; + $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; + $totcustom = $totcustom + $record->AfterCustomDuty; + $totexciseduty = $totexciseduty + $record->AfterExciseDuty; + $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; + $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; + $totcustomED = $totcustomED +$record->AfterCustomEdCess; + + $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; + $totaddtnlexcise= $totaddtnlexcise + $record->AfterAddlExciseDuty; + $totgrossduty = $totgrossduty + $record->Grossdutypayable; + $totavlmodvat = $totavlmodvat +$record->AvailableModvat; + $TotalFreightAmt = $TotalFreightAmt+$record->AfterFreightValue; + + $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; + $ExchangeRate=$record->ExchangeRate; + $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity; + + + $totassesable=$totassesable+$record->AssessableValue; + $totSubtotal=$totSubtotal+$record->SubTotal; + $totigst=$totigst+$record->AfterIGST; + + + } + + + // $totorder=$totorder+$record->TotalOrderValue; + + + + + } + ?> + + + + + + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountActual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode?>MaterialName?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount;?>Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance+ $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>Rate * $record->Quantity, 2, '.', '') ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     + +    
+
+
+ +
+
+ +
+ + + + + + + +
+
+
+
+ + + 'CapitalBasicOrder','value' => set_value('CapitalBasicOrder',number_format($ExitTotalBasicOrderValue, 2, '.', '')),'id'=>'CapitalBasicOrder', 'class' => 'form-control num' ,'readonly' => 'true',); + echo form_input($data); + ?> +
+
+ + + 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($ExitDiscountedAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+
+ + 'txtTotCgst','value' => set_value('txtTotCgst', number_format($TotalCgst, 2, '.', '')),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+ + +
+ + 'txtTotSgst','value' => set_value('txtTotSgst',number_format($TotalSgst, 2, '.', '') ),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'txtTotIgst','value' => set_value('txtTotIgst',number_format($TotalIgst, 2, '.', '')),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+ +
+ + 'TotalOtherAllowances','value' => set_value('TotalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'TotalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+ + +
+ + 'TotalFreight','value' => set_value('TotalFreight',number_format($TotalFreightvalue,2,'.','')),'id'=>'TotalFreight', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+ + + +
+ + + +
+ +
+ + + 'txttotallanding','value' => set_value('txttotallanding',number_format($TotalLanding, 2, '.', '')),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalAssessable','value' => set_value('txttotalAssessable',$totassesable),'id'=>'txttotalAssessable', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustom','value' => set_value('txttotalcustom',number_format($totcustom, 2, '.', '')),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalSubtotal','value' => set_value('txttotalSubtotal',$totSubtotal),'id'=>'txttotalSubtotal', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + + +
+ + + 'txttotalIgst','value' => set_value('txttotalIgst',$totigst),'id'=>'txttotalIgst', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + +
+ + + 'txttotalcustomED','value' => set_value('txttotalcustomED',number_format($totcustomED, 2, '.', '')),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH','value' => set_value('txttotalcustomSH',number_format($totcustomSH, 2, '.', '')),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txttotalgrossduty','value' => set_value('txttotalgrossduty',number_format($totgrossduty, 2, '.', '')),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($TotalFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+ + + +
+
+
+ + + 'CapitalToatlOrder','value' => set_value('CapitalToatlOrder',number_format($totalCapitalOrder, 2, '.', '')),'id'=>'CapitalToatlOrder', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+
+ +
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+ + + + +
+ + + + + + + + + + +   Save + +   Submit +   Cancel + + + OK + + + +   Submit + + +   OK + + + +   Submit + +   OK + + + + +
+ +
+
+ + +
+ + +
+
+ + + + + + + + + + + diff --git a/application/views/editRevenuepurchaseorder.php b/application/views/editRevenuepurchaseorder.php index 749bdd87..bc002109 100755 --- a/application/views/editRevenuepurchaseorder.php +++ b/application/views/editRevenuepurchaseorder.php @@ -73,6 +73,7 @@ foreach ($PaymentTerms as $TER) $ServiceDescription = ''; $CapitalRange = ''; $otherPayment=''; + $BudgetType = ''; if(!empty($POMaster)) { //print_r($POMaster); @@ -106,6 +107,7 @@ if(!empty($POMaster)) $revenuesubtype = $Req->POSubType; $insurencestatus = $Req->InsuranceStatus; $insurenceno = $Req->InsuranceNumber; + $BudgetType = $Req->BudgetType; // echo $insurenceno; // echo $otherPayment; } @@ -204,6 +206,7 @@ if(!empty($RequistionDetails)) var SchName = ; var DelDt = ''; var insurancestatus = ''; + var budgettype=''; var insuranceno = ''; var statuscheck=''; @@ -1928,10 +1931,16 @@ function calculatePackaging(isEdit) $('#IGSTAddModel').attr("style","display:none;"); $('#SGSTAddModel').removeAttr("style"); + $('#RevenueIgst').val(0); + $('#RevenueAfterIgst').val(0); + $('#txttaxcheck').val(0); } else { - + $('#EditSgst').val(0); + $('#EditAfterSgst').val(0); + $('#EditCgst').val(0); + $('#EditAfterCgst').val(0); $('#CST').removeAttr("style"); $('#TotICST').removeAttr("style"); $('#Vat').attr("style","display:none;"); @@ -1942,6 +1951,11 @@ function calculatePackaging(isEdit) $('#SGSTViewModel').attr("style","display:none;"); $('#IGSTAddModel').removeAttr("style"); $('#SGSTAddModel').attr("style","display:none;"); + $('#RevenueCgst').val(0); + $('#RevenueAfterCgst').val(0); + $('#RevenueSgst').val(0); + $('#RevenueAfterIgst').val(0); + $('#txttaxcheck').val(1); } } $(document).ready(function () { @@ -2084,16 +2098,16 @@ function validateEditExceedLimit() var basicAmountRate = parseFloat($('#txtEditBasicValue').val()); var totalAmount = parseFloat($('#txtEditTotalOrderValue').val()); - if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt) - { - swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.'); - $('#EditRate').focus(); - return false; - } - else - { + // if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt) + // { + // swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.'); + // $('#EditRate').focus(); + // return false; + // } + // else + // { return true; - } + // } } function calculateEditTotalValue() @@ -2518,6 +2532,29 @@ function calculateEditTaxValue() + +
+ + + + +
@@ -4123,6 +4160,10 @@ function calculateEditTaxValue() + + + +   Save @@ -4178,6 +4219,17 @@ function calculateEditTaxValue() - - - - - -
- -
-
- 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - - - - -
-
-
- -

Resico Industries - Edit Import Purchase Order-

- -

Resico Industries - Amended Purchase Order-

- -
- -
-
-
-
-
-
- - - 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - foreach ($ReqList as $SID): - $options[$SID->ReqNo] = $SID->ReqNo ; - // print_r($SID->ReqNo); - // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; - //$ReqType = $SID->ReqType; - endforeach; - } - //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); - echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' ,'required="true"' , 'height="400px"' ); - - ?> -
- - - - -
- - - Currency_Code){ - $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; - - } - - endforeach; - - - foreach ($Currency as $Cur): - if($Currency_Type!=$Cur->Currency_Code){ - $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; - - } - - endforeach; - } - - echo form_dropdown('currencytype', $options1,set_value('currencytype',$Currency_Type),'id="currencytype"','class="form-control select2"' , 'required="true"'); - - ?> - - - - - - - - -
- - - - -
-
-
-
- - - 'Select Supplier'); - //print_r( $options); - if(!empty($Suplist)) - { - foreach ($Suplist as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - - echo form_dropdown('drpSupplier', $options,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - - ?> - - - -
-

- -
- 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - - - - - ?> -
-
- - - -
-
- -
-
- -
- - 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- - - -
-
-
- - - Select Delivery By*
- - - "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>'checked')); ?>     - - "DateRange", "id"=>"Schedule", "value"=>"1")); ?> - - - -
- - -
- - - 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); - // echo form_input($data); - - $data = array('name' => 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40','maxlength' => '110'); - echo Form_textarea($data); - ?> - -
- - -
- -
-
-
- -
- -
- 'Exchangerateon','value' => set_value('Exchangerateon',$ExchangeRateCalculatedon),'id'=>'Exchangerateon', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
- - - -
- 'ExchangeRate','value' => set_value('ExchangeRate',$ExchangeRate),'id'=>'ExchangeRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); - echo form_input($data); - ?> -
-
-
- -
- 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - // echo form_input($data); - $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
-
- -
-
-
-
- - - -
- - 'editmodeofshipment','value' => set_value('editmodeofshipment',$Shipmentmode),'id'=>'editmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
- - - -
-
-
-
-
- -
- - 'editsupplierreference','value' => set_value('editsupplierreference',$SupplierRef),'id'=>'editsupplierreference', 'class' => 'form-control','maxlength'=>'40'); - echo form_input($data); - ?> -
- - - - -
-
-
-
- -
- - 'editsupplierofferno','value' => set_value('editsupplierofferno',$SupOfferno),'id'=>'editsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'editotherreference','value' => set_value('editotherreference',$Otherref),'id'=>'editotherreference', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
- -
- - 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
-
-
-
-
-
-
-
- - - - - - - 'Select Import Option'); - - - - if(!empty($PoTypeOptions)) -{ - foreach ($PoTypeOptions as $payment): - - if($Importoption==$payment->ConfigValue) - { - - $options2[$payment->ConfigValue] = $payment->ConfigValue; - } - - endforeach; - foreach ($PoTypeOptions as $payment): - - if($Importoption!=$payment->ConfigValue) - { - - $options2[$payment->ConfigValue] = $payment->ConfigValue; - } - endforeach; -} - - echo form_dropdown('Importoption', $options2,set_value('Importoption'),'id="Importoption"' ,'class="form-control"'); ?> -
- - -
- - - - - - - - - - - - -
- -
-
- - -
-
- - - - - PaymentID){ - //echo "$Terms"; - //echo "$pay2->PaymentTerms"; - - ?> - - PaymentID] = $pay2->PaymentTerms; - - } - - foreach ($Payment as $pay1): - - if($Terms!=$pay1->PaymentID){ - - $optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms; - - } - endforeach; - } echo form_dropdown('PaymentTerms', $optionsPay,set_value('PaymentTerms'),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); ?> - -
-
- - - - - -
-
-
-
-
- - -
- -
-
- - - - Add Line Item - - - - - - - - -
-
- - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - Rate; - - ?> - - - - - - - - - - - - - - - - - - -" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AfterLandingCharge + $TotalLanding; - $TotalLanding = $TotalLanding + ($record->AfterLandingCharge); - $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; - $totcustom = $totcustom + $record->AfterCustomDuty; - $totexciseduty = $totexciseduty + $record->AfterExciseDuty; - $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; - $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; - $totcustomED = $totcustomED +$record->AfterCustomEdCess; - - $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; - $totaddtnlexcise= $totaddtnlexcise + $record->AfterAddlExciseDuty; - $totgrossduty = $totgrossduty + $record->Grossdutypayable; - // $totavlmodvat = $totavlmodvat +$record->AvailableModvat; - //$totgrossduty=$totgrossduty+$record->Grossdutypayable; - $totavlmodvat=$totavlmodvat+$record->AvailableModvat; - $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; - $ExchangeRate=$record->ExchangeRate; - //echo $totorder; - $totorder=$totorder+$record->TotalOrderValue; - - //echo $totorder; - - $totfreight=$totfreight+$record->AfterFreightValue; - - $totassesable=$totassesable+$record->AssessableValue; - $totSubtotal=$totSubtotal+$record->SubTotal; - $totigst=$totigst+$record->AfterIGST; - - //echo $totcustomED; - // $totorder=$record->TotalOrderValue; - // //$ServiceDescription=$record->ServiceDescription; - // echo $totorder; - //alert($totorder); - - - } - - ?> - - - - - - - - - -
SNoRequisition NoMaterial CodeDescriptionQuantityUOMRateBasic AmountReceived QtyRejected QtyPending QtyAction
ReqNo ?>MaterialCode ?>MaterialName?>Quantity ?>UOM ?>Rate ?>BasicValue ?>ReceivedQuantity ?>QuantityRejected ?>PendingQty?>     - -    
-
- -
- -
-
- - - 'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalAssessable','value' => set_value('txttotalAssessable',$totassesable),'id'=>'txttotalAssessable', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalcustom','value' => set_value('txttotalcustom',$totcustom),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalSubtotal','value' => set_value('txttotalSubtotal',$totSubtotal),'id'=>'txttotalSubtotal', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalIgst','value' => set_value('txttotalIgst',$totigst),'id'=>'txttotalIgst', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalcustomED','value' => set_value('txttotalcustomED',$totcustomED),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH','value' => set_value('txttotalcustomSH',$totcustomSH),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalgrossduty','value' => set_value('txttotalgrossduty',$totgrossduty),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - - - -
- 'txtTotalFreight','value' => set_value('txtTotalFreight',$totfreight),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- 'txtToatlOrder','value' => set_value('txtToatlOrder',$totorder),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- > - - - - -
-
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); - echo form_textarea($data); - ?> -
-
-
- -

- - - - - - - - - - -   Save -   Submit - -   Cancel - - - - - OK - - - -   Submit - OK - - - -
-
-
- -
-
- -
- -
-
-
-
- - - - - - +Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency; +} + + + +foreach ($PaymentTerms as $TER) +{ + $Terms=$TER->PaymentTerms; +} +//echo $Terms; +$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); +$CurrentDate = $dt->format('d-m-Y'); + +$MaxPoDate = ''; +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + } +} + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = $AvlBudAmt; + +} +//echo $AvlBudAmt;; + +$CompanyAddress = ''; +if(!empty($CompanyDetails)) +{ + foreach ($CompanyDetails as $Req) + { + $CompanyAddress = $Req->Address; + } +} + + + +$INR=''; +$INRSYM=''; +if(!empty($INRSYMBOL)) +{ + foreach ($INRSYMBOL as $INR) + { + $INRSYM=$INR->Currency_Code; + $INR=$INR->FontCode2000; + } +} +//echo $INR; +//echo "$CompanyAddress"; + //$Exchangerate=$ExchangeRate; + + +$index = 0; +$SupId = ''; +$SupName = ''; +$Address = ''; +$PODate = ''; +$Deliverydt =''; +$DeliveryAddress =''; +$PONOStatus=''; +$PONO = ''; +$ServiceDescription = ''; +$TotalLanding=0; +$tothighseas=0; +$totcustom=0; +$totexciseduty=0; +$totexcisedutyED=0; +$totexciseSH=0; +$totcustomED=0; +$totcustomSH=0; +$totaddtnlexcise=0; +$totgrossduty=0; +$totavlmodvat=0; +$totgrossexpense=0; +$totordervalue=0; +$totfreight=0; +$ExchangeRate=0; +$totorder=0; + +$totassesable=0; +$totSubtotal=0; +$totigst=0; + +$Cur=''; +$Currency_Type=''; +$PayableAT=''; +//$ExchangeRate +$ExchangeRateCalculatedon=''; +$StatusName=''; +$Import_DispatchDetails=''; +$Import_PlaceofOrgin=''; +$DeliveryOption=''; +$Orderedsum=''; +$PaymentTermsCode=''; +$Shipmentmode=''; +$SupplierRef=''; +$SupOfferno=''; +$Otherref=''; +$Fincap=''; +$BudgetType = ''; + +if(!empty($POMaster)) +{ + foreach ($POMaster as $Req) + { + $SupId = $Req->SupplierID; + $SupName = $Req->SupplierName; + $Address = $Req->Address; + + $Pdt = new DateTime($Req->PODate); + $PODate = $Pdt->format('d-m-Y'); + + $Ddt = new DateTime($Req->DeliveryDate); + $Deliverydt = $Ddt->format('d-m-Y'); + + $DeliveryAddress =$Req->DeliveryAddress; + $PONOStatus = $Req->StatusCode; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + $ExchangeRate=number_format(($Req->ExchangeRate),2); + //echo "$ExchangeRate"; + $EDt = new DateTime($Req->ExchangeRateCalculatedon); + $ExchangeRateCalculatedon = $EDt->format('d-m-Y'); + + $PaymentTerms=$Req->PaymentTerms; + // $PayableAT=$Req->PayableAT; + // $PaymentDays=$Req->PaymentDays; + $StatusName=$Req->StatusName; + $Currency_Type=$Req->CurrencyType; + $parentPO =$Req->ParentPO; + $DeliverySchedule=$Req->DeliverySchedule; + $Import_DispatchDetails=$Req->Import_DispatchDetails; + $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; + $PaymentTerms=$Req->PaymentTerms; + $DeliveryOption=$Req->DeliveryOption; + $ServiceDescription=$Req->ServiceDescription; + $Orderedsum=$Req->TotalOrderValue; + $PaymentTermsCode=$Req->PaymentOtherDescription; + $Shipmentmode=$Req->Mode_Of_Shipment; + $SupplierRef=$Req->Supplier_Reference; + $SupOfferno=$Req->Supplier_Offer_No; + $Otherref=$Req->Other_Reference; + $Fincap=$Req->Fincap; + + $Insurance=$Req->InsuranceStatus; + $InsuranceNo=$Req->InsuranceNumber; + $Importoption=$Req->POSubType; + $BudgetType = $Req->BudgetType; + } +} + +//echo $InsuranceNo; + +$ins=''; +if($Insurance==1) +{ + $ins='YES'; +} +else +{ + $ins='NO'; +} + + + + + +$SavedSum=$Orderedsum*$ExchangeRate; +//echo $SavedSum; +$AvilableBudget=$SavedSum+$AvlAmount; +//echo $AvilableBudget; +//echo $PaymentTermsCode; + +if(!empty($RequistionDetails)) +{ + + foreach ($RequistionDetails as $ReqDet) + { + // $Reqon=$ReqDet->ReqDate; + $Reqonn=new DateTime($ReqDet->ReqDate); + $Reqon=$Reqonn->format('d-m-Y'); + $Requestedby=$ReqDet->Requestedby; + $RequesterName=$ReqDet->FirstName; + //$Status=$ReqDet->Status; + } +} + +?> + + + + + + + + + +
+ +
+
+ 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + + + +
+
+
+ +

Resico Industries - Edit Import Purchase Order-

+ +

Resico Industries - Amended Purchase Order-

+ +
+ +
+
+
+
+
+
+ + + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + foreach ($ReqList as $SID): + $options[$SID->ReqNo] = $SID->ReqNo ; + // print_r($SID->ReqNo); + // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; + //$ReqType = $SID->ReqType; + endforeach; + } + //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' ,'required="true"' , 'height="400px"' ); + + ?> +
+ + + + +
+ + + Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + + } + + endforeach; + + + foreach ($Currency as $Cur): + if($Currency_Type!=$Cur->Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + + } + + endforeach; + } + + echo form_dropdown('currencytype', $options1,set_value('currencytype',$Currency_Type),'id="currencytype"','class="form-control select2"' , 'required="true"'); + + ?> + + + + + + + + +
+ + + + +
+
+
+
+ + + 'Select Supplier'); + //print_r( $options); + if(!empty($Suplist)) + { + foreach ($Suplist as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + ?> + + + +
+

+ +
+ 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + + + + + ?> +
+
+ + + +
+
+ +
+
+ +
+ + 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+ + + +
+
+
+ + + Select Delivery By*
+ + + "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>'checked')); ?>     + + "DateRange", "id"=>"Schedule", "value"=>"1")); ?> + + + +
+ + +
+ + + 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); + // echo form_input($data); + + $data = array('name' => 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40','maxlength' => '110'); + echo Form_textarea($data); + ?> + +
+ + +
+ +
+
+
+ +
+ +
+ 'Exchangerateon','value' => set_value('Exchangerateon',$ExchangeRateCalculatedon),'id'=>'Exchangerateon', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+ + + +
+ 'ExchangeRate','value' => set_value('ExchangeRate',$ExchangeRate),'id'=>'ExchangeRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); + echo form_input($data); + ?> +
+
+
+ +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+
+ +
+
+
+
+ + + +
+ + 'editmodeofshipment','value' => set_value('editmodeofshipment',$Shipmentmode),'id'=>'editmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ + + +
+
+
+
+
+ +
+ + 'editsupplierreference','value' => set_value('editsupplierreference',$SupplierRef),'id'=>'editsupplierreference', 'class' => 'form-control','maxlength'=>'40'); + echo form_input($data); + ?> +
+ + + + +
+
+
+
+ +
+ + 'editsupplierofferno','value' => set_value('editsupplierofferno',$SupOfferno),'id'=>'editsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ + 'editotherreference','value' => set_value('editotherreference',$Otherref),'id'=>'editotherreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+
+
+
+
+
+
+
+ + + + + + + 'Select Import Option'); + + + + if(!empty($PoTypeOptions)) +{ + foreach ($PoTypeOptions as $payment): + + if($Importoption==$payment->ConfigValue) + { + + $options2[$payment->ConfigValue] = $payment->ConfigValue; + } + + endforeach; + foreach ($PoTypeOptions as $payment): + + if($Importoption!=$payment->ConfigValue) + { + + $options2[$payment->ConfigValue] = $payment->ConfigValue; + } + endforeach; +} + + echo form_dropdown('Importoption', $options2,set_value('Importoption'),'id="Importoption"' ,'class="form-control"'); ?> +
+ + +
+ + + + + + + + + + + + +
+ +
+
+ + +
+
+ + + + + PaymentID){ + //echo "$Terms"; + //echo "$pay2->PaymentTerms"; + + ?> + + PaymentID] = $pay2->PaymentTerms; + + } + + foreach ($Payment as $pay1): + + if($Terms!=$pay1->PaymentID){ + + $optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms; + + } + endforeach; + } echo form_dropdown('PaymentTerms', $optionsPay,set_value('PaymentTerms'),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); ?> + +
+
+ + + + + +
+ + +
+ + + + +
+ + + + +
+
+
+
+ + +
+ +
+
+ + + + Add Line Item + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + Rate; + + ?> + + + + + + + + + + + + + + + + + + +" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AfterLandingCharge + $TotalLanding; + $TotalLanding = $TotalLanding + ($record->AfterLandingCharge); + $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; + $totcustom = $totcustom + $record->AfterCustomDuty; + $totexciseduty = $totexciseduty + $record->AfterExciseDuty; + $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; + $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; + $totcustomED = $totcustomED +$record->AfterCustomEdCess; + + $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; + $totaddtnlexcise= $totaddtnlexcise + $record->AfterAddlExciseDuty; + $totgrossduty = $totgrossduty + $record->Grossdutypayable; + // $totavlmodvat = $totavlmodvat +$record->AvailableModvat; + //$totgrossduty=$totgrossduty+$record->Grossdutypayable; + $totavlmodvat=$totavlmodvat+$record->AvailableModvat; + $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; + $ExchangeRate=$record->ExchangeRate; + //echo $totorder; + $totorder=$totorder+$record->TotalOrderValue; + + //echo $totorder; + + $totfreight=$totfreight+$record->AfterFreightValue; + + $totassesable=$totassesable+$record->AssessableValue; + $totSubtotal=$totSubtotal+$record->SubTotal; + $totigst=$totigst+$record->AfterIGST; + + //echo $totcustomED; + // $totorder=$record->TotalOrderValue; + // //$ServiceDescription=$record->ServiceDescription; + // echo $totorder; + //alert($totorder); + + + } + + ?> + + + + + + + + + +
SNoRequisition NoMaterial CodeDescriptionQuantityUOMRateBasic AmountReceived QtyRejected QtyPending QtyAction
ReqNo ?>MaterialCode ?>MaterialName?>Quantity ?>UOM ?>Rate ?>BasicValue ?>ReceivedQuantity ?>QuantityRejected ?>PendingQty?>     + +    
+
+ +
+ +
+
+ + + 'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAssessable','value' => set_value('txttotalAssessable',$totassesable),'id'=>'txttotalAssessable', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalcustom','value' => set_value('txttotalcustom',$totcustom),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalSubtotal','value' => set_value('txttotalSubtotal',$totSubtotal),'id'=>'txttotalSubtotal', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalIgst','value' => set_value('txttotalIgst',$totigst),'id'=>'txttotalIgst', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txttotalcustomED','value' => set_value('txttotalcustomED',$totcustomED),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH','value' => set_value('txttotalcustomSH',$totcustomSH),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txttotalgrossduty','value' => set_value('txttotalgrossduty',$totgrossduty),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + + + +
+ 'txtTotalFreight','value' => set_value('txtTotalFreight',$totfreight),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ 'txtToatlOrder','value' => set_value('txtToatlOrder',$totorder),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ > + + + + +
+
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+
+ +

+ + + + + + + + + + + + +   Save +   Submit + +   Cancel + + + + + OK + + + +   Submit + OK + + + +
+
+
+ +
+
+ +
+ +
+
+
+
+ + + + + +