From 33a76fe9f0587870b4341bb7b7391a398672973c Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 18 Dec 2017 19:16:05 +0530 Subject: [PATCH] inward po code merged --- application/controllers/cashbook.php | 2 +- application/controllers/purchaseorder.php | 23 +- application/controllers/supplier.php | 2 +- .../views/EditservicePurchaseorder.php | 6605 +++--- application/views/addnewIncomeExpense.php | 2 +- application/views/alterpurchaseorder.php | 16963 ++++++++-------- .../views/editRevenuepurchaseorder.php | 10746 +++++----- application/views/payslipgenerateprint.php | 2 +- application/views/purchaseorder.php | 66 +- 9 files changed, 17432 insertions(+), 16979 deletions(-) mode change 100644 => 100755 application/views/EditservicePurchaseorder.php mode change 100644 => 100755 application/views/alterpurchaseorder.php mode change 100644 => 100755 application/views/editRevenuepurchaseorder.php diff --git a/application/controllers/cashbook.php b/application/controllers/cashbook.php index fc3f1c61..a7ee166a 100755 --- a/application/controllers/cashbook.php +++ b/application/controllers/cashbook.php @@ -308,7 +308,7 @@ class cashbook extends BaseController $words1 = array('2' => 'twenty', '3' => 'thirty', '4' => 'fourty', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy', - '8' => 'eighty', '9' =>'ninty'); + '8' => 'eighty', '9' =>'ninety'); $words12 = array('11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index f7c668be..fbf24010 100644 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -391,7 +391,7 @@ class purchaseorder extends BaseController $PAYTERM=$TER->PaymentTerms; } - + $data['getdata'] = $this->purchaseorder_model->getfunction($PONO); $data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate(); $data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006'); $data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018'); @@ -401,7 +401,7 @@ class purchaseorder extends BaseController $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO); $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); - + $data['getdata'] = $this->purchaseorder_model->getfunction($PONO); $data['WorkStatus']=$this->purchaseorder_model->getStatus(7); $this->global['pageTitle'] = 'Resico : Edit Service Purchase order form'; @@ -410,11 +410,12 @@ class purchaseorder extends BaseController else if($ReqType == REVENUE) { - $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO); - $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); - $data['WorkStatus']=$this->purchaseorder_model->getStatus(7); - $this->global['pageTitle'] = 'Resico : Edit Revenue Purchase order form'; - $this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL); + $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO); + $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); + $data['WorkStatus']=$this->purchaseorder_model->getStatus(7); + $this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form'; + $this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL); + } else if($ReqType == IMPORT) { @@ -2801,14 +2802,14 @@ $point=0; '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty', - '30' => 'thirty', '40' => 'forty', '50' => 'fifty', + '30' => 'thirty', '40' => 'fourty', '50' => 'fifty', '60' => 'sixty', '70' => 'seventy', '80' => 'eighty', '90' => 'ninety','06'=>'Zero Six','01'=>'Zero One','02'=>'Zero Two' ,'03'=>'Zero Three','04'=>'Zero Four','05'=>'Zero Five','07'=>'Zero Seven','08'=>'Zero Eight','09'=>'Zero Nine'); $words1 = array('2' => 'twenty', '3' => 'thirty', '4' => 'fourty', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy', - '8' => 'eighty', '9' =>'ninty'); + '8' => 'eighty', '9' =>'ninety'); $words12 = array('11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', @@ -2893,13 +2894,13 @@ $point=0; '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty', - '30' => 'thirty', '40' => 'forty', '50' => 'fifty', + '30' => 'thirty', '40' => 'fourty', '50' => 'fifty', '60' => 'sixty', '70' => 'seventy', '80' => 'eighty', '90' => 'ninety'); $words1 = array('2' => 'twenty', '3' => 'thirty', '4' => 'fourty', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy', - '8' => 'eighty', '9' =>'ninty'); + '8' => 'eighty', '9' =>'ninety'); $words12 = array('11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', diff --git a/application/controllers/supplier.php b/application/controllers/supplier.php index 73e2cfac..22d0ae2b 100644 --- a/application/controllers/supplier.php +++ b/application/controllers/supplier.php @@ -431,7 +431,7 @@ class supplier extends BaseController /** * To view the Supplier information and load's the edit supplier screen */ - function viewusupplier($SID = '') + function viewsupplier($SID = '') { $Payment = ''; if($SID == '') diff --git a/application/views/EditservicePurchaseorder.php b/application/views/EditservicePurchaseorder.php old mode 100644 new mode 100755 index e665abf4..2b7cf0f7 --- a/application/views/EditservicePurchaseorder.php +++ b/application/views/EditservicePurchaseorder.php @@ -1,3262 +1,3343 @@ -"NO","value"=>"0"),array("name"=>"YES","value"=>"1") -); - $DeliverOption=''; - $SupId = ''; - $SupName = ''; - $Address = ''; - $PODate = ''; - - $DeliveryAddress =''; - $PONOStatus = ''; - $PONO = ''; - - $TotalCgst = 0.0; - $TotalSgst = 0.0; - $TotalIgst = 0.0; - $TotalSummary = 0.0; - $TotalBasicAmount = 0.0; - $ServiceDescription = ''; - $OtherAmt = 0.0; - - $Deliverydt=''; - $DeliverSchedule=''; - $MaxPoDate = ''; - $AvlAmount = 0; - $Value="₹"; - - $StatusName=''; - $ModeOfShipment=''; - $SupplierReference=''; - $SuppliersOfferNo=''; - $OtherReferences=''; - $Fincap=''; - $InsuranceOptions=''; - $InsuranceNo=''; - $ServiceTypeOptions=''; - $DescriptionOfPo = ''; - - -if(!empty($INRSYMBOL)) -{ - - foreach($INRSYMBOL as $INRS) - { - $INRSYM=$INRS->FontCode2000; - - } -} - -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; - $PONO = $Req->PONO; - $ServiceDescription = $Req->ServiceDescription; - $WrkStatus=$Req->ServiceWorkStatus; - $StatusName=$Req->StatusName; - $otherPayment = $Req->PaymentOtherDescription; - $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; - $DescriptionOfPo = $Req->Description_Of_Service; - - } -} - - -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; - } -} - -//echo "$WrkStatus"; - -if(!empty($AvlBudAmt)) -{ - - $AvlAmount = number_format($AvlBudAmt, 2, '.', ''); - - -} - - -foreach ($PaymentTerms as $TER) -{ - $Terms=$TER->PaymentTerms; -} - - - -// foreach ($POSTATUS as $PST ) -// { -// $POStatus=$PST->StatusName; -// } -?> - - - - - - - - - - - -
- 'form-label-left ServicePO ','name' => 'ServicePO','id' => 'ServicePO'); - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - -
-
-
-
-

