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 = ''; $TotalCgst = 0; $TotalSgst = 0.0; $TotalIgst = 0.0; $OtherAmt = 0.0; $TotalSummary = 0.0; $TotalBasicAmount = 0.0; $ServiceDescription = ''; $Import_DispatchDetails=''; $Import_PlaceofOrgin=''; $CapitalRange=''; $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; $ExchangeRate=''; $PaymentTerms=''; $PaymentDays=''; $PayableAT=''; $ExchangeDate=''; $ExchangeRateOn=''; $UpdatedOn; $CapitalRange=''; $PoStatusName=''; $otherPayment=''; $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; $PONOStatus = $Req->StatusCode; $POStatus = $Req->StatusCode; $PoStatusName=$Req->StatusName; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $ExchangeRateOn=$Req->ExchangeRateCalculatedon; $PaymentTerms=$Req->PaymentTerms; $otherPayment = $Req->PaymentOtherDescription; $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 = number_format($AvlCapitalBudAmt, 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); ?>

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', '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
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"'); ?>
$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; $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->Rate * $record->Quantity; } ?>
SNo Requisition No Item Code Item Description Quantity UOM Rate Basic Amount Tax Amount Total Order Amount Actual Quantity Received Quantity Pending Quantity Action
ReqNo ?> MaterialCode?> MaterialName?> Quantity ?> UOM ?> Rate ?> Rate * $record->Quantity, 2, '.', '') ?> ServiceTaxamount;?> Rate * $record->Quantity, 2, '.', '') ?> Quantity ?> ReceivedQuantity ?> Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>        




'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); ?>
'txttotallanding','value' => set_value('txttotallanding',number_format($TotalLanding, 2, '.', '')),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalhighseas','value' => set_value('txttotalhighseas',number_format($tothighseas, 2, '.', '')),'id'=>'txttotalhighseas', '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); ?>
'txttotalexcise','value' => set_value('txttotalexcise',number_format($totexciseduty, 2, '.', '')),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalexciseED','value' => set_value('txttotalexciseED',number_format($totexcisedutyED, 2, '.', '')),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalexciseSH','value' => set_value('txttotalexciseSH',number_format($totexciseSH, 2, '.', '')),'id'=>'txttotalexciseSH', '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); ?>
'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',number_format($totaddtnlexcise, 2, '.', '')),'id'=>'txttotalAdditionalExciseduty', '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); ?>
'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',number_format($totavlmodvat, 2, '.', '')),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',number_format($totgrossexpense, 2, '.', '')),'id'=>'txttotalgrossexpense', '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); ?>
'Requeston','value' => set_value('Requeston',$UpdatedOn),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;','readonly' => 'true','readonly' => 'true'); echo form_input($data); ?>

'RequestBy','value' => set_value('RequestBy', $requestedBy),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','readonly' => 'true'); echo form_input($data); ?>

'Status','value' => set_value('Status',$PoStatusName),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>

  Save   Submit   OK