From 96e2cfce64c05a4fea284561042c1b36e430c9dd Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 2 Nov 2017 17:19:09 +0530 Subject: [PATCH] service and Revenue po pdf done --- .../views/EditservicePurchaseorder.php | 6521 +++++++++-------- .../views/editRevenuepurchaseorder.php | 48 +- application/views/revenuepopdf.php | 4 + application/views/servicepopdf.php | 8 +- 4 files changed, 3306 insertions(+), 3275 deletions(-) mode change 100755 => 100644 application/views/EditservicePurchaseorder.php mode change 100755 => 100644 application/views/editRevenuepurchaseorder.php diff --git a/application/views/EditservicePurchaseorder.php b/application/views/EditservicePurchaseorder.php old mode 100755 new mode 100644 index bc09a96a..b53ac84e --- a/application/views/EditservicePurchaseorder.php +++ b/application/views/EditservicePurchaseorder.php @@ -1,3259 +1,3262 @@ -"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); ?> - -
-
-
-
-

Siddharth 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'); - 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); ?> + +
+
+
+
+

Siddharth 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'); + 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 +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + + diff --git a/application/views/editRevenuepurchaseorder.php b/application/views/editRevenuepurchaseorder.php old mode 100755 new mode 100644 index eceb755e..f452471b --- a/application/views/editRevenuepurchaseorder.php +++ b/application/views/editRevenuepurchaseorder.php @@ -2088,13 +2088,22 @@ function validateEditExceedLimit() var AfterSgst = $("#EditAfterSgst").val(); var AfterIgst = $("#EditAfterIgst").val(); + // alert(AfterIgst); + // alert(AfterSgst); + // alert(AfterCgst); var Freight = $('#txtEditAfterFreight').val() == '' ? '0.00' : $('#txtEditAfterFreight').val(); var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val(); var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val(); var BasicVal = $('#txtEditBasicValue').val() == '' ? '0.00' : $('#txtEditBasicValue').val(); - - var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); - + var getrange= $("input:radio[name='Range']:checked").val(); + if(getrange==1) + { + var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); + } + else + { + var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterSgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); + } var tot = parseFloat(totvalue).toFixed(2); $('#txtEditTotalOrderValue').val(tot); @@ -2106,16 +2115,25 @@ function validateEditExceedLimit() { var Packaging = $('#txtViewAfterPackaging').val() == '' ? '0.00' : $('#txtViewAfterPackaging').val(); var AfterCgst = $("#ViewAfterCGST").val(); - - var AfterSgst = $("#ViewAfterSGST").val(); - - var AfterIgst = $("#ViewAfterIGST").val(); - var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val(); - var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val(); - var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val(); - var BasicVal = $('#txtViewBasicValue').val() == '' ? '0.00' : $('#txtViewBasicValue').val(); - - var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); + var AfterSgst = $("#ViewAfterSGST").val(); + var AfterIgst = $("#ViewAfterIGST").val(); + // alert(AfterIgst); + // alert(AfterSgst); + // alert(AfterCgst); + var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val(); + var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val(); + var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val(); + var BasicVal = $('#txtViewBasicValue').val() == '' ? '0.00' : $('#txtViewBasicValue').val(); + var getrange= $("input:radio[name='Range']:checked").val(); + if (getrange==1) + { + var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); + } + else + { + var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+parseFloat(AfterSgst)+ parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); + } + var tot = parseFloat(totvalue).toFixed(2); @@ -4051,7 +4069,11 @@ function calculateEditTaxValue()
+
+ + diff --git a/application/views/revenuepopdf.php b/application/views/revenuepopdf.php index 2206ee5e..1e2bae9b 100755 --- a/application/views/revenuepopdf.php +++ b/application/views/revenuepopdf.php @@ -102,6 +102,10 @@ $PaymentOtherDescription=$PO->PaymentOtherDescription; } + + else{ + $PaymentOtherDescription=$PO->PaymentTerms; + } diff --git a/application/views/servicepopdf.php b/application/views/servicepopdf.php index 6204738b..fb5175d9 100755 --- a/application/views/servicepopdf.php +++ b/application/views/servicepopdf.php @@ -107,11 +107,13 @@ } } // if($DeliveryDate == '30-11--0001' || $DeliveryDate == '0001-11-30'){$DeliveryDate='';} - $ServiceDescription =$PO->ServiceDescription; + + $ServiceDescription =$PO->ServiceDescription; $PaymentTerms = $PO->PaymentTerms; if($PaymentTerms=='Others'){ - $PaymentOtherDescription=$PO->PaymentOtherDescription; + $PaymentTerms=$PO->PaymentOtherDescription; } + $advance=$PO->AdvanceAmount; $finCap=$PO->Fincap; @@ -372,7 +374,7 @@ -  Payment terms :
 
+  Payment terms :
 
Total Amount Total CGST Amount