"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, '.', ''); } //print_r($getlogpodtl);die; if(!empty($getlogpodtl)) { foreach ($getlogpodtl as $values ) { $update=$values->FirstName; } } ?>
'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; 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; } ?>
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 + $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); ?>
entity =='PO DateChanged'){ $oldValue = date('d-m-Y',strtotime($oldpo->oldValue)); }else{ $oldValue = $oldpo->oldValue; }?> entity =='PO DateChanged'){ $newValue = date('d-m-Y',strtotime($oldpo->newValue)); }else{ $newValue = $oldpo->newValue; }?>
Sno PONO LineItemNo Entity OldValue NewValue UpdatedBy UpdateOn
PONO ?> LineItemNos;?> entity?> SupplierName;?> FirstName?> UpdatedOn); echo $date->format('d-m-Y'); ?>
'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