diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php
index d08af77a..087feaaf 100755
--- a/application/controllers/amendmentpurchaseorder.php
+++ b/application/controllers/amendmentpurchaseorder.php
@@ -63,9 +63,21 @@ class amendmentpurchaseorder extends BaseController
Start here */
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
$data['RequistionDetails'] = $ReqDetails;
+ // $data['RequistionDetails'] = $ReqDetails;
+ foreach ($data['RequistionDetails'] as $ReqDet)
+ {
+
+ $Status=$ReqDet->Status;
+ }
+
+ $data['POSTATUS']=$this->purchaseorder_model->GetPOStatus($Status);
+
+ foreach ($data['POSTATUS'] as $POST)
+ {
+ $Status=$POST->StatusName;
+ }
$CostCode = '';
-
- $this->load->model('costcenter_model');
+ $this->load->model('costcenter_model');
$FYStart = '';
$FYEnd = '';
$FiscalYear = $this->costcenter_model->getFiscalYear();
@@ -80,19 +92,10 @@ class amendmentpurchaseorder extends BaseController
}
$FYdt = $FYStart." - ".$FYEnd ;
-
-
-
- $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
- $currencycode = '';
- $Year = $dt->format('Y');
-
- foreach ($ReqDetails as $Rs):
- $CostCode = $Rs->CostCenterCode;
- endforeach;
-
- $AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
-
+ foreach ($ReqDetails as $Rs):
+ $CostCode = $Rs->CostCenterCode;
+ endforeach;
+ $AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
if(count($AvlBudget)>0)
{
@@ -130,8 +133,6 @@ class amendmentpurchaseorder extends BaseController
$AvlBudget = $this->purchaseorder_model->GetAvailableImportBudgetAmount($CostCode,$FYdt,$ReqType);
-
-
//print_r($AvlBudget);
if(count($AvlBudget)>0)
@@ -177,7 +178,7 @@ class amendmentpurchaseorder extends BaseController
{
$CapitalRange = $_GET['CapitalRange'];
- $AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
+ $AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
if(count($AvlBudget)>0)
@@ -265,11 +266,11 @@ class amendmentpurchaseorder extends BaseController
$predeliverydate=$this->input->post('beforeDeliverydt');
$preschedule=$this->input->post('beforeScheduleby');
//$Deliverydt = $this->getDateformat($dt);
- $DeliverySchedule = $this->input->post('Scheduleby');
+ $DeliverySchedule1 = $this->input->post('Scheduleby');
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
- $Deliverydt = '';
+ $Deliverydt=null;
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
@@ -277,35 +278,36 @@ class amendmentpurchaseorder extends BaseController
$DeliverySchedule = '';
}
- //$predeliverydate=$this->getDateformat($predeliverydate);
+
$POType = $this->input->post('POType');
$PoRange = $this->input->post('txtPoRange');
$PaymentTermsText=$this->input->post('beforePaymentTermsText');
$PaymentTerms=$this->input->post('PaymentTerms');
+ $Otherpayment=$this->input->post('Otherpayment');
+ $Otherpaymentamend=$this->input->post('Otherpayment');
+ //echo $Otherpayment;
$prePaymentTerms=$this->input->post('beforePaymentTerms');
+ $preTotalOdervalue=$this->input->post('preTotalOdervalue');
+ $MAD.="Amended Total Order Value: :" . $preTotalOdervalue ."
";
$testdate=date("Y-m-d");
if($PaymentTerms!=$prePaymentTerms)
{
- $MAD.="Amended PaymentTerms : ". $PaymentTermsText ."
";
+ if($prePaymentTerms != 'PT08'){ $Otherpaymentamend='';}
+ $MAD.="Amended PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend ."
";
}
- if(($predeliverydate != $testdate)&&($dt) != ($predeliverydate))
+ if((($predeliverydate != $testdate)&&($dt != $predeliverydate))|| ($DeliverySchedule1 != $preschedule))
{
- //$predeliverydate = $this->getDateformat($dt);
- $MAD.='Amended Delivery Date : ' . $predeliverydate . '
' ;
+
+ $MAD.='Amended Delivery Option : ' . $predeliverydate . $preschedule . '
' ;
}
- if($DeliverySchedule != $preschedule)
- {
- $MAD.="Amended Schedule : " . $preschedule."
";
- }
- // echo "MAD is:" . $MAD;
- // die();
+
$SpecialInstruction = $this->input->post('txtSpcialInstruction');//$_POST['txtSpcialInstruction'];//$this->input->post('txtSpcialInstruction');//t->post('txtSpcialInstruction'));
- // echo $SpecialInstruction;
+
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
$POStatus = $this->input->post('txtStatus');
@@ -313,15 +315,21 @@ class amendmentpurchaseorder extends BaseController
$updatedBy = $this->session->userdata ( 'userId' );
$RowCount = $this->input->post('txtRowCount');
- //echo "Rowcount is" . $RowCount;
- //die();
+
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dt->format('Y-m-d H:i:s');
- // PO Master
- // PO Master
- $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'AmendedDetails'=>$MAD);
- // print_r($POMaster);
- // die();
+ if(empty($Deliverydt))
+ {
+ $Deliverydt=null;
+ }
+
+ if($PaymentTerms != 'PT08'){
+ $Otherpayment='';
+
+ }
+
+ $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'AmendedDetails'=>$MAD);
+ //print_r($POMaster);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
@@ -381,6 +389,7 @@ class amendmentpurchaseorder extends BaseController
$FreightValue = $this->input->post('FreightVal'.$i);
$preFreightValue = $this->input->post('beforeFreightVal'.$i);
$AfterFreightValue = $this->input->post('AfterFreightVal'.$i);
+ $NoofTrips = $this->input->post('Nooftrips'.$i);
$InsuranceValue = $this->input->post('Insval'.$i);
$preInsuranceValue = $this->input->post('beforeInsval'.$i);
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
@@ -467,7 +476,7 @@ class amendmentpurchaseorder extends BaseController
}
- $RevenueTaxList = array('LineItemNo'=>$LineItemNo, 'DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType, 'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'Vat'=>$VatValue,'AfterVAT'=>$AfterVatValue,'GST'=>$GSTValue,'AfterGST'=>$AfterGSTValue,'OtherTaxes'=>$OtherTaxValue,'AfterOtherTaxes'=>$AfterOtherTaxValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt);
+ $RevenueTaxList = array('LineItemNo'=>$LineItemNo, 'DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType,'NoOfTrip'=>$NoofTrips,'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'SGST'=>$VatValue,'AfterSGST'=>$AfterVatValue,'CGST'=>$GSTValue,'AfterCGST'=>$AfterGSTValue,'IGST'=>$OtherTaxValue,'AfterIGST'=>$AfterOtherTaxValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt);
// print_r($RevenueTaxList);
$RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList);
@@ -492,52 +501,47 @@ function UpdateAmendServicePurchaseOrder()
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
- $Deliverydt = '';
+ $Deliverydt =null;
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
$Deliverydt = $this->getDateformat($dt);
+ // echo "IF" . $Deliverydt;
$DeliverySchedule = '';
}
$ddate=$this->input->post('Deliverydt');
- //echo "current Date is:-" . $ddate . "
";
+
$beforeddate=$this->input->post('beforeDeliverydt');
- //echo $beforeddate."
";
+
$testdate=date("Y-m-d");
- //echo "Today date:-" . $testdate ."
";
+
$dschedule=$this->input->post('Scheduleby');
- //echo "$dschedule";
+
$beforedschedule=$this->input->post('beforeScheduleby');
- //echo "beforedate is:-" . $beforeddate;
- if(($beforeddate != $testdate) && ($ddate != $beforeddate))
+ $preTotalordervalue=$this->input->post('preTotalordervalue');
+
+ $MAD.="Amended Total OrderValue: " . $preTotalordervalue . "
";
+ if((($beforeddate != $testdate) && ($ddate != $beforeddate))||($dschedule != $beforedschedule))
{
- $MAD.="Amended Delivery Date : " . $beforeddate . "
";
+ $MAD.="Amended DeliveryOption : " . $beforeddate . $beforedschedule."
";
}
- if($dschedule != $beforedschedule)
- {
- $MAD.="Amended Delivery Schedule : " . $beforedschedule . "
";
- }
- // echo "MAD IS:-".$MAD;
- // die();
- // if(($ddate != $beforeddate) || ($dschedule != $beforedschedule) )
+ // if($dschedule != $beforedschedule)
// {
- // $beforeddate2=new DateTime($beforeddate, new DateTimeZone('Asia/Kolkata'));
- // $beforeddate3 = $beforeddate2->format('d-m-Y');
- // echo $beforeddate3;
-
- // //die();
- // $MAD.="Amended Delivery Option : " . $beforeddate ."".$beforedschedule. "
";
+ // $MAD.="Amended DeliveryOption : " . $beforedschedule . $beforeddate."
";
// }
-
+
$PaymentTermsText=$this->input->post('beforePaymentTermsText');
$PaymentTerms=$this->input->post('PaymentTerms');
+ $Otherpayment=$this->input->post('Otherpayment');
+ $Otherpaymentamend=$this->input->post('Otherpayment');
$beforePaymentTerms=$this->input->post('beforePaymentTerms');
if($PaymentTerms != $beforePaymentTerms)
{
- $MAD.="Amended PaymentTerms : ". $PaymentTermsText ."
";
+ if($beforePaymentTerms != 'PT08'){ $Otherpaymentamend='';}
+ $MAD.="Amended PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend."
";
}
//echo "MAD IS" . $MAD . "
";
@@ -553,13 +557,18 @@ function UpdateAmendServicePurchaseOrder()
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dt->format('Y-m-d H:i:s');
$WorkStatus=$this->input->post('workstatus');
-
-
// PO Master
- $POMaster = array('ParentPO'=>$PONO,'POType'=>$POType,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$scopeofwork,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'ServiceWorkStatus'=>$WorkStatus,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD);
+ if(empty($Deliverydt))
+ {
+ $Deliverydt=null;
+ }
+ if($PaymentTerms != 'PT08'){
+ $Otherpayment='';
+
+ }
+ $POMaster = array('ParentPO'=>$PONO,'POType'=>$POType,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$scopeofwork,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'ServiceWorkStatus'=>$WorkStatus,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD);
- // print_r($POMaster);
- // die();
+ //print_r($POMaster);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
//print_r($LastPO);
@@ -583,6 +592,7 @@ function UpdateAmendServicePurchaseOrder()
//echo "Inside Loop";
$CAD='';
$MaterialCode = $this->input->post('materialCode'.$i);
+ $MaterialName=$this->input->post('materialName'.$i);
$Quantity = $this->input->post('quantity'.$i);
$beforeQuantity = $this->input->post('beforequantity'.$i);
$Reqnumber = $this->input->post('Reqnumber'.$i);
@@ -628,7 +638,8 @@ function UpdateAmendServicePurchaseOrder()
$rowspanvalue++;
$CAD.="
Payment Terms
- +Certified that the particulars given above are true and correct
diff --git a/application/views/Amendrevenuepopdf.php b/application/views/Amendrevenuepopdf.php index d19b4b6a..59feea73 100755 --- a/application/views/Amendrevenuepopdf.php +++ b/application/views/Amendrevenuepopdf.php @@ -13,6 +13,7 @@ $postatus=''; $ServiceDescription = ''; $PaymentTerms = ''; + $PaymentOtherDescription=''; /* $PaymentDays=''; $PayableAT=''; */ $totaltaxonly=0; @@ -51,8 +52,10 @@ $ServiceDescription =$PO->ServiceDescription; $PaymentTerms = $PO->PaymentTerms; - $PaymentDays=$PO->PaymentDays; - $PayableAT=$PO->PayableAT; + if($PaymentTerms=='Others'){ + $PaymentOtherDescription=$PO->PaymentOtherDescription; + } + @@ -249,11 +252,12 @@ $AfterCGST =$AfterCGST + $record->AfterCGST; $AfterSGST =$AfterSGST + $record->AfterSGST; $AfterIGST =$AfterIGST + $record->AfterIGST; - $totaltaxonly=($AfterCGST+$AfterSGST+$AfterIGST); + $Insurance =$Insurance + $record->Insurance; $AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue; $AfterDiscount = $AfterDiscount + $record->AfterDiscount ; - $AfterPackaging=$AfterPackaging+$record->AfterPackagingValue; + $AfterPackaging=$AfterPackaging+$record->AfterPackagingValue; + $totaltaxonly=($AfterCGST+$AfterSGST+$AfterIGST+$Insurance+$AfterFreightValue+$AfterPackaging); } @@ -266,7 +270,7 @@Payment Terms :
- +Certified that the particulars given above are true and correct
@@ -348,7 +352,7 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc ?> -| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | +DELIVERY DATE / SCHEDULE BY : | ||
| - | MaterialName ; ?> | +MaterialCode;?> - MaterialName ; ?> | Quantity ; ?> | Rate ; ?> | @@ -237,8 +249,11 @@ foreach($POItem as $v) { + if(!empty($v->AmendedDetails)) + { echo "" . $v->AmendedDetails . ""; break; + } } }?> @@ -254,7 +269,9 @@ { foreach($POItem as $record) { - echo $record->lineamd ; + if(!empty($record->lineamd)){ + echo $record->lineamd ; + } } } ?> @@ -273,7 +290,7 @@
|
Payment Terms - + |
Certified that the particulars given above are true and correct diff --git a/application/views/editCapitalAmendPO.php b/application/views/editCapitalAmendPO.php index d66f7d6e..2d636fcf 100755 --- a/application/views/editCapitalAmendPO.php +++ b/application/views/editCapitalAmendPO.php @@ -1,8 +1,8 @@ FirstName; - $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); - $CurrentDate = $dt->format('Y-m-d'); + // $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + // $CurrentDate = $dt->format('Y-m-d'); $res_arr_values = array(); $DeliverOption=''; $SupId = ''; @@ -15,7 +15,7 @@ $DeliveryAddress =''; $POStatus = ''; $PONO = ''; - + $PaymentOtherDescription=''; $TotalSGST = 0.0; $TotalCGST = 0.0; $TotalIGST = 0.0; @@ -90,7 +90,7 @@ if(!empty($POItem)) } if(!empty($POMaster)) { - +//print_r($POMaster); foreach ($POMaster as $Req) { @@ -104,19 +104,26 @@ if(!empty($POMaster)) $DeliverOption = $Req->DeliveryOption; $DeliverSchedule = $Req->DeliverySchedule; + // $Deliverydt=$Req->DeliveryDate; + if(!empty($Req->DeliveryDate)) + { $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('Y-m-d'); + }else{ + $Deliverydt=null; + } + $DeliveryAddress =$Req->DeliveryAddress; $POStatus = $Req->StatusCode; $PoStatusName=$Req->StatusName; $PONO = $Req->PONO; $scopeofwork = $Req->ServiceDescription; - $PayableAT=$Req->PayableAT; + //$PayableAT=$Req->PayableAT; $ExchangeRateOn1=new DateTime($Req->ExchangeRateCalculatedon); $ExchangeRateOn=$ExchangeRateOn1->format('Y-m-d'); - $PaymentDays=$Req->PaymentDays; - + // $PaymentDays=$Req->PaymentDays; + $PaymentOtherDescription=$Req->PaymentOtherDescription; $PaymentTerms=$Req->PaymentTerms; //echo $PaymentTerms; $UpdatedOn=$Req->UpdatedOn; @@ -166,6 +173,7 @@ if(!empty($AvlBudAmt)) var DelOpt = ''; var SchName = ; + var others =''; var DelDt = ''; $(document).ready(function () { if(DelOpt=="0"){ @@ -177,9 +185,18 @@ $('#Deliverydt').val(DelDt); else if(DelOpt=="1"){ $('#Deliverydtdiv').hide(); $('#Schedulediv').show(); -$('#Deliverydt').val(''); +//$('#Deliverydt').val(''); +$('#Deliverydt').hide(); $('#Scheduleby').val(SchName); +} + +if($('#PaymentMethod').val()== 'PT08') +{ + +$('#otheroptiondiv').show(); +$('#Otherpayment').val(others); + } }); @@ -195,13 +212,19 @@ window.onload = function() document.getElementById('ExchangeRateOnDiv').style.display = 'none'; document.getElementById('ExchangeRateDiv').style.display = 'none'; document.getElementById('currencyTypeDiv').style.display = 'none'; - document.getElementById('ExchangeRateModalDiv').style.display = 'none'; + //document.getElementById('ExchangeRateModalDiv').style.display = 'none'; document.getElementById('ExchangeRateModalEditDiv').style.display = 'none'; document.getElementById('HideImportTaxTotal').style.display = 'none'; - document.getElementById('ModalImportTaxHide').style.display = 'none'; - document.getElementById('EditModalImportTaxHide').style.display = 'none'; - document.getElementById('ExchangeRateModalViewDiv').style.display = 'none'; - document.getElementById('ViewModalImportTaxHide').style.display = 'none'; + // document.getElementById('ModalImportTaxHide').style.display = 'none'; + document.getElementById('EditModalImportTaxHide').style.display = 'none'; + // document.getElementById('ExchangeRateModalViewDiv').style.display = 'none'; + //document.getElementById('ViewModalImportTaxHide').style.display = 'none'; + //document.getElementById('ExchangeRateModalViewDiv').style.display = 'none'; + document.getElementById('Deliverydtdiv').style.display = 'none'; + document.getElementById('dispatchinternational').style.display = 'none'; + document.getElementById('placeoforgin').style.display = 'none'; + document.getElementById('datedomestic').style.display = 'block'; + document.getElementById('deliverydateby').style.display = 'none'; capitalType='Domestic'; @@ -218,10 +241,10 @@ document.getElementById('ExchangeRateModalEditDiv').style.display = 'block'; //document.getElementById('ExchangeRateModalViewDiv').style.display = 'block'; capitalType='International'; document.getElementById('currencyTypeDiv').style.display = 'block'; +document.getElementById('dispatchinternational').style.display = 'block'; +//document.getElementById('deliverydateby').style.display = 'block'; //document.getElementById('ViewModalImportTaxHide').style.display = 'block'; - - - } + } } @@ -231,6 +254,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block'; diff --git a/application/views/editRevenueAmendPO.php b/application/views/editRevenueAmendPO.php index 018067c3..494a6534 100755 --- a/application/views/editRevenueAmendPO.php +++ b/application/views/editRevenueAmendPO.php @@ -25,18 +25,10 @@ if(!empty($CompanyDetails)) if(!empty($AvlBudAmt)) { - $AvlAmount = $AvlBudAmt; + $AvlAmount = $AvlBudAmt; +//echo $AvlAmount; } -if(!empty($INRSYMBOL)) -{ - - foreach($INRSYMBOL as $INRS) - { - $INRSYM=$INRS->FontCode2000; - - } -} foreach ($PaymentTerms as $TER) { $Terms=$TER->PaymentTerms; @@ -62,7 +54,7 @@ foreach ($PaymentTerms as $TER) $totFreightAmt = 0.0; $totInsuranceAmt = 0.0; $totOrderSummaryAmt = 0.0; - + $PaymentOtherDescription=''; $ServiceDescription = ''; if(!empty($POMaster)) @@ -83,12 +75,13 @@ if(!empty($POMaster)) $DeliverOption = $Req->DeliveryOption; $DeliverSchedule = $Req->DeliverySchedule; $Ddt = new DateTime($Req->DeliveryDate); - echo $Req->DeliveryDate.""; + //echo $Req->DeliveryDate." "; $Deliverydt = $Ddt->format('Y-m-d'); - echo $Deliverydt; - + //echo $Deliverydt; + $PaymentOtherDescription=$Req->PaymentOtherDescription; + //echo $PaymentOtherDescription; $DeliveryAddress =$Req->DeliveryAddress; - $POStatus = $Req->StatusCode; + $POStatus = $Req->StatusName; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; @@ -100,8 +93,8 @@ if(!empty($RequistionDetails)) foreach ($RequistionDetails as $ReqDet) { $Reqon=$ReqDet->ReqDate; - $Requestedby=$ReqDet->Requestedby; - //$Status=$ReqDet->Status; + $Requestedby=$ReqDet->FirstName; + $Status=$ReqDet->Status; } } //echo $ServiceDescription; @@ -112,7 +105,31 @@ foreach ($POSTATUS as $PST ) } ?> - + + @@ -131,11 +148,13 @@ foreach ($POSTATUS as $PST ) @@ -566,9 +579,7 @@ function clearEditTaxField() } $(document).ready(function () { - - $("#PaymentTerms").select2(); - + $("#PaymentTerms").select2(); $('#Date').click(function () { //for Date range selection $('#Schedulediv').hide(); @@ -798,12 +809,13 @@ $(document).ready(function () { - - - +
-
+
-
-
'EditCostCenter','value' => set_value('EditCostCenter'),'id'=>'EditCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@@ -1214,38 +1226,7 @@ $(document).ready(function () {
-
-
+
-
@@ -1289,7 +1270,7 @@ $(document).ready(function () {
-
+
'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',number_format($TotalSummary, 2, '.', '')),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
@@ -1321,46 +1302,42 @@ $(document).ready(function () {
-
+
-
-
+
@@ -1906,12 +1883,11 @@ function validateServiceTax()
}
//
-
-
-
-
-
+ + +
-
+ Request On
'Requeston','value' => set_value('Requeston',$Reqon),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true','readonly' => 'true');
- echo form_input($data);
- ?>
+ $data = array('name' => 'Requeston','value' => set_value('Requeston',$Reqon),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
- -
-
-
-
+
+ Request By
'RequestBy','value' => set_value('RequestBy', $RequesterName),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
+ $data = array('name' => 'RequestBy','value' => set_value('RequestBy',$RequesterName),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
- - -
-
+
+ Status
'Select Status');
+ // echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2')
+ // $options = array("0"=>$PONOStatus);
+ // echo form_dropdown('Status', $options,set_value('Status',$StatusName),'id="Status"' ,'required="true"' ,'class="form-control select2')
+
+
$data = array('name' => 'Status','value' => set_value('Status',$StatusName),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
- + - | |||