Resico Industries - Edit Service 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"'); - - ?> -
-
- -
- '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'); - - ?> - -
-

- -
- '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',SERVICE),'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')); ?> - - - -
-
- - StatusCode){ - $optionsWork[$WorkSID->StatusCode] = $WorkSID->StatusName; - } - - - endforeach; - foreach ($WorkStatus as $SID): - if($WrkStatus!=$SID->StatusCode){ - $optionsWork[$SID->StatusCode] = $SID->StatusName; - } - - - endforeach; - } - - echo form_dropdown('workstatus', $optionsWork,set_value('workstatus'),'id="workstatus"' ,'required="true"' ,'class="form-control select2'); - - ?> -
-

- -
- 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); - 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); - ?> -
-
-
-
- - - PaymentID){ - - $optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms; - - } - endforeach; - 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'); - - ?> - - - - -
-
- - -
-
-
- - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - Schedule_Type!='Recurring'){ - $FrequencyNo=intval(1); - $Frequency='One Time'; - } - else{ - $FrequencyNo=$record->NumberOfService; - $Frequency=$record->Service_Period; - } - - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - After_CGST; - $TotalSgst = $TotalSgst + $record->After_SGST; - $TotalIgst = $TotalIgst + $record->After_IGST; - $OtherAmt = $OtherAmt + $record->otherallowance; - $TotalSummary = $TotalSummary + $record->TotalValue; - - - $TotalBasicAmount = $TotalBasicAmount + $record->BasicValue * $FrequencyNo; - - } - ?> - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRate Basic Amount Tax Amount Total Order Amount Actual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode ?>ServiceMaterialDescription ?>Quantity ?>UOM ?>Rate ?>BasicValue * $FrequencyNo, 2, '.', ''); ?>Taxamount ?>TotalValue ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     - -    
-
- -
-
-
- -
- - 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($TotalBasicAmount, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true'); - 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); - ?> -
- -
- - 'ToatalOtherAllowances','value' => set_value('ToatalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'ToatalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
- - 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($TotalSummary, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
- -
- -
- -
- 'editdescofpo','value' => set_value('editdescofpo',$DescriptionOfPo),'id'=>'editdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); - echo form_textarea($data); - ?> -
-
- -
-
- 'ScopeofWork','value' => set_value('ScopeofWork',$ServiceDescription),'id'=>'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40' ); - echo form_textarea($data); - ?> -
- -
-
- -

- - - - - -   Save -   Submit -   Cancel - -   OK - -   Submit -
- -
- -
- -
- - -
- -
- - -
-
- - - - - - - - - +"NO","value"=>"0"),array("name"=>"YES","value"=>"1") +); + $DeliverOption=''; + $SupId = ''; + $SupName = ''; + $Address = ''; + $PODate = ''; + + $DeliveryAddress =''; + $PONOStatus = ''; + $PONO = ''; + + $TotalCgst = 0.0; + $TotalSgst = 0.0; + $TotalIgst = 0.0; + $TotalSummary = 0.0; + $TotalBasicAmount = 0.0; + $ServiceDescription = ''; + $OtherAmt = 0.0; + + $Deliverydt=''; + $DeliverSchedule=''; + $MaxPoDate = ''; + $AvlAmount = 0; + $Value="₹"; + + $StatusName=''; + $ModeOfShipment=''; + $SupplierReference=''; + $SuppliersOfferNo=''; + $OtherReferences=''; + $Fincap=''; + $InsuranceOptions=''; + $InsuranceNo=''; + $ServiceTypeOptions=''; + $DescriptionOfPo = ''; + + +if(!empty($INRSYMBOL)) +{ + + foreach($INRSYMBOL as $INRS) + { + $INRSYM=$INRS->FontCode2000; + + } +} + +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; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + $WrkStatus=$Req->ServiceWorkStatus; + $StatusName=$Req->StatusName; + $otherPayment = $Req->PaymentOtherDescription; + $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; + $DescriptionOfPo = $Req->Description_Of_Service; + + } +} + + +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; + } +} + +//echo "$WrkStatus"; + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = number_format($AvlBudAmt, 2, '.', ''); + + +} + + +foreach ($PaymentTerms as $TER) +{ + $Terms=$TER->PaymentTerms; +} + + + +// foreach ($POSTATUS as $PST ) +// { +// $POStatus=$PST->StatusName; +// } +?> + + + + + + + + + + + +
+ 'form-label-left ServicePO ','name' => 'ServicePO','id' => 'ServicePO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + +
+
+
+
+

