From 90d2ba19bec9613f7fc512bf97e6f4d5b9860711 Mon Sep 17 00:00:00 2001 From: velz2020 Date: Fri, 7 Jul 2017 20:29:08 +0530 Subject: [PATCH] AMENDMENT PO'S --- application/views/editCapitalAmendPO.php | 4467 ++++++++++++++++++++++ application/views/editCapitalPo.php | 83 +- 2 files changed, 4518 insertions(+), 32 deletions(-) create mode 100644 application/views/editCapitalAmendPO.php diff --git a/application/views/editCapitalAmendPO.php b/application/views/editCapitalAmendPO.php new file mode 100644 index 00000000..921f1adf --- /dev/null +++ b/application/views/editCapitalAmendPO.php @@ -0,0 +1,4467 @@ + FirstName; + $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + $CurrentDate = $dt->format('Y-m-d'); + $res_arr_values = array(); + $DeliverOption=''; + $SupId = ''; + $SupName = ''; + $Address = ''; + $PODate = ''; + + $DeliveryAddress =''; + $POStatus = ''; + $PONO = ''; + $TotalServiceTax = 0; + $TotalEducessTax = 0.0; + $TotalSecHigherEducessTax = 0.0; + $TotalKrishiKalyantax = 0.0; + $TotalSwachhBharattax = 0.0; + $TotalSummary = 0.0; + $TotalBasicAmount = 0.0; + $ServiceDescription = ''; + + $Deliverydt=''; + $DeliverSchedule=''; + $MaxPoDate = ''; + $AvlAmount = 0; + $currentCurrencyType=''; + $exchangeRate = $ExchangeRate; + + $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=''; + +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; + $POStatus = $Req->StatusCode; + $PoStatusName=$Req->StatusName; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + $PayableAT=$Req->PayableAT; + $ExchangeRateOn=$Req->ExchangeRateCalculatedon; + $PaymentDays=$Req->PaymentDays; + + $PaymentTerms=$Req->PaymentTerms; + $UpdatedOn=$Req->UpdatedOn; + $CapitalRange=$Req->CapitalRange; + + } +} + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = $AvlBudAmt; + +} + +?> + + + + + + + + +
+
+ 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+ +
+
+ +

Siddharth Industries - Edit Capital Purchase Order:- - for Amendment

+ + +
+
+
+
+
+
+ + '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' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?> + + + + 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> + + + +
+ + +

