format('Y-m-d'); $MaxPoDate = ''; $AvlAmount = 0; $DeliverSchedule=''; $DeliverOption=''; $RowCount = 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; } foreach ($PaymentTerms as $TER) { $Terms=$TER->PaymentTerms; } $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt =''; $DeliveryAddress =''; $POStatus = ''; $PONO = ''; $totBasicAmt = 0; $totDiscountAmt = 0.0; $totPackagingAmt = 0.0; $totExciseAmt = 0.0; $totVATAmt = 0.0; //FOR SGST $totCSTAmt = 0.0;//FOR CGST $totGSTAmt = 0.0;//FOR IGST $totOtherTaxAmt = 0.0; $totFreightAmt = 0.0; $totInsuranceAmt = 0.0; $totOrderSummaryAmt = 0.0; $ServiceDescription = ''; if(!empty($POMaster)) { // print_r($POMaster); // print_r($Payment); // echo "****"; // print_r($PaymentTerms); 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); echo $Req->DeliveryDate."
"; $Deliverydt = $Ddt->format('Y-m-d'); echo $Deliverydt; $DeliveryAddress =$Req->DeliveryAddress; $POStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $PayableAT=$Req->PayableAT; $PaymentDays=$Req->PaymentDays; } } if(!empty($RequistionDetails)) { foreach ($RequistionDetails as $ReqDet) { $Reqon=$ReqDet->ReqDate; $Requestedby=$ReqDet->Requestedby; //$Status=$ReqDet->Status; } } //echo $ServiceDescription; foreach ($POSTATUS as $PST ) { $POStatus=$PST->StatusName; } ?>
'form-label-left CreatePO ','name' => 'CreatePO','id' => 'CreatePO'); echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>

Siddharth Industries - Amendment 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"' ); ?>
'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;'); echo form_input($data); ?>
'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();')); ?>
Select Delivery By
'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?> 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
'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); ?>
'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;'); echo form_input($data); ?>
Payment Details
Payable Terms 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'); ?>


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 num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalDiscount','value' => set_value('txtTotalDiscount',$totDiscountAmt),'id'=>'txtTotalDiscount', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalVat','value' => set_value('txtTotalVat',$totVATAmt),'id'=>'txtTotalVat', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalGST','value' => set_value('txtTotalGST',$totGSTAmt),'id'=>'txtTotalGST','readonly' => 'true', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' calculateGST(0);'); echo form_input($data); ?>
'txtTotalPackaing','value' => set_value('txtTotalPackaing',$totPackagingAmt),'id'=>'txtTotalPackaing', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalInsurance','value' => set_value('txtTotalInsurance',$totInsuranceAmt),'id'=>'txtTotalInsurance', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalFreight','value' => set_value('txtTotalFreight',$totFreightAmt),'id'=>'txtTotalFreight', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',$totOrderSummaryAmt),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;'); echo form_input($data); ?>
'txtSpcialInstruction','id'=>'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription), 'rows'=>'8','class' => 'form-control' ); echo form_textarea($data); ?>
Request On 'Requeston','value' => set_value('Requeston',$Reqon),'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 $POStatus); echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2') ?>