Resico Industries - Edit Service 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"'); + + ?> +
+
+ +
+ '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'); + + ?> + +
+

+ +
+ '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',SERVICE),'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')); ?> + + + +
+
+ + StatusCode){ + $optionsWork[$WorkSID->StatusCode] = $WorkSID->StatusName; + } + + + endforeach; + foreach ($WorkStatus as $SID): + if($WrkStatus!=$SID->StatusCode){ + $optionsWork[$SID->StatusCode] = $SID->StatusName; + } + + + endforeach; + } + + echo form_dropdown('workstatus', $optionsWork,set_value('workstatus'),'id="workstatus"' ,'required="true"' ,'class="form-control select2'); + + ?> +
+

+ +
+ 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + 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); + ?> +
+
+
+
+ + + PaymentID){ + + $optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms; + + } + endforeach; + 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'); + + ?> + + + + +
+
+ + +
+
+
+ + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + Schedule_Type!='Recurring'){ + $FrequencyNo=intval(1); + $Frequency='One Time'; + } + else{ + $FrequencyNo=$record->NumberOfService; + $Frequency=$record->Service_Period; + } + + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + After_CGST; + $TotalSgst = $TotalSgst + $record->After_SGST; + $TotalIgst = $TotalIgst + $record->After_IGST; + $OtherAmt = $OtherAmt + $record->otherallowance; + $TotalSummary = $TotalSummary + $record->TotalValue; + + + $TotalBasicAmount = $TotalBasicAmount + $record->BasicValue * $FrequencyNo; + + } + ?> + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRate Basic Amount Tax Amount Total Order Amount Actual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode ?>ServiceMaterialDescription ?>Quantity ?>UOM ?>Rate ?>BasicValue * $FrequencyNo, 2, '.', ''); ?>Taxamount ?>TotalValue ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     + +    
+
+ +
+
+
+ +
+ + 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($TotalBasicAmount, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true'); + 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); + ?> +
+ +
+ + 'ToatalOtherAllowances','value' => set_value('ToatalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'ToatalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+ + 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($TotalSummary, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+ +
+ +
+ +
+ 'editdescofpo','value' => set_value('editdescofpo',$DescriptionOfPo),'id'=>'editdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+ +
+
+ 'ScopeofWork','value' => set_value('ScopeofWork',$ServiceDescription),'id'=>'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+ +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Bill No FileAction
BillNo ?>FilePath?>
+
+
+ + + + + + + + + +
+ +

+ + + + + +   Save +   Submit +   Cancel + +   OK + +   Submit +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + + diff --git a/application/views/addnewIncomeExpense.php b/application/views/addnewIncomeExpense.php index a816231a..6fc14a5d 100755 --- a/application/views/addnewIncomeExpense.php +++ b/application/views/addnewIncomeExpense.php @@ -97,7 +97,7 @@ function loadAccountType(id) $('#accode').find('option').remove().end().append('').val('Select Account Code'); $.each(t,function(i,item){ - if(item.type == 'EXPENSE') + if(item.type == 'PAYMENT') { $("#accode").append( $('').val(item.code).html(item.name)); } diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php old mode 100644 new mode 100755 index 291b5b2f..ebb14b77 --- a/application/views/alterpurchaseorder.php +++ b/application/views/alterpurchaseorder.php @@ -1,8332 +1,8631 @@ -"NO","value"=>"0"),array("name"=>"YES","value"=>"1") - ); -$ReqType =''; -$CompanyAddress = ''; -$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($CompanyDetails)) -{ - foreach ($CompanyDetails as $Req) - { - $CompanyAddress = $Req->Address; - } -} - -if(!empty($INRSYMBOL)) -{ - foreach($INRSYMBOL as $INRS) - { - $INRSYM=$INRS->FontCode2000; - } -} -?> - - - - - - - - - - - -
- 'form-label-left CreatealterPO ','name' => 'CreatealterPO','id' => 'CreatealterPO'); - - echo form_open($this->config->base_url().'/purchaseorder/addalterPO/',$attributes); ?> - -
-
-
-
-

Resico Industries - Emergency Purchase Order

-
- -
-
-
-
- - 'Select Request Type'); - - if(!empty($RequestType)) - { - - foreach ($RequestType as $RID): - if($RID->ConfigValue=="SERVICE" || $RID->ConfigValue=="REVENUE") - { - $options[$RID->ConfigValue] = $RID->ConfigValue; - } - endforeach; - } - - echo form_dropdown('RequestType', $options,set_value('ConfigValue'),'id="purpose"' ,'class = "form-control select2"','required="true"'); - - ?> - -
-
- -
- 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- - 'POType','value' => set_value('POType',$ReqType),'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"'); - - ?> -
-
- -
- -
- 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> - -
-
- - - -
-
-
- -
- 'Select Department Name'); - - if(!empty($DeptList)) - { - - foreach ($DeptList as $DID): - - $options1[$DID->DEPCode] = $DID->DEPCode.' '.' - '.' '.$DID->DepartmentName; - - endforeach; - } - - echo form_dropdown('drpDepartment', $options1,set_value('drpDepartment'),'id="DepartmentName"' ,'class = "form-control select2"','required="true"', 'disabled="disabled"'); - - ?> - -
-
-
- -
- 'Cost Center Name'); - - - if(!empty($CostList)) - { - - foreach ($CostList as $cost): - - - $options2[$cost['CostCenterCode']] = $cost['CostCenterCode'].' '.' - '.' '.$cost['CostCenterName']; - - endforeach; - } - - echo form_dropdown('CostCenterName', $options2,set_value('CostCenterName'),'id="CostCenterName"','class="form-control select2"' , 'required="true"' ,'multiple="true"'); - - ?> -
-
-
- -
- 'AvalBuget','value' => set_value('AvalBuget'),'id'=>'AvalBuget', 'class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
- - - - - - - -
-
-
- - - -
-
- - - -
-
-
-
- - - -
- - 'emergmodeofshipment','value' => set_value('emergmodeofshipment'),'id'=>'emergmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
- - - -
-
-
-
-
- -
- - 'emergsupplierreference','value' => set_value('emergsupplierreference'),'id'=>'emergsupplierreference', 'class' => 'form-control','maxlength'=>'40'); - echo form_input($data); - ?> -
- - - - -
-
-
-
- -
- - 'emergsupplierofferno','value' => set_value('emergsupplierofferno'),'id'=>'emergsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'emergotherreference','value' => set_value('emergotherreference'),'id'=>'emergotherreference', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
- -
- - 'emergfincap','value' => set_value('emergfincap'),'id'=>'emergfincap', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
-
-
-
- -
- -
-
-
-
- - - -
- - 'Select Work Status'); - - - if(!empty($PoTypeOptions)) - { - foreach ($PoTypeOptions as $POpt): - - - $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; - - endforeach; - } - - echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); - - - ?> -
- - - -
-
- -
- - -
- - - - - -
-
-
- -
- -
- 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
- - 'Select Payment method'); - //print_r( $options); - if(!empty($Payment)) - { - foreach ($Payment as $payment): - - - $options1[$payment->PaymentID] = $payment->PaymentTerms; - - endforeach; - } - echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"'); - ?> -
- - - -
-
-
- -
- - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
-
- - -
- - -
- -
- - - - - -
-
- -
- -
- - - - - - - - - - - - - - - - - - - - +"NO","value"=>"0"),array("name"=>"YES","value"=>"1") + ); +$ReqType =''; +$CompanyAddress = ''; +$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($CompanyDetails)) +{ + foreach ($CompanyDetails as $Req) + { + $CompanyAddress = $Req->Address; + } +} + +if(!empty($INRSYMBOL)) +{ + + foreach($INRSYMBOL as $INRS) + { + $INRSYM=$INRS->FontCode2000; + + } +} + +?> + + + + + + + + + + + + + +
+ 'form-label-left CreatealterPO ','name' => 'CreatealterPO','id' => 'CreatealterPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addalterPO/',$attributes); ?> + +
+
+
+
+