+ + + 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> + +
+ +
+ +
+
+ + + + + +
+ +
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+ + + +
+
+ Payment Details + +
+ Payable Terms + + + ConfigValue){ + $options6[$rl->ConfigValue] = $rl->ConfigValue; + } + + + + endforeach; + + + if(!empty($Payment)) + { + foreach ($Payment as $rl2): + + + if($PaymentTerms!=$rl2->ConfigValue){ + $options6[$rl2->ConfigValue] = $rl2->ConfigValue; + } + + endforeach; + } + + echo form_dropdown('PaymentMethod', $options6,set_value('PaymentMethod',$PaymentTerms),'id="PaymentMethod"' ,'required="true"' ,'class="form-control select2'); + + ?> + + + +
+ +
+ Payable AT + 'PayableAT','value' => set_value('PayableAT',$PayableAT),'id'=>'PayableAT', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> + +
+ +
+ Payment Date
+ + + + + + 'Before', 'value' => 'Before', 'checked' => ('Before' == $PaymentDays) ? TRUE : FALSE, 'id' => 'Before')); ?> + + + + 'After', 'value' => 'After', 'checked' => ('After' == $PaymentDays) ? TRUE : FALSE, 'id' => 'After')); ?> + + + +
+ +
+
+
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + $record->MaterialCode,"ReqNo"=>$record->ReqNo); + array_push($res_arr_values, $row); + ?> + + + + +" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ServiceTax; + $TotalEducessTax = $TotalEducessTax+$record->EducessTax; + $TotalSecHigherEducessTax = $TotalSecHigherEducessTax+$record->SecHigherEducessTax; + $TotalKrishiKalyantax = $TotalKrishiKalyantax+$record->KrishiKalyantax; + $TotalSwachhBharattax = $TotalSwachhBharattax+$record->SwachhBharattax; + $TotalSummary = $TotalSummary+$record->ServiceTaxamount; + $TotalBasicAmount = $TotalBasicAmount+$record->BasicValue; + $ServiceDescription = $ServiceDescription; + + $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->BasicValue; + + + + } + ?> + + + + + + + + +
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
ReqNo ?>MaterialName?>Quantity ?>UOM ?>Rate ?>BasicValue ?>ServiceTaxamount?>BasicValue?>     + + + +
+
+
+ +
+
+ +
+ +
+
+
+
+
+ Service Tax @14% : +
+ 'TotalAfterServiceTax','value' => set_value('TotalAfterServiceTax',$TotalServiceTax),'id'=>'TotalAfterServiceTax', 'class' => 'form-control' ,'placeholder' => 'After Service Tax','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Education cess @2% on service Tax : +
+ 'TotalAfterEduCess','value' => set_value('TotalAfterEduCess',$TotalEducessTax),'id'=>'TotalAfterEduCess', 'class' => 'form-control' ,'placeholder' => 'After Edu. cess','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Sec. & Higher Edu. cess @1 % on service Tax : +
+ 'TotalAfterSecHighTax','value' => set_value('TotalAfterSecHighTax',$TotalSecHigherEducessTax),'id'=>'TotalAfterSecHighTax', 'class' => 'form-control' ,'placeholder' => 'After High Edu. cess','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Krishi Kalyan tax @.5 % on Basic Amount: +
+ 'TotalAfterKrishiTax','value' => set_value('TotalAfterKrishiTax',$TotalKrishiKalyantax),'id'=>'TotalAfterKrishiTax', 'class' => 'form-control' ,'placeholder' => 'After Krishi Kalyan tax.','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Swachh Bharat tax @.5 % on Basic Amount: +
+ 'TotalAfterSwachhTax','value' => set_value('TotalAfterSwachhTax',$TotalSwachhBharattax),'id'=>'TotalAfterSwachhTax', 'class' => 'form-control' ,'placeholder' => 'After Swatchh Bhart Tax.','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Total Tax Amount: +
+ 'txtToatlOrder','value' => set_value('txtToatlOrder',$TotalSummary),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+ +
+
+ +
+ + + 'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalhighseas','value' => set_value('txttotalhighseas',$tothighseas),'id'=>'txttotalhighseas', '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); + ?> +
+ +
+ + + 'txttotalexcise','value' => set_value('txttotalexcise',$totexciseduty),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexciseED','value' => set_value('txttotalexciseED',$totexcisedutyED),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalexciseSH','value' => set_value('txttotalexciseSH',$totexciseSH),'id'=>'txttotalexciseSH', '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); + ?> +
+ +
+ + + 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',$totaddtnlexcise),'id'=>'txttotalAdditionalExciseduty', '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); + ?> +
+ +
+ + + 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',$totavlmodvat),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',$totgrossexpense),'id'=>'txttotalgrossexpense', '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); + ?> +
+ + + + +
+ +
+
+ Request On + 'Requeston','value' => set_value('Requeston',$UpdatedOn),'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 + 'Status','value' => set_value('Status',$PoStatusName),'id'=>'Status', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + + + + + + +   Submit + + +
+
+ +
+ +
+ + + + + diff --git a/application/views/editCapitalPo.php b/application/views/editCapitalPo.php index 8350c643..d91007ff 100755 --- a/application/views/editCapitalPo.php +++ b/application/views/editCapitalPo.php @@ -103,7 +103,6 @@ if(!empty($AvlBudAmt)) $AvlAmount = $AvlBudAmt; } - ?>