Currency_Code . ' ' . ' - ' . ' ' . $Detail->Country_and_Currency; } //echo $Cur; foreach ($PaymentTerms as $TER) { $Terms = $TER->PaymentTerms; } //echo $Terms; $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $CurrentDate = $dt->format('d-m-Y'); $MaxPoDate = ''; if (!empty($MaxPODate)) { foreach ($MaxPODate as $date) { $MaxPoDate = $date->PODate; } } if (!empty($AvlBudAmt)) { $AvlAmount = $AvlBudAmt; } //echo $AvlBudAmt;; $CompanyAddress = ''; if (!empty($CompanyDetails)) { foreach ($CompanyDetails as $Req) { $CompanyAddress = $Req->Address; } } $INR = ''; $INRSYM = ''; if (!empty($INRSYMBOL)) { foreach ($INRSYMBOL as $INR) { $INRSYM = $INR->Currency_Code; $INR = $INR->FontCode2000; } } //echo $INR; //echo "$CompanyAddress"; //$Exchangerate=$ExchangeRate; $index = 0; $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt = ''; $DeliveryAddress = ''; $PONOStatus = ''; $PONO = ''; $ServiceDescription = ''; $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; $totfreight = 0; $ExchangeRate = 0; $totorder = 0; $totassesable = 0; $totSubtotal = 0; $totigst = 0; $Cur = ''; $Currency_Type = ''; $PayableAT = ''; //$ExchangeRate $ExchangeRateCalculatedon = ''; $StatusName = ''; $Import_DispatchDetails = ''; $Import_PlaceofOrgin = ''; $DeliveryOption = ''; $Orderedsum = ''; $PaymentTermsCode = ''; $Shipmentmode = ''; $SupplierRef = ''; $SupOfferno = ''; $Otherref = ''; $BudgetType = ''; if (!empty($POMaster)) { foreach ($POMaster as $Req) { $SupId = $Req->SupplierID; $SupName = $Req->SupplierName; $Address = $Req->MSME ? "MSME : " . $Req->MSME . "\n" . $Req->Address : $Req->Address; $Pdt = new DateTime($Req->PODate); $PODate = $Pdt->format('d-m-Y'); $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('d-m-Y'); $DeliveryAddress = $Req->DeliveryAddress; $PONOStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $ExchangeRate = number_format(((int)$Req->ExchangeRate), 2); //echo "$ExchangeRate"; $EDt = new DateTime($Req->ExchangeRateCalculatedon); $ExchangeRateCalculatedon = $EDt->format('d-m-Y'); $PaymentTerms = $Req->PaymentTerms; // $PayableAT=$Req->PayableAT; // $PaymentDays=$Req->PaymentDays; $StatusName = $Req->StatusName; $Currency_Type = $Req->CurrencyType; $parentPO = $Req->ParentPO; $DeliverySchedule = $Req->DeliverySchedule; $Import_DispatchDetails = $Req->Import_DispatchDetails; $Import_PlaceofOrgin = $Req->Import_PlaceofOrgin; $PaymentTerms = $Req->PaymentTerms; $DeliveryOption = $Req->DeliveryOption; $ServiceDescription = $Req->ServiceDescription; $Orderedsum = $Req->TotalOrderValue; $PaymentTermsCode = $Req->PaymentOtherDescription; $Shipmentmode = $Req->Mode_Of_Shipment; $SupplierRef = $Req->Supplier_Reference; $SupOfferno = $Req->Supplier_Offer_No; $Otherref = $Req->Other_Reference; $Insurance = $Req->InsuranceStatus; $InsuranceNumber = $Req->InsuranceNumber; $Importoption = $Req->POSubType; $BudgetType = $Req->BudgetType; $PrePOFile = $Req->POFile; } } //echo $InsuranceNumber; $ins = ''; if ($Insurance == 1) { $ins = 'YES'; } else { $ins = 'NO'; } $Orderedsum = (float)str_replace(',', '', $Orderedsum); $ExchangeRate = (float)str_replace(',', '', $ExchangeRate); // Perform multiplication $SavedSum = $Orderedsum * $ExchangeRate; // Format the result as a float with two decimal places $SavedSum = number_format($SavedSum, 2, '.', ''); //echo $SavedSum; $AvilableBudget = $SavedSum + $AvlAmount; //echo $AvilableBudget; //echo $PaymentTermsCode; if (!empty($RequistionDetails)) { foreach ($RequistionDetails as $ReqDet) { // $Reqon=$ReqDet->ReqDate; $Reqonn = new DateTime($ReqDet->ReqDate); $Reqon = $Reqonn->format('d-m-Y'); $Requestedby = $ReqDet->Requestedby; $RequesterName = $ReqDet->FirstName; //$Status=$ReqDet->Status; } } if (!empty($getlogpodtl)) { foreach ($getlogpodtl as $values) { $update = $values->FirstName; } } else { $update = []; } ?>
'form-label-left ImportPO ', 'name' => 'ImportPO', 'id' => 'ImportPO', 'enctype' => 'multipart/form-data'); echo form_open(base_url() . '/purchaseorder/addPO/', $attributes); ?>
'Selected Requisition Numbers'); if (!empty($ReqList)) { foreach ($ReqList as $SID) : $options[$SID->ReqNo] = $SID->ReqNo; // print_r($SID->ReqNo); // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; //$ReqType = $SID->ReqType; endforeach; } //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"', 'height="400px"'); ?>
'POType', 'value' => set_value('POType', IMPORT), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true'); 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'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2"'); echo form_dropdown('drpSupplier', $options, 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); ?>
Currency_Code) { $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; } endforeach; foreach ($Currency as $Cur) : if ($Currency_Type != $Cur->Currency_Code) { $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; } endforeach; } echo form_dropdown('currencytype', $options1, set_value('currencytype', $Currency_Type), 'id="currencytype" class="form-control select2" required="true"'); ?>
Select Delivery By*
"DateRange", "id" => "Date", "value" => "2", 'checked' => 'checked')); ?>     "DateRange", "id" => "Schedule", "value" => "1")); ?>
'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); ?>
'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); echo Form_textarea($data); ?>
Check Today's Foreign Exchange value (Click here)
'text', 'name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $ExchangeRateCalculatedon), 'id' => 'Exchangerateon', 'class' => 'form-control num form-date-search', 'required' => 'true', 'onkeypress' => 'return false;'); echo form_input($data); ?>
'ExchangeRate', 'value' => set_value('ExchangeRate', $ExchangeRate), 'id' => 'ExchangeRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'USRate()'); 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 num', 'required' => 'true'); echo form_input($data); ?>
'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control form-date-search', 'required' => 'true', 'onkeypress' => 'return false;'); echo form_input($data); ?>
'editmodeofshipment', 'value' => set_value('editmodeofshipment', $Shipmentmode), 'id' => 'editmodeofshipment', 'class' => 'form-control'); echo form_input($data); ?>
'editsupplierreference', 'value' => set_value('editsupplierreference', $SupplierRef), 'id' => 'editsupplierreference', 'class' => 'form-control', 'maxlength' => '40'); echo form_input($data); ?>
'editsupplierofferno', 'value' => set_value('editsupplierofferno', $SupOfferno), 'id' => 'editsupplierofferno', 'class' => 'form-control'); echo form_input($data); ?>
'editotherreference', 'value' => set_value('editotherreference', $Otherref), 'id' => 'editotherreference', 'class' => 'form-control'); echo form_input($data); ?>
'Select Import Option'); if (!empty($PoTypeOptions)) { foreach ($PoTypeOptions as $payment) : if ($Importoption == $payment->ConfigValue) { $options2[$payment->ConfigValue] = $payment->ConfigValue; } endforeach; foreach ($PoTypeOptions as $payment) : if ($Importoption != $payment->ConfigValue) { $options2[$payment->ConfigValue] = $payment->ConfigValue; } endforeach; } echo form_dropdown('Importoption', $options2, set_value('Importoption'), 'id="Importoption" class="form-control"'); ?>
PaymentID) { ?> 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"'); ?>




Rate; ?> " /> AfterLandingCharge + $TotalLanding; $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; //$totgrossduty=$totgrossduty+$record->Grossdutypayable; $totavlmodvat = $totavlmodvat + $record->AvailableModvat; $totgrossexpense = $totgrossexpense + $record->Grossexpensesduetocustomduty; $ExchangeRate = $record->ExchangeRate; //echo $totorder; $totorder = $totorder + $record->TotalOrderValue; //echo $totorder; $totfreight = $totfreight + $record->AfterFreightValue; $totassesable = $totassesable + $record->AssessableValue; $totSubtotal = $totSubtotal + $record->SubTotal; $totigst = $totigst + $record->AfterIGST; //echo $totcustomED; // $totorder=$record->TotalOrderValue; // //$ServiceDescription=$record->ServiceDescription; // echo $totorder; //alert($totorder); } ?>
SNo Requisition No Material Code Description Quantity UOM Rate Basic Amount Action
ReqNo ?> MaterialCode ?> MaterialName ?> Quantity ?> UOM ?> Rate ?> BasicValue ?>        


'txttotallanding', 'value' => set_value('txttotallanding', $TotalLanding), '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', $totcustom), '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', $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); ?>
'txttotalgrossduty', 'value' => set_value('txttotalgrossduty', $totgrossduty), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); echo form_input($data); ?>
'txtTotalFreight', 'value' => set_value('txtTotalFreight', $totfreight), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'required' => 'true', 'readonly' => 'true', 'style' => 'text-align:right;'); echo form_input($data); ?>
'txtToatlOrder', 'value' => set_value('txtToatlOrder', $totorder), 'id' => 'txtToatlOrder', 'class' => 'form-control', 'required' => 'true', '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', strip_tags($ServiceDescription)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40'); echo form_textarea($data); ?>


'AWAITING APPROVE', 'AWAITING RELEASE' => 'AWAITING APPROVE', 'RELEASER ONHOLD' => 'APPROVER ONHOLD', 'PO RELEASED' => 'PO APPROVED', ]; if (isset($StatusName) && !empty($StatusName)) { if (isset($statusMappings[$StatusName])) { echo $statusMappings[$StatusName]; } else { echo $StatusName; } } else { echo "Status not provided"; } ?>