FirstName; $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $CurrentDate = $dt->format('Y-m-d'); $res_arr_values = array(); $DeliverOption=''; $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $TotalCgst=''; $TotalSgst=''; $TotalIgst=''; $DeliveryAddress =''; $POStatus = ''; $PONO = ''; $TotalServiceTax = 0; $TotalEducessTax = 0.0; $TotalSecHigherEducessTax = 0.0; $TotalKrishiKalyantax = 0.0; $TotalSwachhBharattax = 0.0; $TotalSummary = 0.0; $TotalBasicAmount = 0.0; $ServiceDescription = ''; $Import_DispatchDetails=''; $Import_PlaceofOrgin=''; $CapitalRange=''; $Deliverydt=''; $DeliverSchedule=''; $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; $ExchangeRate=''; $PaymentTerms=''; $PaymentDays=''; $PayableAT=''; $ExchangeDate=''; $ExchangeRateOn=''; $UpdatedOn; $CapitalRange=''; $PoStatusName=''; $INR=''; $INRSYM=''; 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('Y-m-d'); $DeliverOption = $Req->DeliveryOption; $DeliverSchedule = $Req->DeliverySchedule; $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('Y-m-d'); $DeliveryAddress =$Req->DeliveryAddress; $POStatus = $Req->StatusCode; $PoStatusName=$Req->StatusName; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $PayableAT=$Req->PayableAT; $ExchangeRateOn=$Req->ExchangeRateCalculatedon; $PaymentDays=$Req->PaymentDays; $PaymentTerms=$Req->PaymentTerms; $UpdatedOn=$Req->UpdatedOn; $CapitalRange=$Req->CapitalRange; $Import_DispatchDetails=$Req->Import_DispatchDetails; $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; $CapitalRange=$Req->CapitalRange; } } //echo $CapitalRange; if(!empty($AvlBudAmt)) { $AvlAmount = $AvlBudAmt; } ?>
'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); ?>

Siddharth Industries - Edit Capital Purchase Order

'Selected Requisition Numbers'); if(!empty($ReqList)) { foreach ($ReqList as $SID): $options[$SID->ReqNo] = $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); ?>
'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"=>"0", 'checked'=>'checked')); ?>     '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'); echo Form_textarea($data); ?>
'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); 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); ?>
Payment Details
Payable Terms PaymentTerms) { $options6[$rl->PaymentTerms] = $rl->PaymentTerms; } endforeach; if(!empty($Payment)) { foreach ($Payment as $rl2): if($PaymentTerms!=$rl2->PaymentTerms) { $options6[$rl2->PaymentTerms] = $rl2->PaymentTerms; } endforeach; } echo form_dropdown('PaymentMethod', $options6,set_value('PaymentMethod',$PaymentTerms),'id="PaymentMethod"' ,'required="true"' ,'class="form-control select2'); ?>
$record->MaterialCode,"ReqNo"=>$record->ReqNo); array_push($res_arr_values, $row); ?> " /> ServiceTax; $TotalEducessTax = $TotalEducessTax+$record->EducessTax; $TotalSecHigherEducessTax = $TotalSecHigherEducessTax+$record->SecHigherEducessTax; $TotalKrishiKalyantax = $TotalKrishiKalyantax+$record->KrishiKalyantax; $TotalSwachhBharattax = $TotalSwachhBharattax+$record->SwachhBharattax; $TotalSummary = $TotalSummary+$record->ServiceTaxamount; $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; $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; $ExchangeRate=$record->ExchangeRate; } // $totorder=$totorder+$record->TotalOrderValue; $totalCapitalOrder = $totalCapitalOrder+$record->BasicValue; } ?>
SNo Requisition No Item Name Quantity UOM Rate Basic Amount Tax Amount Total Order Amount Action
ReqNo ?> MaterialName?> Quantity ?> UOM ?> Rate ?> Rate * $record->Quantity ?> ServiceTaxamount?> Rate * $record->Quantity ?>        




'txtTotCgst','value' => set_value('txtTotCgst' ),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true'); echo form_input($data); ?>
'txtTotSgst','value' => set_value('txtTotSgst' ),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true'); echo form_input($data); ?>
'txtTotIgst','value' => set_value('txtTotIgst' ),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true'); echo form_input($data); ?>
'ToatalOtherAllowances','value' => set_value('ToatalOtherAllowances'),'id'=>'ToatalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); echo form_input($data); ?>
'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalhighseas','value' => set_value('txttotalhighseas',$tothighseas),'id'=>'txttotalhighseas', '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); ?>
'txttotalexcise','value' => set_value('txttotalexcise',$totexciseduty),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalexciseED','value' => set_value('txttotalexciseED',$totexcisedutyED),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalexciseSH','value' => set_value('txttotalexciseSH',$totexciseSH),'id'=>'txttotalexciseSH', '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); ?>
'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',$totaddtnlexcise),'id'=>'txttotalAdditionalExciseduty', '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); ?>
'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',$totavlmodvat),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',$totgrossexpense),'id'=>'txttotalgrossexpense', '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); ?>
Request On 'Requeston','value' => set_value('Requeston',$UpdatedOn),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); echo form_input($data); ?>
Request By 'RequestBy','value' => set_value('RequestBy',$requestedBy),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true'); echo form_input($data); ?>
Status 'Status','value' => set_value('Status',$PoStatusName),'id'=>'Status', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true'); echo form_input($data); ?>
  Save   Submit   OK