Resico Industries - Emergency Purchase Order

+
+ +
+
+
+
+ + 'Select Request Type'); + + if(!empty($RequestType)) + { + + foreach ($RequestType as $RID): + if($RID->ConfigValue=="SERVICE" || $RID->ConfigValue=="REVENUE") + { + $options[$RID->ConfigValue] = $RID->ConfigValue; + } + endforeach; + } + + echo form_dropdown('RequestType', $options,set_value('ConfigValue'),'id="purpose"' ,'class = "form-control select2"','required="true"'); + + ?> + +
+
+ + +
+ 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'POType','value' => set_value('POType',$ReqType),'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"'); + + ?> +
+
+ +
+ +
+ 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> + +
+
+ + + +
+
+
+ +
+ 'Select Department Name'); + + if(!empty($DeptList)) + { + + foreach ($DeptList as $DID): + + $options1[$DID->DEPCode] = $DID->DEPCode.' '.' - '.' '.$DID->DepartmentName; + + endforeach; + } + + echo form_dropdown('drpDepartment', $options1,set_value('drpDepartment'),'id="DepartmentName"' ,'class = "form-control select2"','required="true"', 'disabled="disabled"'); + + ?> + +
+
+
+ +
+ 'Cost Center Name'); + + + if(!empty($CostList)) + { + + foreach ($CostList as $cost): + + + $options2[$cost['CostCenterCode']] = $cost['CostCenterCode'].' '.' - '.' '.$cost['CostCenterName']; + + endforeach; + } + + echo form_dropdown('CostCenterName', $options2,set_value('CostCenterName'),'id="CostCenterName"','class="form-control select2"' , 'required="true"' ,'multiple="true"'); + + ?> +
+
+
+ +
+ 'AvalBuget','value' => set_value('AvalBuget'),'id'=>'AvalBuget', 'class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + + + + + + +
+
+
+ + + +
+
+ + + +
+
+
+
+ + + +
+ + 'emergmodeofshipment','value' => set_value('emergmodeofshipment'),'id'=>'emergmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ + + +
+
+
+
+
+ +
+ + 'emergsupplierreference','value' => set_value('emergsupplierreference'),'id'=>'emergsupplierreference', 'class' => 'form-control','maxlength'=>'40'); + echo form_input($data); + ?> +
+ + + + +
+
+
+
+ +
+ + 'emergsupplierofferno','value' => set_value('emergsupplierofferno'),'id'=>'emergsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ + 'emergotherreference','value' => set_value('emergotherreference'),'id'=>'emergotherreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'emergfincap','value' => set_value('emergfincap'),'id'=>'emergfincap', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+
+
+
+ +
+ +
+
+
+
+ + + +
+ + 'Select'); + + + if(!empty($PoTypeOptions)) + { + foreach ($PoTypeOptions as $POpt): + + + $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; + + endforeach; + } + + echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); + + + ?> +
+ + + +
+
+ +
+ + +
+ + + + + +
+
+
+ +
+ +
+ 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+ + 'Select Payment method'); + //print_r( $options); + if(!empty($Payment)) + { + foreach ($Payment as $payment): + + + $options1[$payment->PaymentID] = $payment->PaymentTerms; + + endforeach; + } + echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"'); + ?> +
+ + + +
+
+
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
+
+ + +
+ + +
+ +
+ + + + + +
+
+ +
+ +
+ + + + + + + + + + + + + + diff --git a/application/views/editRevenuepurchaseorder.php b/application/views/editRevenuepurchaseorder.php old mode 100644 new mode 100755 index 785d6547..749bdd87 --- a/application/views/editRevenuepurchaseorder.php +++ b/application/views/editRevenuepurchaseorder.php @@ -1,5337 +1,5409 @@ -format('d-m-Y'); -$MaxPoDate = ''; -$AvlAmount = 0; -$DeliverSchedule=''; -$DeliverOption=''; -$StatusName=''; -$modeofshipment=''; -$supplierref=''; -$suppofferno=''; -$otherref=''; -$fincap=''; -$revenuesubtype=''; -$insurencestatus=''; -$insurenceno=''; - -if(!empty($MaxPODate)) -{ - foreach ($MaxPODate as $date) - { - $MaxPoDate = $date->PODate; - } -} -if(!empty($CompanyDetails)) -{ - foreach ($CompanyDetails as $Req) - { - $CompanyAddress = $Req->Address; - } -} -if(!empty($AvlBudAmt)) -{ - - $AvlAmount = number_format($AvlBudAmt, 2, '.', ''); - -} - -if(!empty($INRSYMBOL)) -{ - - foreach($INRSYMBOL as $INRS) - { - $INRSYM=$INRS->FontCode2000; - - } -} - -foreach ($PaymentTerms as $TER) -{ - $Terms=$TER->PaymentTerms; -} - - $SupId = ''; - $SupName = ''; - $Address = ''; - $PODate = ''; - $Deliverydt =''; - $DeliveryAddress =''; - $PONOStatus = ''; - $PONO = ''; - $totBasicAmt = 0; - $totDiscountAmt = 0.0; - $totPackagingAmt = 0.0; - $totCgst = 0.0; - $totSgst = 0.0; - $totIgst = 0.0; - $totFreightAmt = 0.0; - $totInsuranceAmt = 0.0; - $totOrderSummaryAmt = 0.0; - - $ServiceDescription = ''; - $CapitalRange = ''; - $otherPayment=''; -if(!empty($POMaster)) -{ - //print_r($POMaster); - //print_r($POItem); - 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; - $PONO = $Req->PONO; - $ServiceDescription = $Req->ServiceDescription; - $CapitalRange = $Req->CapitalRange; - $StatusName=$Req->StatusName; - $otherPayment = $Req->PaymentOtherDescription; - $modeofshipment = $Req->Mode_Of_Shipment; - $supplierref = $Req->Supplier_Reference; - $suppofferno = $Req->Supplier_Offer_No; - $otherref = $Req->Other_Reference; - $fincap = $Req->Fincap; - $revenuesubtype = $Req->POSubType; - $insurencestatus = $Req->InsuranceStatus; - $insurenceno = $Req->InsuranceNumber; - // echo $insurenceno; - // echo $otherPayment; - } -} - - - - -if(!empty($RequistionDetails)) -{ - - foreach ($RequistionDetails as $ReqDet) - { - $Reqonn=new DateTime($ReqDet->ReqDate); - $Reqon=$Reqonn->format('d-m-Y'); - - // $Pdt = new DateTime($Req->PODate); - // $PODate = $Pdt->format('Y-m-d'); - $Requestedby=$ReqDet->Requestedby; - $RequesterName=$ReqDet->FirstName; - //$Status=$ReqDet->Status; - } -} - - -// 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); ?> - -
-
-
-
-

Resico 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"' ); - ?> -
-
- -
- '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', 'value' => '0', 'checked' => ('0' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Local','onchange'=>'SetVatorCST();')); ?> - - - - 'Range', 'value' => '1', 'checked' => ('1' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Inter_state','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); - ?> - -
-
- -
-
- - -
-
-
-
- - - -
- - 'editmodeofshipment','value' => set_value('editmodeofshipment',$modeofshipment),'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',$suppofferno),'id'=>'editsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'editotherreference','value' => set_value('editotherreference',$otherref),'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($revenuesubtype==$POpt->ConfigValue){ - $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; - } - - - endforeach; - foreach ($PoTypeOptions as $POpt1): - - if($revenuesubtype!=$POpt1->ConfigValue){ - $optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue; - } - - - endforeach; - - } - - echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); - - - - ?> -
- - - -
-
- - 'Yes','0'=>'No'); - echo form_dropdown('insurancestatus', $optionsnew,set_value('insurancestatus'),'id="insurancestatus"' ,'required="true"' ,'class="form-control select2'); - - ?> -
-
-
-
- -
- 'insuranceno','insuranceno' => set_value('insuranceno',$insurenceno),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
- - - PaymentID] = $pay->PaymentTerms; - - - endforeach; - } - - echo form_dropdown('PaymentTerms', $options6,set_value('PaymentTerms',$Terms),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); - - ?> - - - - -
- -
-
-
- -
- - - - -
- - - - - - - - - -
- -
-
- - - - - - - - - - - - -
- - - - -
- -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BasicValue; - $totDiscountAmt = $totDiscountAmt + $record->AfterDiscount; - $totPackagingAmt = $totPackagingAmt + $record->AfterPackagingValue; - $totCgst = $totCgst + $record->AfterCGST; - $totSgst = $totSgst + $record->AfterSGST; - $totIgst = $totIgst + $record->AfterIGST; - - $totFreightAmt = $totFreightAmt + $record->AfterFreightValue; - $totInsuranceAmt = $totInsuranceAmt + $record->Insurance; - $totOrderSummaryAmt = $totOrderSummaryAmt +$record->TotalValue; - - } - ?> - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRate Basic Amount Tax Amount Total Order Amount Actual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode ?>MaterialName ?>Quantity ?>UOM ?>Rate ?>BasicValue, 2, '.', ''); ?>Taxamount ?>TotalValue ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     - -    
-
- - - - -
-
-
- - - 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($totBasicAmt, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - - -
-
- - - 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($totDiscountAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
-
- - - 'txtTotalSGST','value' => set_value('txtTotalSGST',number_format($totSgst, 2, '.', '')),'id'=>'txtTotalSGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
- -
- - - 'txtTotalCGST','value' => set_value('txtTotalCGST',number_format($totCgst, 2, '.', '')),'id'=>'txtTotalCGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
-
-
- - -
- - - 'txtTotalPackaing','value' => set_value('txtTotalPackaing',number_format($totPackagingAmt, 2, '.', '')),'id'=>'txtTotalPackaing', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
-
- - - 'txtTotalInsurance','value' => set_value('txtTotalInsurance',number_format($totInsuranceAmt, 2, '.', '')),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - - -
-
- - - 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($totFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> - -
-
- - 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($totOrderSummaryAmt, 2, '.', '')),'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' ); - echo form_textarea($data); - ?> - -
-
-
-

- - - - - - - -   Save -   Submit -   Cancel - -   Submit -   OK - - - -

-
- -
- -
- - - -
-
- -
-
- - - - - - +format('d-m-Y'); +$MaxPoDate = ''; +$AvlAmount = 0; +$DeliverSchedule=''; +$DeliverOption=''; +$StatusName=''; +$modeofshipment=''; +$supplierref=''; +$suppofferno=''; +$otherref=''; +$fincap=''; +$revenuesubtype=''; +$insurencestatus=''; +$insurenceno=''; + +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + } +} +if(!empty($CompanyDetails)) +{ + foreach ($CompanyDetails as $Req) + { + $CompanyAddress = $Req->Address; + } +} +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = number_format($AvlBudAmt, 2, '.', ''); + +} + +if(!empty($INRSYMBOL)) +{ + + foreach($INRSYMBOL as $INRS) + { + $INRSYM=$INRS->FontCode2000; + + } +} + +foreach ($PaymentTerms as $TER) +{ + $Terms=$TER->PaymentTerms; +} + + $SupId = ''; + $SupName = ''; + $Address = ''; + $PODate = ''; + $Deliverydt =''; + $DeliveryAddress =''; + $PONOStatus = ''; + $PONO = ''; + $totBasicAmt = 0; + $totDiscountAmt = 0.0; + $totPackagingAmt = 0.0; + $totCgst = 0.0; + $totSgst = 0.0; + $totIgst = 0.0; + $totFreightAmt = 0.0; + $totInsuranceAmt = 0.0; + $totOrderSummaryAmt = 0.0; + + $ServiceDescription = ''; + $CapitalRange = ''; + $otherPayment=''; +if(!empty($POMaster)) +{ + //print_r($POMaster); + //print_r($POItem); + 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; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + $CapitalRange = $Req->CapitalRange; + $StatusName=$Req->StatusName; + $otherPayment = $Req->PaymentOtherDescription; + $modeofshipment = $Req->Mode_Of_Shipment; + $supplierref = $Req->Supplier_Reference; + $suppofferno = $Req->Supplier_Offer_No; + $otherref = $Req->Other_Reference; + $fincap = $Req->Fincap; + $revenuesubtype = $Req->POSubType; + $insurencestatus = $Req->InsuranceStatus; + $insurenceno = $Req->InsuranceNumber; + // echo $insurenceno; + // echo $otherPayment; + } +} + + + + +if(!empty($RequistionDetails)) +{ + + foreach ($RequistionDetails as $ReqDet) + { + $Reqonn=new DateTime($ReqDet->ReqDate); + $Reqon=$Reqonn->format('d-m-Y'); + + // $Pdt = new DateTime($Req->PODate); + // $PODate = $Pdt->format('Y-m-d'); + $Requestedby=$ReqDet->Requestedby; + $RequesterName=$ReqDet->FirstName; + //$Status=$ReqDet->Status; + } +} + + +// 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); ?> + +
+
+
+
+

Resico 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"' ); + ?> +
+
+ +
+ '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', 'value' => '0', 'checked' => ('0' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Local','onchange'=>'SetVatorCST();')); ?> + + + + 'Range', 'value' => '1', 'checked' => ('1' == $CapitalRange) ? TRUE : FALSE, 'id' => 'Inter_state','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); + ?> + +
+
+ +
+
+ + +
+
+
+
+ + + +
+ + 'editmodeofshipment','value' => set_value('editmodeofshipment',$modeofshipment),'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',$suppofferno),'id'=>'editsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ + 'editotherreference','value' => set_value('editotherreference',$otherref),'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($revenuesubtype==$POpt->ConfigValue){ + $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; + } + + + endforeach; + foreach ($PoTypeOptions as $POpt1): + + if($revenuesubtype!=$POpt1->ConfigValue){ + $optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue; + } + + + endforeach; + + } + + echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); + + + + ?> +
+ + + +
+
+ + 'Yes','0'=>'No'); + echo form_dropdown('insurancestatus', $optionsnew,set_value('insurancestatus'),'id="insurancestatus"' ,'required="true"' ,'class="form-control select2'); + + ?> +
+
+
+
+ +
+ 'insuranceno','insuranceno' => set_value('insuranceno',$insurenceno),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + PaymentID] = $pay->PaymentTerms; + + + endforeach; + } + + echo form_dropdown('PaymentTerms', $options6,set_value('PaymentTerms',$Terms),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); + + ?> + + + + +
+ +
+
+
+ +
+ + + + +
+ + + + + + + + + +
+ +
+
+ + + + + + + + + + + + +
+ + + + +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BasicValue; + $totDiscountAmt = $totDiscountAmt + $record->AfterDiscount; + $totPackagingAmt = $totPackagingAmt + $record->AfterPackagingValue; + $totCgst = $totCgst + $record->AfterCGST; + $totSgst = $totSgst + $record->AfterSGST; + $totIgst = $totIgst + $record->AfterIGST; + + $totFreightAmt = $totFreightAmt + $record->AfterFreightValue; + $totInsuranceAmt = $totInsuranceAmt + $record->Insurance; + $totOrderSummaryAmt = $totOrderSummaryAmt +$record->TotalValue; + + } + ?> + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRate Basic Amount Tax Amount Total Order Amount Actual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode ?>MaterialName ?>Quantity ?>UOM ?>Rate ?>BasicValue, 2, '.', ''); ?>Taxamount ?>TotalValue ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     + +    
+
+ + + + +
+
+
+ + + 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($totBasicAmt, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + + +
+
+ + + 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($totDiscountAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+
+ + + 'txtTotalSGST','value' => set_value('txtTotalSGST',number_format($totSgst, 2, '.', '')),'id'=>'txtTotalSGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+ +
+ + + 'txtTotalCGST','value' => set_value('txtTotalCGST',number_format($totCgst, 2, '.', '')),'id'=>'txtTotalCGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+
+
+ + +
+ + + 'txtTotalPackaing','value' => set_value('txtTotalPackaing',number_format($totPackagingAmt, 2, '.', '')),'id'=>'txtTotalPackaing', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+
+ + + 'txtTotalInsurance','value' => set_value('txtTotalInsurance',number_format($totInsuranceAmt, 2, '.', '')),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + + +
+
+ + + 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($totFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> + +
+
+ + 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($totOrderSummaryAmt, 2, '.', '')),'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' ); + echo form_textarea($data); + ?> + + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Bill No Delivery Challan NoDelivery Challan DateVehicle NoCourier NoFileAction
BillNo ?>DeliveryChellanOrInvoiceNo?>DeliveryChellanDate); + echo $date->format('d-m-Y'); ?>VehicleNo?>CourierNo?>FilePath?>
+
+
+ + + +
+

