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 -
-
-
-
-
-
- Requistion No
-
-
- '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"');
-
- ?>
-
-
-
Purchase Order Date
-
- 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
- Supplier*
- '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');
-
- ?>
-
-
-
-
Address
-
- 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
-
-
-
-
-
-
Purchase Order Type
-
-
- 'POType','value' => set_value('POType',SERVICE),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
Delivery Address
-
- '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')); ?>
-
-
-
-
-
- Work Status*
- 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');
-
- ?>
-
-
-
Delivery Date*
-
- 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
- echo form_input($data);
- ?>
-
-
-
- Schedule By*
- 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
- echo Form_textarea($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Mode Of Shipment
-
-
- 'editmodeofshipment','value' => set_value('editmodeofshipment',$ModeOfShipment),'id'=>'editmodeofshipment', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Contact Reference
-
-
- 'editsupplierreference','value' => set_value('editsupplierreference',$SupplierReference),'id'=>'editsupplierreference', 'class' => 'form-control', 'maxlength'=>'40');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Supplier's Offer No
-
-
- 'editsupplierofferno','value' => set_value('editsupplierofferno',$SuppliersOfferNo),'id'=>'editsupplierofferno', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
Our Reference(S)
-
-
- 'editotherreference','value' => set_value('editotherreference',$OtherReferences),'id'=>'editotherreference', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
Fincap
-
-
- 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Service Type Options
-
-
- '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');
-
-
- ?>
-
-
-
-
-
-
-
Insurance Options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Insurance Details*
-
- 'insuranceNo','value' => set_value('insuranceNo',$InsuranceNo),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
- Payment Terms
-
- 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');
-
- ?>
-
-
-
-
-
-
-
-
Description of Payable Terms*
-
- 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SNo
- Requisition No
- Item Code
- Item Description
- Quantity
- UOM
- Rate
- Basic Amount
- Tax Amount
- Total Order Amount
- Actual Quantity
- Received Quantity
- Pending Quantity
- Action
-
-
-
-
- Schedule_Type!='Recurring'){
- $FrequencyNo=intval(1);
- $Frequency='One Time';
- }
- else{
- $FrequencyNo=$record->NumberOfService;
- $Frequency=$record->Service_Period;
- }
-
- ?>
-
-
- ReqNo ?>
- MaterialCode ?>
- ServiceMaterialDescription ?>
- Quantity ?>
- UOM ?>
-
- Rate ?>
-
- BasicValue * $FrequencyNo, 2, '.', ''); ?>
-
- Taxamount ?>
- TotalValue ?>
- Quantity ?>
- ReceivedQuantity ?>
- Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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;
-
- }
- ?>
-
-
-
-
-
-
-
-
-
-
- Basic Amount
- 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($TotalBasicAmount, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- CGST
- 'txtTotCgst','value' => set_value('txtTotCgst',number_format($TotalCgst, 2, '.', '')),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
- SGST In INR
- 'txtTotSgst','value' => set_value('txtTotSgst',number_format($TotalSgst, 2, '.', '')),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- IGST
- 'txtTotIgst','value' => set_value('txtTotIgst',number_format($TotalIgst, 2, '.', '')),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Other Allowances
- 'ToatalOtherAllowances','value' => set_value('ToatalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'ToatalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Total Order Value
- 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($TotalSummary, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
Description Of Service *
-
- 'editdescofpo','value' => set_value('editdescofpo',$DescriptionOfPo),'id'=>'editdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
- echo form_textarea($data);
- ?>
-
-
-
-
-
- Scope Of Work 'ScopeofWork','value' => set_value('ScopeofWork',$ServiceDescription),'id'=>'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40' );
- echo form_textarea($data);
- ?>
-
-
-
-
-
-
Request On :
-
-
Request By :
-
-
Status :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+"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 -
+
+
+
+
+
+ Requistion No
+
+
+ '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"');
+
+ ?>
+
+
+
Purchase Order Date
+
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ Supplier*
+ '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');
+
+ ?>
+
+
+
+
Address
+
+ 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
+
+
Purchase Order Type
+
+
+ 'POType','value' => set_value('POType',SERVICE),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
Delivery Address
+
+ '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')); ?>
+
+
+
+
+
+ Work Status*
+ 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');
+
+ ?>
+
+
+
Delivery Date*
+
+ 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
+
+
+
+ Schedule By*
+ 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Mode Of Shipment
+
+
+ 'editmodeofshipment','value' => set_value('editmodeofshipment',$ModeOfShipment),'id'=>'editmodeofshipment', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Contact Reference
+
+
+ 'editsupplierreference','value' => set_value('editsupplierreference',$SupplierReference),'id'=>'editsupplierreference', 'class' => 'form-control', 'maxlength'=>'40');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Supplier's Offer No
+
+
+ 'editsupplierofferno','value' => set_value('editsupplierofferno',$SuppliersOfferNo),'id'=>'editsupplierofferno', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
Our Reference(S)
+
+
+ 'editotherreference','value' => set_value('editotherreference',$OtherReferences),'id'=>'editotherreference', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
Fincap
+
+
+ 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Service Type Options
+
+
+ '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');
+
+
+ ?>
+
+
+
+
+
+
+
Insurance Options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Insurance Details*
+
+ 'insuranceNo','value' => set_value('insuranceNo',$InsuranceNo),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Payment Terms
+
+ 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');
+
+ ?>
+
+
+
+
+
+
+
+
Description of Payable Terms*
+
+ 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SNo
+ Requisition No
+ Item Code
+ Item Description
+ Quantity
+ UOM
+ Rate
+ Basic Amount
+ Tax Amount
+ Total Order Amount
+ Actual Quantity
+ Received Quantity
+ Pending Quantity
+ Action
+
+
+
+
+ Schedule_Type!='Recurring'){
+ $FrequencyNo=intval(1);
+ $Frequency='One Time';
+ }
+ else{
+ $FrequencyNo=$record->NumberOfService;
+ $Frequency=$record->Service_Period;
+ }
+
+ ?>
+
+
+ ReqNo ?>
+ MaterialCode ?>
+ ServiceMaterialDescription ?>
+ Quantity ?>
+ UOM ?>
+
+ Rate ?>
+
+ BasicValue * $FrequencyNo, 2, '.', ''); ?>
+
+ Taxamount ?>
+ TotalValue ?>
+ Quantity ?>
+ ReceivedQuantity ?>
+ Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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;
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+ Basic Amount
+ 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($TotalBasicAmount, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ CGST
+ 'txtTotCgst','value' => set_value('txtTotCgst',number_format($TotalCgst, 2, '.', '')),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+ SGST In INR
+ 'txtTotSgst','value' => set_value('txtTotSgst',number_format($TotalSgst, 2, '.', '')),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ IGST
+ 'txtTotIgst','value' => set_value('txtTotIgst',number_format($TotalIgst, 2, '.', '')),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Other Allowances
+ 'ToatalOtherAllowances','value' => set_value('ToatalOtherAllowances',number_format($OtherAmt, 2, '.', '')),'id'=>'ToatalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Total Order Value
+ 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($TotalSummary, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
Description Of Service *
+
+ 'editdescofpo','value' => set_value('editdescofpo',$DescriptionOfPo),'id'=>'editdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
+ echo form_textarea($data);
+ ?>
+
+
+
+
+
+ Scope Of Work 'ScopeofWork','value' => set_value('ScopeofWork',$ServiceDescription),'id'=>'ScopeofWork', 'class' => 'form-control', 'rows' => '10', 'cols' => '40' );
+ echo form_textarea($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
Special po Table List
+
+
+
+ Bill No
+
+
+
+
+ File
+
+ Action
+
+
+
+
+
+
+ BillNo ?>
+
+
+
+ FilePath?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Request On :
+
+
Request By :
+
+
Status :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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('Select Account Name ').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
-
-
-
-
-
-
- Request Type *
- '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"');
-
- ?>
-
-
-
-
Purchase Order Date
-
- 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
Purchase Order Type
-
-
- 'POType','value' => set_value('POType',$ReqType),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- Select Delivery By*
-
-
- "DateRange", "id"=>"Date", "value"=>"0", 'checked'=>set_radio('DateRange', '0', TRUE))); ?>
-
- "DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?>
-
-
-
-
-
- Work Status*
-
-
- 'Selected Work Status');
- foreach ($WorkStatus as $WSID):
-
-
- $options4[$WSID->StatusCode] = $WSID->StatusName;
-
- endforeach;
- }
-
- echo form_dropdown('workstatus', $options4,set_value('workstatus'),'id="workstatusValue"' ,'required="true"' ,'class="form-control select2');
-
- ?>
-
-
-
-
-
-
-
-
Supplier*
-
- '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"');
-
- ?>
-
-
-
-
-
Address
-
- 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
-
-
-
-
Delivery Address
-
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
-
-
-
-
-
-
- Schedule By*
-
- 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40','maxlength' => '110');
- echo Form_textarea($data);
- ?>
-
-
-
- Delivery Date*
-
- 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Department Name*
-
- '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*
-
- '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"');
-
- ?>
-
-
-
-
Available Budget
-
- 'AvalBuget','value' => set_value('AvalBuget'),'id'=>'AvalBuget', 'class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- Select Tax Range*
-
-
- "Range", "id"=>"Local", "value"=>"0", 'checked'=>set_radio('Range', '0', TRUE))); ?>
-
- "Range", "id"=>"Inter_state", "value"=>"1", 'checked'=>set_radio('Range', '1', FALSE))); ?>
-
-
-
-
-
-
-
-
-
-
- Currency Type*
-
- 'txtcurrencytype','value' => set_value('txtcurrencytype'),'id'=>'txtcurrencytype', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Exchange Rate
-
- 'txtexachangerate','value' => set_value('txtexachangerate'),'id'=>'txtexachangerate', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
Select Service Schedule Type
-
-
-
-
-
-
Select Service Period Option
-
- ConfigValue] = $SerOption->ConfigValue;
- endforeach;
-
- }
- echo form_dropdown('ServiceOptions', $ServiceOptions,set_value('ServiceOptions'),'id="ServiceOptions"' ,'class = "form-control"');
-
- ?>
-
-
-
-
Number of Services
-
- 'ServiceNo','value' => set_value('ServiceNo',1),'id'=>'ServiceNo', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Mode Of Shipment
-
-
- 'emergmodeofshipment','value' => set_value('emergmodeofshipment'),'id'=>'emergmodeofshipment', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Contact Reference
-
-
- 'emergsupplierreference','value' => set_value('emergsupplierreference'),'id'=>'emergsupplierreference', 'class' => 'form-control','maxlength'=>'40');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Supplier's Offer No
-
-
- 'emergsupplierofferno','value' => set_value('emergsupplierofferno'),'id'=>'emergsupplierofferno', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
Our Reference(S)
-
-
- 'emergotherreference','value' => set_value('emergotherreference'),'id'=>'emergotherreference', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
Fincap
-
-
- 'emergfincap','value' => set_value('emergfincap'),'id'=>'emergfincap', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Service Type Options
-
-
- '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');
-
-
- ?>
-
-
-
-
-
-
-
Insurance Options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Insurance Details*
-
- 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Payable Terms
- '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"');
- ?>
-
-
-
-
Description of Payable Terms*
-
- 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Delivery Challan /Inv No
-
-
-
-
-
-
Delivery Challan /Inv Date
-
-
-
- 'Date1','value' => set_value('Date1',$CurrentDate),'id'=>'Date1', 'class' => 'form-control num' ,'required' => 'true');
-
- echo form_input($data);?>
-
-
-
-
-
-
-
-
-
-
-
-
Vehicle No
-
-
-
-
-
-
Courier No
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select Company file(only .pdf,.excel,.doc,.png,.jpg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select Company file(only .pdf,.excel,.doc,.png,.jpg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SNo
- Requisition No
- Item Code
- Item Description
- Quantity
- UOM
- Rate
- Basic Amount
- Tax Amount
- Total Order Amount
- Action
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Basic Amount
- 'txtTotBasicAmountRevenue','value' => set_value('txtTotBasicAmountRevenue'),'id'=>'txtTotBasicAmountRevenue', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Total Discount
- 'txtTotalDiscount','value' => set_value('txtTotalDiscount'),'id'=>'txtTotalDiscount', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
- CGST
- 'txtTotalCGST','value' => set_value('txtTotalCGST'),'id'=>'txtTotalCGST', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
- SGST
- 'txtTotalSGST','value' => set_value('txtTotalSGST'),'id'=>'txtTotalSGST', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- IGST
- 'txtTotalIGST','value' => set_value('txtTotalIGST'),'id'=>'txtTotalIGST', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
- Total Packaging
- 'txtTotalPackaing','value' => set_value('txtTotalPackaing'),'id'=>'txtTotalPackaing', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
- Total Insurance
- 'txtTotalInsurance','value' => set_value('txtTotalInsurance'),'id'=>'txtTotalInsurance', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- Total Freight
- 'txtTotalFreight','value' => set_value('txtTotalFreight'),'id'=>'txtTotalFreight', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Total Order Value
- 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary'),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
- Special Instructions
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '8');
- echo form_textarea($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
- Basic Amount
- 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount'),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- CGST
- 'txtTotCgst','value' => set_value('txtTotCgst'),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
- SGST
- 'txtTotSgst','value' => set_value('txtTotSgst'),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- IGST
- 'txtTotIgst','value' => set_value('txtTotIgst'),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
- Other Allowances
- 'txtTotOtherAllo','value' => set_value('txtTotOtherAllo'),'id'=>'txtTotOtherAllo', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- Total Order Value
- 'txtTotalOrderValueSummaryService','value' => set_value('txtTotalOrderValueSummaryService'),'id'=>'txtTotalOrderValueSummaryService', 'class' => 'form-control num' ,'readonly' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
Description Of Service*
-
- 'emergdescofpo','value' => set_value('emergdescofpo'),'id'=>'emergdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
- echo form_textarea($data);
- ?>
-
-
-
-
- Scope Of Work 'ScopeOfWork','value' => set_value('ScopeOfWork'),'id'=>'ScopeOfWork', 'class' => 'form-control','rows' => '8');
- echo form_textarea($data); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+"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
+
+
+
+
+
+
+ Request Type *
+ '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"');
+
+ ?>
+
+
+
+
Purchase Order Date
+
+
+ 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
Purchase Order Type
+
+
+ 'POType','value' => set_value('POType',$ReqType),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ Select Delivery By*
+
+
+ "DateRange", "id"=>"Date", "value"=>"0", 'checked'=>set_radio('DateRange', '0', TRUE))); ?>
+
+ "DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?>
+
+
+
+
+
+ Work Status*
+
+
+ 'Selected Work Status');
+ foreach ($WorkStatus as $WSID):
+
+
+ $options4[$WSID->StatusCode] = $WSID->StatusName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('workstatus', $options4,set_value('workstatus'),'id="workstatusValue"' ,'required="true"' ,'class="form-control select2');
+
+ ?>
+
+
+
+
+
+
+
+
Supplier*
+
+ '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"');
+
+ ?>
+
+
+
+
+
Address
+
+ 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
Delivery Address
+
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
+
+
+ Schedule By*
+
+ 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40','maxlength' => '110');
+ echo Form_textarea($data);
+ ?>
+
+
+
+ Delivery Date*
+
+ 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Department Name*
+
+ '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*
+
+ '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"');
+
+ ?>
+
+
+
+
Available Budget
+
+ 'AvalBuget','value' => set_value('AvalBuget'),'id'=>'AvalBuget', 'class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ Select Tax Range*
+
+
+ "Range", "id"=>"Local", "value"=>"0", 'checked'=>set_radio('Range', '0', TRUE))); ?>
+
+ "Range", "id"=>"Inter_state", "value"=>"1", 'checked'=>set_radio('Range', '1', FALSE))); ?>
+
+
+
+
+
+
+
+
+
+
+ Currency Type*
+
+ 'txtcurrencytype','value' => set_value('txtcurrencytype'),'id'=>'txtcurrencytype', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Exchange Rate
+
+ 'txtexachangerate','value' => set_value('txtexachangerate'),'id'=>'txtexachangerate', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
Select Service Schedule Type
+
+
+
+
+
+
Select Service Period Option
+
+ ConfigValue] = $SerOption->ConfigValue;
+ endforeach;
+
+ }
+ echo form_dropdown('ServiceOptions', $ServiceOptions,set_value('ServiceOptions'),'id="ServiceOptions"' ,'class = "form-control"');
+
+ ?>
+
+
+
+
Number of Services
+
+ 'ServiceNo','value' => set_value('ServiceNo',1),'id'=>'ServiceNo', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Mode Of Shipment
+
+
+ 'emergmodeofshipment','value' => set_value('emergmodeofshipment'),'id'=>'emergmodeofshipment', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Contact Reference
+
+
+ 'emergsupplierreference','value' => set_value('emergsupplierreference'),'id'=>'emergsupplierreference', 'class' => 'form-control','maxlength'=>'40');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Supplier's Offer No
+
+
+ 'emergsupplierofferno','value' => set_value('emergsupplierofferno'),'id'=>'emergsupplierofferno', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
Our Reference(S)
+
+
+ 'emergotherreference','value' => set_value('emergotherreference'),'id'=>'emergotherreference', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
Fincap
+
+
+ 'emergfincap','value' => set_value('emergfincap'),'id'=>'emergfincap', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Service Type Options*
+
+
+ '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');
+
+
+ ?>
+
+
+
+
+
+
+
Insurance Options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Insurance Details*
+
+ 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Payable Terms
+ '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"');
+ ?>
+
+
+
+
Description of Payable Terms*
+
+ 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Delivery Challan /Inv No
+
+
+
Delivery Challan /Inv Date
+
+ 'Date1','value' => set_value('Date1',$CurrentDate),'id'=>'Date1', 'class' => 'form-control num' ,'required' => 'true');
+ echo form_input($data);?>
+
+
+
+
+
+
+
+
+
+
+
+
+
Vehicle No
+
+
+
Courier No
+
+
+
+
+
+
+
+
+
+
+ Select Company file(only .pdf,.excel,.doc,.png,.jpg)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select Company file(only .pdf,.excel,.doc,.png,.jpg)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SNo
+ Requisition No
+ Item Code
+ Item Description
+ Quantity
+ UOM
+ Rate
+ Basic Amount
+ Tax Amount
+ Total Order Amount
+ Action
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Basic Amount
+ 'txtTotBasicAmountRevenue','value' => set_value('txtTotBasicAmountRevenue'),'id'=>'txtTotBasicAmountRevenue', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Total Discount
+ 'txtTotalDiscount','value' => set_value('txtTotalDiscount'),'id'=>'txtTotalDiscount', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ CGST
+ 'txtTotalCGST','value' => set_value('txtTotalCGST'),'id'=>'txtTotalCGST', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ SGST
+ 'txtTotalSGST','value' => set_value('txtTotalSGST'),'id'=>'txtTotalSGST', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ IGST
+ 'txtTotalIGST','value' => set_value('txtTotalIGST'),'id'=>'txtTotalIGST', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ Total Packaging
+ 'txtTotalPackaing','value' => set_value('txtTotalPackaing'),'id'=>'txtTotalPackaing', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Total Insurance
+ 'txtTotalInsurance','value' => set_value('txtTotalInsurance'),'id'=>'txtTotalInsurance', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ Total Freight
+ 'txtTotalFreight','value' => set_value('txtTotalFreight'),'id'=>'txtTotalFreight', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Total Order Value
+ 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary'),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Special Instructions
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '8');
+ echo form_textarea($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ Basic Amount
+ 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount'),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ CGST
+ 'txtTotCgst','value' => set_value('txtTotCgst'),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+ SGST
+ 'txtTotSgst','value' => set_value('txtTotSgst'),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ IGST
+ 'txtTotIgst','value' => set_value('txtTotIgst'),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+ Other Allowances
+ 'txtTotOtherAllo','value' => set_value('txtTotOtherAllo'),'id'=>'txtTotOtherAllo', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ Total Order Value
+ 'txtTotalOrderValueSummaryService','value' => set_value('txtTotalOrderValueSummaryService'),'id'=>'txtTotalOrderValueSummaryService', 'class' => 'form-control num' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
Description Of Service*
+
+ 'emergdescofpo','value' => set_value('emergdescofpo'),'id'=>'emergdescofpo', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
+ echo form_textarea($data);
+ ?>
+
+
+
+
+ Scope Of Work 'ScopeOfWork','value' => set_value('ScopeOfWork'),'id'=>'ScopeOfWork', 'class' => 'form-control','rows' => '8');
+ echo form_textarea($data); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 -
-
-
-
-
-
- Requistion No
- '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"' );
- ?>
-
-
-
Purchase Order Date
-
- 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
- echo form_input($data);
- ?>
-
-
-
-
-
-
- Select Supplier*
- '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');
-
- ?>
-
-
-
Purchase Order Type
-
-
- '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')); ?>
-
-
-
-
-
-
-
-
-
Supplier Address
-
- 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
-
-
-
-
Delivery Address
-
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
- echo Form_textarea($data);
- ?>
-
-
-
-
Delivery Date*
-
- 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
- echo form_input($data);
- ?>
-
-
-
-
- Schedule By*
- 'Scheduleby','value' => set_value('Scheduleby',$DeliverSchedule),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
- echo Form_textarea($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
Mode Of Shipment
-
-
- 'editmodeofshipment','value' => set_value('editmodeofshipment',$modeofshipment),'id'=>'editmodeofshipment', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Contact Reference
-
-
- 'editsupplierreference','value' => set_value('editsupplierreference',$supplierref),'id'=>'editsupplierreference', 'class' => 'form-control', 'maxlength'=>'40');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
Supplier's Offer No
-
-
- 'editsupplierofferno','value' => set_value('editsupplierofferno',$suppofferno),'id'=>'editsupplierofferno', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
Our Reference(S)
-
-
- 'editotherreference','value' => set_value('editotherreference',$otherref),'id'=>'editotherreference', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
Fincap
-
-
- 'editfincap','value' => set_value('editfincap',$fincap),'id'=>'editfincap', 'class' => 'form-control');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Revenue Type Options
-
-
- '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');
-
-
-
- ?>
-
-
-
-
-
-
- Insurance Options
- 'Yes','0'=>'No');
- echo form_dropdown('insurancestatus', $optionsnew,set_value('insurancestatus'),'id="insurancestatus"' ,'required="true"' ,'class="form-control select2');
-
- ?>
-
-
-
-
-
Insurance Details*
-
- 'insuranceno','insuranceno' => set_value('insuranceno',$insurenceno),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
- Payment Terms
-
- PaymentID] = $pay->PaymentTerms;
-
-
- endforeach;
- }
-
- echo form_dropdown('PaymentTerms', $options6,set_value('PaymentTerms',$Terms),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2');
-
- ?>
-
-
-
-
-
-
-
Description of Payable Terms*
-
- 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SNo
- Requisition No
- Item Code
- Item Description
- Quantity
- UOM
- Rate
- Basic Amount
- Tax Amount
- Total Order Amount
- Actual Quantity
- Received Quantity
- Pending Quantity
- Action
-
-
-
-
-
-
-
- ReqNo ?>
- MaterialCode ?>
- MaterialName ?>
- Quantity ?>
- UOM ?>
- Rate ?>
-
- BasicValue, 2, '.', ''); ?>
-
- Taxamount ?>
- TotalValue ?>
- Quantity ?>
- ReceivedQuantity ?>
- Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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;
-
- }
- ?>
-
-
-
-
-
-
-
-
-
-
-
- Basic Amount
-
- 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($totBasicAmt, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
-
- Total Discount Amount
-
- 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($totDiscountAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
- Total SGST Amount
-
- 'txtTotalSGST','value' => set_value('txtTotalSGST',number_format($totSgst, 2, '.', '')),'id'=>'txtTotalSGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
- Total IGST Amount
-
- 'txtTotalIGST','value' => set_value('txtTotalIGST',number_format($totIgst, 2, '.', '')),'id'=>'txtTotalIGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
- Total CGST Amount
-
- 'txtTotalCGST','value' => set_value('txtTotalCGST',number_format($totCgst, 2, '.', '')),'id'=>'txtTotalCGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
-
-
-
-
- Total Packaging Amount
-
- 'txtTotalPackaing','value' => set_value('txtTotalPackaing',number_format($totPackagingAmt, 2, '.', '')),'id'=>'txtTotalPackaing', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
- Total Insurance Amount
-
- 'txtTotalInsurance','value' => set_value('txtTotalInsurance',number_format($totInsuranceAmt, 2, '.', '')),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
-
- Total Freight Amount
-
- 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($totFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
- Total Order Amount
- 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($totOrderSummaryAmt, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
- echo form_input($data);
- ?>
-
-
-
-
-
- Special Instructions 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control' );
- echo form_textarea($data);
- ?>
-
-
-
-
-
-
Request On :
-
-
Request By :
-
-
-
Status :
-
-
-
-
-
-
-
-
-
-
-
+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 -
+
+
+
+
+
+ Requistion No
+ '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"' );
+ ?>
+
+
+
Purchase Order Date
+
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ Select Supplier*
+ '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');
+
+ ?>
+
+
+
Purchase Order Type
+
+
+ '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')); ?>
+
+
+
+
+
+
+
+
+
Supplier Address
+
+ 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true' ,'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
Delivery Address
+
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
Delivery Date*
+
+ 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Schedule By*
+ 'Scheduleby','value' => set_value('Scheduleby',$DeliverSchedule),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40', 'maxlength' => '110');
+ echo Form_textarea($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
Mode Of Shipment
+
+
+ 'editmodeofshipment','value' => set_value('editmodeofshipment',$modeofshipment),'id'=>'editmodeofshipment', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Contact Reference
+
+
+ 'editsupplierreference','value' => set_value('editsupplierreference',$supplierref),'id'=>'editsupplierreference', 'class' => 'form-control', 'maxlength'=>'40');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
Supplier's Offer No
+
+
+ 'editsupplierofferno','value' => set_value('editsupplierofferno',$suppofferno),'id'=>'editsupplierofferno', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
Our Reference(S)
+
+
+ 'editotherreference','value' => set_value('editotherreference',$otherref),'id'=>'editotherreference', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
Fincap
+
+
+ 'editfincap','value' => set_value('editfincap',$fincap),'id'=>'editfincap', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Revenue Type Options
+
+
+ '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');
+
+
+
+ ?>
+
+
+
+
+
+
+ Insurance Options
+ 'Yes','0'=>'No');
+ echo form_dropdown('insurancestatus', $optionsnew,set_value('insurancestatus'),'id="insurancestatus"' ,'required="true"' ,'class="form-control select2');
+
+ ?>
+
+
+
+
+
Insurance Details*
+
+ 'insuranceno','insuranceno' => set_value('insuranceno',$insurenceno),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ Payment Terms
+
+ PaymentID] = $pay->PaymentTerms;
+
+
+ endforeach;
+ }
+
+ echo form_dropdown('PaymentTerms', $options6,set_value('PaymentTerms',$Terms),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2');
+
+ ?>
+
+
+
+
+
+
+
Description of Payable Terms*
+
+ 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SNo
+ Requisition No
+ Item Code
+ Item Description
+ Quantity
+ UOM
+ Rate
+ Basic Amount
+ Tax Amount
+ Total Order Amount
+ Actual Quantity
+ Received Quantity
+ Pending Quantity
+ Action
+
+
+
+
+
+
+
+ ReqNo ?>
+ MaterialCode ?>
+ MaterialName ?>
+ Quantity ?>
+ UOM ?>
+ Rate ?>
+
+ BasicValue, 2, '.', ''); ?>
+
+ Taxamount ?>
+ TotalValue ?>
+ Quantity ?>
+ ReceivedQuantity ?>
+ Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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;
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+ Basic Amount
+
+ 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($totBasicAmt, 2, '.', '')),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Total Discount Amount
+
+ 'txtTotalDiscount','value' => set_value('txtTotalDiscount',number_format($totDiscountAmt, 2, '.', '')),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+ Total SGST Amount
+
+ 'txtTotalSGST','value' => set_value('txtTotalSGST',number_format($totSgst, 2, '.', '')),'id'=>'txtTotalSGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+ Total IGST Amount
+
+ 'txtTotalIGST','value' => set_value('txtTotalIGST',number_format($totIgst, 2, '.', '')),'id'=>'txtTotalIGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+ Total CGST Amount
+
+ 'txtTotalCGST','value' => set_value('txtTotalCGST',number_format($totCgst, 2, '.', '')),'id'=>'txtTotalCGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ Total Packaging Amount
+
+ 'txtTotalPackaing','value' => set_value('txtTotalPackaing',number_format($totPackagingAmt, 2, '.', '')),'id'=>'txtTotalPackaing', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+ Total Insurance Amount
+
+ 'txtTotalInsurance','value' => set_value('txtTotalInsurance',number_format($totInsuranceAmt, 2, '.', '')),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+ Total Freight Amount
+
+ 'txtTotalFreight','value' => set_value('txtTotalFreight',number_format($totFreightAmt, 2, '.', '')),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+ Total Order Amount
+ 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($totOrderSummaryAmt, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ Special Instructions 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control' );
+ echo form_textarea($data);
+ ?>
+
+
+
+
+
+
+
+
+
Special po Table List
+
+
+
+ Bill No
+
+ Delivery Challan No
+ Delivery Challan Date
+ Vehicle No
+ Courier No
+
+ File
+
+ Action
+
+
+
+
+
+
+ BillNo ?>
+
+ DeliveryChellanOrInvoiceNo?>
+ DeliveryChellanDate);
+ echo $date->format('d-m-Y'); ?>
+ VehicleNo?>
+ CourierNo?>
+
+ FilePath?>
+
+
+
+
+
+
+
+
+
+
+
+
+
Request On :
+
+
Request By :
+
+
+
Status :
+
+
+
+
+
+
+
+
+
+
+
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()
-
Revenue Type Options
+
Revenue Type Options*
';
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");
}
}