format('Y-m-d'); $MaxPoDate = ''; $AvlAmount = 0; if(!empty($MaxPODate)) { foreach ($MaxPODate as $date) { $MaxPoDate = $date->PODate; } } if(!empty($CompanyDetails)) { foreach ($CompanyDetails as $Req) { $CompanyAddress = $Req->Address; } } if(!empty($AvlBudAmt)) { $AvlAmount = $AvlBudAmt; } $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt =''; $DeliveryAddress =''; $POStatus = ''; $PONO = ''; $totBasicAmt = 0; $totDiscountAmt = 0.0; $totPackagingAmt = 0.0; $totExciseAmt = 0.0; $totVATAmt = 0.0; $totCSTAmt = 0.0; $totGSTAmt = 0.0; $totOtherTaxAmt = 0.0; $totFreightAmt = 0.0; $totInsuranceAmt = 0.0; $totOrderSummaryAmt = 0.0; $ServiceDescription = ''; 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'); $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('Y-m-d'); $DeliveryAddress =$Req->DeliveryAddress; $POStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; } } ?>
'form-label-left CreatePO ','name' => 'CreatePO','id' => 'CreatePO'); echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>

Siddharth Industries - Edit Revenue Purchase Order -



'Selected Requisition Numbers'); if(!empty($ReqList)) { foreach ($ReqList as $SID): $options[$SID->ReqNo] = $SID->ReqNo ; //$ReqType = $SID->ReqType; endforeach; } echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' ,'required="true"' , 'height="400px"' ); ?>
'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',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); ?>
'POType','value' => set_value('POType',REVENUE),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
Select Tax Range
"Range","id"=>"Local","value"=>"0", 'checked'=>set_radio('Range', '0', TRUE),'onchange'=>'SetVatorCST();')); ?>     "Range","id"=>"Inter_state","value"=>"1", 'checked'=>set_radio('Range', '1', FALSE),'onchange'=>'SetVatorCST();')); ?>
'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40'); echo Form_textarea($data); ?>
'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', '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); ?>
'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true','onkeypress'=>'return false;'); echo form_input($data); ?>


BasicValue; $totDiscountAmt = $totDiscountAmt + $record->AfterDiscount; $totPackagingAmt = $totPackagingAmt + $record->AfterPackagingValue; $totExciseAmt = $totExciseAmt + $record->AfterExciseDuty; $totVATAmt = $totVATAmt + $record->AfterVAT; $totCSTAmt = $totCSTAmt + $record->AfterCST; $totGSTAmt = $totGSTAmt +$record->AfterGST; $totOtherTaxAmt = $totOtherTaxAmt + $record->AfterOtherTaxes; $totFreightAmt = $totFreightAmt + $record->AfterFreightValue; $totInsuranceAmt = $totInsuranceAmt + $record->Insurance; $totOrderSummaryAmt = $totOrderSummaryAmt +$record->TotalValue; } ?>
SNo Requisition No Item Name Quantity UOM Rate Basic Amount Tax Amount Total Order Amount Action
ReqNo ?> MaterialName ?> Quantity ?> UOM ?> Rate ?> BasicValue ?> Taxamount ?> TotalValue ?>        
'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',$totBasicAmt),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalDiscount','value' => set_value('txtTotalDiscount',$totDiscountAmt),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalVat','value' => set_value('txtTotalVat',$totVATAmt),'id'=>'txtTotalVat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalPackaing','value' => set_value('txtTotalPackaing',$totPackagingAmt),'id'=>'txtTotalPackaing', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotExciseDuty','value' => set_value('txtTotExciseDuty',$totExciseAmt),'id'=>'txtTotExciseDuty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalGST','value' => set_value('txtTotalGST',$totCSTAmt),'id'=>'txtTotalGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalInsurance','value' => set_value('txtTotalInsurance',$totInsuranceAmt),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalFreight','value' => set_value('txtTotalFreight',$totFreightAmt),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalOtherTaxes','value' => set_value('txtTotalOtherTaxes',$totOtherTaxAmt),'id'=>'txtTotalOtherTaxes', 'class' => 'form-control','readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
 


'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',$totOrderSummaryAmt),'id'=>'txtTotalOrderValueSummary', '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' => '3', 'cols' => '40' ); echo form_textarea($data); ?>