+ + + + + + + +   Save +   Submit +   Cancel + + +   OK + + + +

+
+ +
+ +
+ + + +
+
+ +
+
+ + + + + + diff --git a/application/views/payslipgenerateprint.php b/application/views/payslipgenerateprint.php index 189704ad..605a08ab 100755 --- a/application/views/payslipgenerateprint.php +++ b/application/views/payslipgenerateprint.php @@ -200,7 +200,7 @@ if($RecCount > 0) -
SIDDHARTH INDUSTRIES
Survey No: 168/1C3,Pennalur Pet Road,Goonipalyam village,
Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.
PaySlip for the Month of
+
RESICO INDUSTRIES
Factory : 196/4 B, 126, Mettupalayam Village,
Sriperumbudur Taluk, Kancheepuram Dist, Tamil Nadu, India. Pin code : 631604 .
PaySlip for the Month of
diff --git a/application/views/purchaseorder.php b/application/views/purchaseorder.php index 2cb9fa4a..b1100083 100644 --- a/application/views/purchaseorder.php +++ b/application/views/purchaseorder.php @@ -204,7 +204,7 @@ function vaildateBeforeOpenModal() }; var CollIndex = 0; -// alert(new Date(year,month,day)); +// swal(new Date(year,month,day)); $(function() { @@ -618,7 +618,7 @@ $('#EditPackagingType').change(function() { // $('#drpFreight').change(function() { // if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" ) // { - // alert(); + // swal(); // $('#txtFreight').val(''); // $('#txtAfterFreight').val(''); // selValue = $("#drpFreight").val() ; @@ -646,7 +646,7 @@ $('#EditPackagingType').change(function() { // } // else // { - // alert('Please Select MaterialCode and Rate Field Value'); + // swal('Please Select MaterialCode and Rate Field Value'); // $('#drpFreight').val("0"); // $('#Rate').focus(); // } @@ -950,7 +950,7 @@ function calculateDiscount(isEdit) * To calcuate the Packaging */ function calculatePackaging(isEdit) { - // alert(PackagingCalculation); + // swal(PackagingCalculation); if(isEdit == '0') { if($('#MaterialCode').val() == "0") @@ -1757,14 +1757,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val()); var FreightValue = parseFloat($('#txtFreight').val()); var UOM = parseFloat($('#UOM').val()); var Quantity = parseFloat($('#Quantity').val()); - //alert(FreightType); + //swal(FreightType); var AfterFreight = 0.0; if(FreightType == PercentageType) { //AfterFreight = ; if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '') { - //alert(freightCalculation); + //swal(freightCalculation); swal('Please Enter the Discount value'); $('#txtFreight').val(''); $('#DiscountType').focus(); @@ -1772,11 +1772,11 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val()); } else{ var AfterDiscount =parseFloat($('#txtAfterDiscount').val()); -//alert(AfterDiscount); +//swal(AfterDiscount); //AfterFreight = ; if(freightCalculation == 0) { - //alert('before value'); + //swal('before value'); AfterFreight = ; } else{ @@ -1835,7 +1835,7 @@ AfterFreight = ;} } else { - //alert('1'); + //swal('1'); if($('#EditMaterialCode').val() == "0") { swal('Please Select the Material Code'); @@ -1854,7 +1854,7 @@ AfterFreight = ;} { var basicValue = parseFloat($('#txtEditBasicValue').val()); var FreightType =$("#drpEditFreight").val(); - //alert(FreightType); + //swal(FreightType); if(FreightType == "0") { swal('Please select Freight Type'); @@ -1867,7 +1867,7 @@ AfterFreight = ;} var FreightValue = parseFloat($('#txtEditFreight').val()); var UOM = parseFloat($('#EditUOM').val()); var Quantity = parseFloat($('#EditQuantity').val()); - //alert(FreightType); + //swal(FreightType); var AfterFreight = 0.0; // if(FreightType == PercentageType) // { @@ -1878,7 +1878,7 @@ AfterFreight = ;} //AfterFreight = ; if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '') { - //alert(freightCalculation); + //swal(freightCalculation); swal('Please Enter the Discount value'); $('#txtEditFreight').val(''); $('#EditDiscountType').focus(); @@ -1886,11 +1886,11 @@ AfterFreight = ;} } else{ var AfterDiscount =parseFloat($('#txtEditAfterDiscount').val()); - //alert(AfterDiscount); + //swal(AfterDiscount); //AfterFreight = ; if(freightCalculation == 0) { - //alert('before value'); + //swal('before value'); AfterFreight = ; } else{ @@ -1973,7 +1973,7 @@ AfterFreight = ;} { StateTaxCheck = $("input:radio[name='Range']:checked").val(); $('#txtPoRange').val(StateTaxCheck) ; - //alert('Radio clicke:'+StateTaxCheck); + //swal('Radio clicke:'+StateTaxCheck); if(StateTaxCheck == "0") { // style="display:none;" @@ -2122,10 +2122,10 @@ return true; function validateEditExceedLimit() { - //alert(" Edit Budget Check"); + //swal(" Edit Budget Check"); var avalbudAmt = parseFloat($('#EditAvlBudAmt').val()); var basicAmountRate = parseFloat($('#txtEditBasicValue').val()); - //alert(basicAmountRate); + //swal(basicAmountRate); // var totalAmount = parseFloat($('#txtEditTotalOrderValue').val()); if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt) @@ -2177,7 +2177,7 @@ function calculateEditTaxValue() var totvalue = parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(AfterCgst) ; var tot = parseFloat(totvalue).toFixed(2); - //alert('tot:'+tot); + //swal('tot:'+tot); return tot; } @@ -2433,7 +2433,7 @@ function calculateEditTaxValue()
- +
'; var txtTotBasicAmount = $('#txtTotBasicAmount').val(); var txtTotalDiscount = $('#txtTotalDiscount').val(); var finalBasicAmount = txtTotBasicAmount - txtTotalDiscount; - //alert(txtTotBasicAmount+"--"+txtTotalDiscount+"--"+finalBasicAmount+"--"+AvlBudAmt); + //swal(txtTotBasicAmount+"--"+txtTotalDiscount+"--"+finalBasicAmount+"--"+AvlBudAmt); if(validate()) { if(document.getElementById('revenueTax').rows.length < 3) @@ -4298,7 +4298,7 @@ var AvlBudAmt = ''; if(data) { $('#content').loader('hide'); - swal(data); + alert(data); $('#txtRowCount').val(''); $('#txtDeletedRow').val(''); //$('#SpcialInstruction').val(''); @@ -4308,7 +4308,7 @@ var AvlBudAmt = ''; } else { - swal("Error"); + alert("Error"); } }