| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2c.hellogtx.com/application/views/scripts/flight/ |
Upload File : |
<?php
$CurrencyRate = $this->CurrencyRate;
$CurrencyTitle = $this->CurrencyTitle;
$Mealdata = $this->Mealdata;
$Data = $FlightBookingData = $this->apiResponse;
$DataInbound = $this->apiResponseInbound;
$BaggageInb = $DataInbound['Segments'][0];
$arrFlightClass = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->getFlightClasses();
$intOtherCharges = $Data['FairRules']['OtherCharges'];
$intOtherChargesInb = isset($DataInbound['FairRules']['OtherCharges']) ? $DataInbound['FairRules']['OtherCharges'] : 0;
$intBaseFare = $Data['FairRules']['BaseFare'];
$intTax = $Data['FairRules']['Tax'];
$intAdditionalTxnFeePub = $Data['FairRules']['AdditionalTxnFeePub'];
$intServiceFee = $Data['FairRules']['ServiceFee'];
$intServiceFeeInb = isset($DataInbound['FairRules']['ServiceFee']) ? $DataInbound['FairRules']['ServiceFee'] : 0;
$intPublishedFare = $Data['FairRules']['PublishedFare'];
$intPublishedFareInb = isset($DataInbound['FairRules']['PublishedFare']) ? $DataInbound['FairRules']['PublishedFare'] : 0;
$intFarePerHeadPublish = $intBaseFare + $intTax + $intOtherCharges;
$intNetPublishedFare = $intPublishedFare;
$AdditionalTxnFeePub = 0;
$TotalBaseFare = 0;
$AdditionalTxnFeePubR = 0;
$TotalTaxsandFees = 0;
$TotalServiceFees = 0;
$TotalcouponVal = 0;
// if ($this->gtxagencysysid == '2656') {
// echo 'FlightBookingData<pre>';
// print_r($FlightBookingData);
// echo '</pre>';
// }
if ($FlightBookingData) {
foreach ($FlightBookingData as $DataVal) {
$intNetPublishedFare += $DataVal['FairRules']['PublishedFare'];
$couponApply = isset($DataVal['FairRules']['couponApply']) ? $DataVal['FairRules']['couponApply'] : 0;
$couponVal = (float) isset($DataVal['FairRules']['couponVal']) ? $DataVal['FairRules']['couponVal'] : 0;
$TotalcouponVal += $couponVal;
$couponName = isset($DataVal['FairRules']['couponName']) ? $DataVal['FairRules']['couponName'] : 0;
$ICSourceSysId = $DataVal['ICSourceSysId'];
// if ($ICSourceSysId == 7) {
// $DataVal['FairRules'] = $DataVal['NewPrice'];
// }
// echo '<pre>'; print_r($DataVal['FairRules']);echo '</pre>';
if ($DataVal['FairRules']['FareBreakdown']) {
foreach ($DataVal['FairRules']['FareBreakdown'] as $value) {
// echo '<pre>';
// print_r($value);
// echo '</pre>';
$MF = $value['MF']; //Management Fee
$TDS = $value['TDS']; //Management Fee
$TDSEarn = $value['TDSEarn']; //Management Fee
$YQ = $value['YQ']; //Fuel Surcharge
$AGST = $value['AGST']; //Airline GST Component
$MFT = $value['MFT']; //Management Fee Tax
$OT = isset($value['OT']) ? $value['OT'] : $value['TaxBR']['OT']; //Other Charges
$YR = $value['YR']; //Carrier Misc Fee
$other = $MF + $YQ + $AGST + $MFT + $OT + $YR;
if ($ICSourceSysId == 3) {
$other = $MF + $AGST + $MFT + $OT + $YR;
}
$PBaseFare = $value['BaseFare'];
$Tax = $value['Tax'];
$intTotalGST = $value['intTotalGST'];
$FixedMarkUp = $value['FixedMarkUp'];
$GSTOnMarkUp = $value['GSTOnMarkUp'];
$apiMarkup = $value['apiMarkup'];
$IntCommission = $value['IntCommission'];
$CommissionEarned = $value['CommissionEarned'];
$CommisionPass = $value['CommisionPass'];
$ServiceFee = $value['ServiceFee'];
$paxPublishedFare = ($PBaseFare);
$PassengerType = $value['PassengerType'];
$PassengerCount = $value['PassengerCount'];
$AdditionalTxnFeePub += $value['AdditionalTxnFeePub'];
$TaxesFees = ($other + $intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
$ServiceFees = ($intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
if ($ICSourceSysId == 3 || $ICSourceSysId == 7) {
$TaxesFees = ($Tax + $FixedMarkUp + $GSTOnMarkUp + $ServiceFee + $TDSEarn + $CommissionEarned);
$ServiceFees = ($FixedMarkUp + $GSTOnMarkUp + $ServiceFee);
}
$TotalBaseFare += ($paxPublishedFare);
$TotalTaxsandFees += ($TaxesFees);
$TotalServiceFees += ($ServiceFees);
// echo '<pre>'; print_r($intTotalGST);echo '</pre>';
// echo '<pre>'; print_r($FixedMarkUp);echo '</pre>';
// echo '<pre>'; print_r($apiMarkup);echo '</pre>';
// echo '<pre>'; print_r($IntCommission);echo '</pre>';
// echo '<pre>'; print_r($CommissionEarned);echo '</pre>';
}
$CurrencyTitle = isset($DataVal['FairRules']['Currency']) ? $DataVal['FairRules']['Currency'] : 'INR';
}
}
}
$SelectedMealSessionNew = new Zend_Session_Namespace('SelectedMealSessionNew');
$SelectedBaggSessionNew = new Zend_Session_Namespace('SelectedBaggSessionNew');
$SelectedMealSessionNewInb = new Zend_Session_Namespace('SelectedMealSessionNewInb');
$SelectedBaggSessionNewInb = new Zend_Session_Namespace('SelectedBaggSessionNewInb');
$selectedSeatSession = new Zend_Session_Namespace('selectedSeatSession');
// echo '<pre>';
// print_r($FlightBookingData);
// echo '</pre>';
$BagPrice = 0;
$InbBagPrice = 0;
$MealPrice = 0;
$InbMealPrice = 0;
$SeatPrice = 0;
$InseatPrice = 0;
$BagPrice = !empty($SelectedBaggSessionNew->params['Price']) ? $SelectedBaggSessionNew->params['Price'] : 0;
$MealPrice = !empty($SelectedMealSessionNew->params['Price']) ? $SelectedMealSessionNew->params['Price'] : 0;
// if ($SelectedBaggSessionNew->params) {
// foreach ($SelectedBaggSessionNew->params as $values) {
// if($ICSourceSysId==16){
// foreach ($values as $val) {
// $BagPrice += $val['Price'];
// }
// }else{
// $BagPrice += $values['Price'];
// }
// }
// }
// if ($SelectedBaggSessionNewInb->params) {
// foreach ($SelectedBaggSessionNewInb->params as $values) {
// if($ICSourceSysId==16){
// foreach ($values as $val) {
// $InbBagPrice += $val['Price'];
// }
// }else{
// // foreach ($values as $val) {
// $InbBagPrice += $values['Price'];
// // }
// }
// }
// }
// if ($SelectedMealSessionNew->params) {
// foreach ($SelectedMealSessionNew->params as $values) {
// if($ICSourceSysId == 16){
// foreach ($values as $val) {
// $MealPrice += $val['Price'];
// }
// }else{
// $MealPrice += $values['Price'];
// }
// }
// }
// if ($SelectedMealSessionNewInb->params) {
// foreach ($SelectedMealSessionNewInb->params as $values) {
// if($ICSourceSysId==16){
// foreach ($values as $val) {
// $InbMealPrice += $val['Price'];
// }
// }else{
// // foreach ($values as $val) {
// $InbMealPrice += $values['Price'];
// // }
// }
// }
// }
if ($selectedSeatSession->params) {
foreach ($selectedSeatSession->params as $values) {
foreach ($values as $val) {
$SeatPrice += $val['amount'];
}
}
}
//echo $SeatPrice;
$MealFare = ($MealPrice + $InbMealPrice);
$BaggFare = ($BagPrice + $InbBagPrice);
$codeName = '';
$discount = 0;
$coupon = "";
// echo '<pre>'; print_r($SelectedMealSessionNew->params);echo '</pre>';
$AirlineName = ($FlightBookingData[0]['AirlineName']);
//echo '<pre>'; print_r($FlightBookingData);echo '</pre>';
// $moneyFormatIndia = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($requestData);
?>
<style>
.txt-decoration-none {
text-decoration: none;
}
.txt-decoration-none:hover {
text-decoration: none;
}
.txt-red {
color: var(--gsttxt);
}
</style>
<?php if ($this->stylecss == 'bookoair') { ?>
<div class="row">
<div class="col-md-12">
<div class="flightt-logo">
<span><?= $AirlineName ?></span>
</div>
</div>
<div class="col-md-12">
<div class="pricing">
<h5>Pricing</h5>
</div>
</div>
<!-- <div class="col-md-12">
<div class="outbound">
<h5>Outbound</h5>
</div>
</div> -->
<?php
if ($FlightBookingData) {
foreach ($FlightBookingData as $Data) {
$intNetPublishedFare += $Data['FairRules']['intPublishedFare'];
$Currency = $Data['FairRules']['Currency'];
$ICSourceSysId = $Data['ICSourceSysId'];
echo '<div class="col-md-12"><div class="outbound"><h5>' . $Data['SourceAirportCode'] . ' - ' . $Data['DestAirportCode'] . '</h5></div></div>';
// if ($ICSourceSysId == 7) {
// $Data['FairRules'] = $Data['NewPrice'];
// }
// $CurrencyRate = $Data['FairRules']['CurrencyRate'];
if ($Data['FairRules']['FareBreakdown']) {
foreach ($Data['FairRules']['FareBreakdown'] as $key => $value) {
if ($key == 0) {
//echo '<tr><td colspan="3">' . $Data['SourceAirportCode'] . ' - ' . $Data['DestAirportCode'] . '</td></tr>';
}
$TDS = $value['TDS']; //Management Fee
$MF = $value['MF']; //Management Fee
$YQ = $value['YQ']; //Fuel Surcharge
$AGST = $value['AGST']; //Airline GST Component
$MFT = $value['MFT']; //Management Fee Tax
$OT = $value['OT']; //Other Charges
$MU = $value['MU']; //Markup
$YR = $value['YR']; //Carrier Misc Fee
$other = $MF + $YQ + $AGST + $MFT + $OT + $YR;
//echo '<pre>';print_r($value);echo '</pre>';
$Tax = $value['Tax'];
$PBaseFare = $value['BaseFare'];
$FixedMarkUp = $value['FixedMarkUp'];
$GSTOnMarkUp = $value['GSTOnMarkUp'];
$intTotalGST = $value['intTotalGST'];
$IntCommission = $value['IntCommission'];
$CommissionEarned = $value['CommissionEarned'];
$apiMarkup = $value['apiMarkup'];
$paxPublishedFare = ($PBaseFare);
$PassengerType = $value['PassengerType'];
$PassengerCount = $value['PassengerCount'];
$CommisionPass = $value['CommisionPass'];
$ServiceFee = $value['ServiceFee'];
$BaseFare = ($value['BaseFare'] / $PassengerCount);
$TaxesFees = ($other + $intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
if ($ICSourceSysId == 3) {
$TaxesFees = ($other + $intTotalGST + $FixedMarkUp + $apiMarkup + $ServiceFee + $TDS - $CommisionPass);
}
$NetCommEarned = ($IntCommission);
// $TotalTaxsandFees += ($MF + $YQ + $AGST + $MFT + $OT + $MU + $YR + $FixedMarkUp + $GSTOnMarkUp);
//$TotalTaxsandFees = ($intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
if ($PassengerType == 1) {
$paxType = 'Adult';
} elseif ($PassengerType == 2) {
$paxType = 'Child';
} elseif ($PassengerType == 3) {
$paxType = 'Infant';
}
?>
<div class="col-md-12">
<div class="bill">
<strong>
<?= $paxType ?> x <?= $PassengerCount ?>
</strong>
<p><span>Basic fare:</span><span class="float-right"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($BaseFare * $CurrencyRate)) ?></span></p>
<p><span>Tax:</span><span class="float-right"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($Tax * $CurrencyRate)) ?></span></p>
</div>
</div>
<?php
}
}
}
}
?>
<div class="col-md-12">
<div class="bill">
<p><span>Service Fee:</span><span class="float-right"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($TotalServiceFees) ?></span></p>
<?php if ($MealFare > 0) { ?>
<p><span>Meal Charges: </span><span class="float-right"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($MealFare) ?></span></p>
<?php } ?>
<?php if ($BaggFare > 0) { ?>
<p><span>Baggage Charges: </span><span class="float-right"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($BaggFare) ?></span></p>
<?php } ?>
<?php if ($SeatPrice > 0) { ?>
<p><span>Seat Charges: </span><span class="float-right"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($SeatPrice) ?></span></p>
<?php } ?>
<?php if ($TotalcouponVal > 0) { ?>
<p><span>Coupon: <a href="javascript:void(0)" id="removecoupon" class="couponclose txt-decoration-none" onclick="removeCoupon()"> <span class="txt-red">X</span> </a></span><span class="float-right" style="color: green;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia($TotalcouponVal) ?></span></p>
<?php } ?>
<p><strong>Total:</strong><strong class="float-right"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice - $TotalcouponVal) * $CurrencyRate)) ?></strong></p>
</div>
</div>
<div class="col-md-12">
<div class="charged">
<p><strong>You will be charged<br> a total of</strong> <span><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice - $TotalcouponVal) * $CurrencyRate)) ?></span></p>
</div>
</div>
</div>
<?php } else { ?>
<div>
<ul>
<li> Base Fare <img id="BaseFarePOPBreackUp" src="<?= $baseUrl ?>public/flight/images/grey_info.svg" style="float:none;" /><span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TotalBaseFare * $CurrencyRate)) ?></span></li>
<li> Taxes and fees <img id="FeeSurchargeBreakUp" src="<?= $baseUrl ?>public/flight/images/grey_info.svg" style="float:none;" /><span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TotalTaxsandFees * $CurrencyRate)) ?></span></li>
<?php if ($MealFare > 0) { ?>
<li> Meal Charges <span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($MealFare * $CurrencyRate)) ?></span></li>
<?php } ?>
<?php if ($BaggFare > 0) { ?>
<li> Baggage Charges <span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($BaggFare * $CurrencyRate)) ?></span></li>
<?php } ?>
<?php if ($SeatPrice > 0) { ?>
<li> Seat Charges <span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($SeatPrice * $CurrencyRate)) ?></span></li>
<?php } ?>
<!-- <li>
<div class="row">
<div class="col-sm-9">
<input type="text" class="form-control" id="couponcode" name="coupon" placeholder="Discount Coupon Code" value="<?php if ($TotalcouponVal > 0) {
echo $couponName;
} ?>" <?php if ($TotalcouponVal > 0) {
echo 'readonly';
} ?>>
</div>
<div class="col-sm-3">
<button type="button" class="btn continue_btn" id="coupon" onclick="couponApply()">
<?php if ($TotalcouponVal > 0) {
echo 'Applied';
} else {
echo 'Apply';
} ?>
</button>
</div>
</div>
</li> -->
<li> <span class="you_pay">Total <span class="price_fair_total"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice) * $CurrencyRate)) ?></span>
<span class="conversation_box"> </span>
</li>
<?php if ($TotalcouponVal > 0) { ?>
<li>
<div class="row">
<div class="col-sm-6">
Coupon : <a href="javascript:void(0)" id="removecoupon" class="couponclose txt-decoration-none" onclick="removeCoupon()"> <span class="txt-red">X</span> </a>
</div>
<div class="col-sm-6">
<span class="price_fair"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TotalcouponVal * $CurrencyRate)) ?> </span>
</div>
</div>
</li>
<?php } ?>
<li> <span class="you_pay">You Pay <span class="price_fair_total price_fair_"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice - $TotalcouponVal) * $CurrencyRate)) ?></span>
<span class="conversation_box"> </span>
</li>
</ul>
</div>
<?php } ?>
<style>
.ToolTips table tr td {
padding: 3px 6px;
}
</style>
<div id="BaseFareBreackUp" class="ToolTips" style="display: none;">
<table style="width: 100%;">
<tr>
<td height="35" class="cancellation_text"><strong>Type</strong></td>
<td height="35" class="cancellation_text"><strong>Fare</strong></td>
<td height="35" class="cancellation_text"><strong>Total</strong></td>
</tr>
<?php
$TotalBaseFare = 0;
$TotalTaxsandFees = 0;
$Total_AGST = 0;
$Total_MF = 0;
$Total_YQ = 0;
$Total_MFT = 0;
$Total_OT = 0;
$Total_MU = 0;
$Total_YR = 0;
$Total_FixedMarkUp = 0;
$Total_GSTOnMarkUp = 0;
$Total_CommEarned = 0;
$airlineTaxesfee = 0;
if ($FlightBookingData) {
foreach ($FlightBookingData as $Data) {
$intNetPublishedFare += $Data['FairRules']['intPublishedFare'];
$Currency = $Data['FairRules']['Currency'];
$ICSourceSysId = $Data['ICSourceSysId'];
// if ($ICSourceSysId == 7) {
// $Data['FairRules'] = $Data['NewPrice'];
// }
// $CurrencyRate = $Data['FairRules']['CurrencyRate'];
if ($Data['FairRules']['FareBreakdown']) {
foreach ($Data['FairRules']['FareBreakdown'] as $key => $value) {
if ($key == 0) {
echo '<tr><td colspan="3">' . $Data['SourceAirportCode'] . ' - ' . $Data['DestAirportCode'] . '</td></tr>';
}
$TDS = $value['TDS']; //Management Fee
$MF = isset($value['MF']) ? $value['MF'] : $value['TaxBR']['MF']; //Management Fee
$YQ = isset($value['YQ']) ? $value['YQ'] : $value['TaxBR']['YQ']; //Fuel Surcharge
$AGST = isset($value['AGST']) ? $value['AGST'] : $value['TaxBR']['AGST']; //Airline GST Component
$MFT = isset($value['MFT']) ? $value['MFT'] : $value['TaxBR']['MFT']; //Management Fee Tax
$OT = isset($value['OT']) ? $value['OT'] : $value['TaxBR']['OT']; //Other Charges
$MU = isset($value['MU']) ? $value['MU'] : $value['TaxBR']['MU']; //Markup
$YR = isset($value['YR']) ? $value['YR'] : $value['TaxBR']['YR']; //Carrier Misc Fee
$other = $MF + $YQ + $AGST + $MFT + $OT + $YR;
//echo '<pre>';print_r($value);echo '</pre>';
$PBaseFare = $value['BaseFare'];
$FixedMarkUp = $value['FixedMarkUp'];
$GSTOnMarkUp = $value['GSTOnMarkUp'];
$intTotalGST = $value['intTotalGST'];
$IntCommission = $value['IntCommission'];
$CommissionEarned = $value['CommissionEarned'];
$Tax = $value['Tax'];
$TDSEarn = $value['TDSEarn'];
$apiMarkup = $value['apiMarkup'];
$paxPublishedFare = ($PBaseFare);
$PassengerType = $value['PassengerType'];
$PassengerCount = $value['PassengerCount'];
$CommisionPass = $value['CommisionPass'];
$ServiceFee = $value['ServiceFee'];
$BaseFare = ($value['BaseFare'] / $PassengerCount);
$TaxesFees = ($other + $intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
$Total_AGST += $AGST;
$Total_MF += $MF;
$Total_YQ += $YQ;
$Total_MFT += $MFT;
$Total_OT += $OT + $ServiceFee;
$Total_MU += $MU;
$Total_YR += $YR;
$NetCommEarned = ($IntCommission);
$AdditionalTxnFeePub += $value['AdditionalTxnFeePub'];
$TotalBaseFare += $paxPublishedFare;
// $TotalTaxsandFees += ($MF + $YQ + $AGST + $MFT + $OT + $MU + $YR + $FixedMarkUp + $GSTOnMarkUp);
if ($ICSourceSysId == 3 || $ICSourceSysId == 7 || $ICSourceSysId == 11 || $ICSourceSysId == 17) {
$CommissionEarnedsdfsd += 0;
$Total_FixedMarkUp += $FixedMarkUp;
$Total_GSTOnMarkUp += $GSTOnMarkUp;
$airlineTaxesfee += ($Tax + $TDSEarn + $CommissionEarned);
} else {
$airlineTaxesfee += ($FixedMarkUp + $apiMarkup + $intTotalGST + $other + $NetCommEarned - $CommissionEarned);
$CommissionEarnedsdfsd += $CommissionEarned;
$Total_CommEarned += $IntCommission;
$Total_FixedMarkUp += $FixedMarkUp + $apiMarkup;
$Total_GSTOnMarkUp += $intTotalGST;
}
//$TotalTaxsandFees = ($intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
if ($PassengerType == 1) {
$paxType = 'Adult';
} elseif ($PassengerType == 2) {
$paxType = 'Child';
} elseif ($PassengerType == 3) {
$paxType = 'Infant';
}
?>
<tr>
<td class="cancellation_text2"><?= $paxType ?></td>
<td class="cancellation_text2"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($BaseFare * $CurrencyRate)) ?> x <?= $PassengerCount ?></td>
<td class="cancellation_text2"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia((($PBaseFare) * $CurrencyRate)) ?></td>
</tr>
<?php
}
}
}
}
?>
<tr>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;">Total Amount</td>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TotalBaseFare * $CurrencyRate)) ?></td>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare) * $CurrencyRate)) ?></td>
</tr>
</table>
</div>
<div id="FeeSurcharge" class="ToolTips" style="display: none;">
<table style="width: 100%;">
<tr>
<td height="35" class="cancellation_text"><strong>Type</strong></td>
<td height="35" class="cancellation_text"><strong>Fare</strong></td>
</tr>
<tr>
<td class="cancellation_text2">Airline Taxes & Fee</td>
<td class="cancellation_text2"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($airlineTaxesfee * $CurrencyRate)) ?></td>
</tr>
<!-- <tr>
<td class="cancellation_text">Management Fee</td>
<td class="cancellation_text"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($Total_MF * $CurrencyRate)) ?></td>
</tr> -->
<!-- <tr>
<td class="cancellation_text">Fuel Surcharge</td>
<td class="cancellation_text"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($Total_YQ * $CurrencyRate)) ?></td>
</tr>
<tr>
<td class="cancellation_text">Other Taxes</td>
<td class="cancellation_text"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(((($Total_MF + $Total_MFT + $Total_OT + $Total_YR) + $Total_CommEarned - $CommissionEarnedsdfsd) * $CurrencyRate)) ?></td>
</tr> -->
<tr>
<td class="cancellation_text">Service Fee</td>
<td class="cancellation_text"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($Total_FixedMarkUp * $CurrencyRate)) ?></td>
</tr>
<tr>
<td class="cancellation_text">GST</td>
<td class="cancellation_text"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($Total_GSTOnMarkUp * $CurrencyRate)) ?></td>
</tr>
<tr>
<td class="cancellation_text" style="font-size: 12px; font-weight:bold;">Total</td>
<td class="cancellation_text" style="font-size: 12px; font-weight:bold;">
<?= $CurrencyTitle ?>
<!-- $TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice -->
<?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia((($airlineTaxesfee + $Total_FixedMarkUp + $Total_GSTOnMarkUp - $CommissionEarnedsdfsd) * $CurrencyRate)) ?>
</td>
</tr>
</table>
</div>
<div id="FareBreakUpMobileDiv" class="ToolTips" style="display: none;">
<table style="width: 100%;">
<tr>
<td height="35" class="cancellation_text"><strong>Type</strong></td>
<td height="35" class="cancellation_text"><strong>Fare</strong></td>
<td height="35" class="cancellation_text"><strong>Taxes & Fee</strong></td>
<td height="35" class="cancellation_text"><strong>Total</strong></td>
</tr>
<?php
$TotalBaseFare = 0;
$TotalTaxsandFees = 0;
$Total_AGST = 0;
$Total_MF = 0;
$Total_YQ = 0;
$Total_MFT = 0;
$Total_OT = 0;
$Total_MU = 0;
$Total_YR = 0;
$Total_FixedMarkUp = 0;
$Total_GSTOnMarkUp = 0;
if ($FlightBookingData) {
foreach ($FlightBookingData as $Data) {
$intNetPublishedFare += $Data['FairRules']['intPublishedFare'];
$Currency = $Data['FairRules']['Currency'];
$ICSourceSysId = $Data['ICSourceSysId'];
//$CurrencyRate = $Data['FairRules']['CurrencyRate'];
// if ($ICSourceSysId == 7) {
// $Data['FairRules'] = $Data['NewPrice'];
// }
if ($Data['FairRules']['FareBreakdown']) {
foreach ($Data['FairRules']['FareBreakdown'] as $key => $value) {
if ($key == 0) {
echo '<tr><td colspan="3">' . $Data['SourceAirportCode'] . ' - ' . $Data['DestAirportCode'] . '</td></tr>';
}
//echo '<pre>';print_r($value);echo '</pre>';
$MF = $value['MF']; //Management Fee
$YQ = $value['YQ']; //Fuel Surcharge
$AGST = $value['AGST']; //Airline GST Component
$MFT = $value['MFT']; //Management Fee Tax
$OT = $value['OT']; //Other Charges
$MU = $value['MU']; //Markup
$YR = $value['YR']; //Carrier Misc Fee
$other = $MF + $YQ + $AGST + $MFT + $OT + $YR;
$FixedMarkUp = $value['FixedMarkUp'];
$GSTOnMarkUp = $value['GSTOnMarkUp'];
$intTotalGST = $value['intTotalGST'];
$CommEarned = $value['CommEarned'];
$apiMarkup = $value['apiMarkup'];
$IntCommission = $value['IntCommission'];
$PBaseFare = ($value['BaseFare']);
$paxPublishedFare = ($PBaseFare);
$PassengerType = $value['PassengerType'];
$PassengerCount = $value['PassengerCount'];
$ServiceFee = $value['ServiceFee'];
$CommissionEarned = $value['CommissionEarned'];
$TDSEarn = $value['TDSEarn'];
$Tax = $value['Tax'];
//$TaxesFees = ($MF + $YQ + $AGST + $MFT + $OT + $MU + $YR + $FixedMarkUp + $GSTOnMarkUp);
//$TaxesFees = ($intTotalGST + $CommEarned + $other);
if ($ICSourceSysId == 3 || $ICSourceSysId == 7) {
$TaxesFees = ($Tax + $TDSEarn + $CommissionEarned);
} else {
$TaxesFees = ($other + $intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission + $ServiceFee - $CommEarned);
}
$Total_FixedMarkUp += $FixedMarkUp;
$Total_GSTOnMarkUp += $GSTOnMarkUp;
$AdditionalTxnFeePub += $value['AdditionalTxnFeePub'];
$TotalBaseFare += ($PBaseFare);
$TotalTaxsandFees += ($TaxesFees);
if ($PassengerType == 1) {
$paxType = 'Adult';
} elseif ($PassengerType == 2) {
$paxType = 'Child';
} elseif ($PassengerType == 3) {
$paxType = 'Infant';
}
?>
<tr>
<td class="cancellation_text2"><?= $paxType ?> x <?= $PassengerCount ?></td>
<td class="cancellation_text2"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($PBaseFare * $CurrencyRate)) ?></td>
<td class="cancellation_text2"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TaxesFees * $CurrencyRate)) ?></td>
<td class="cancellation_text2"><?= $Currency ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia((($PBaseFare + $TaxesFees) * $CurrencyRate)) ?></td>
</tr>
<?php
}
}
}
}
?>
<?php if ($MealFare > 0) { ?>
<tr>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;">Meal</td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"><?= $this->CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($MealFare * $CurrencyRate)) ?></td>
</tr>
<?php } ?>
<?php if ($BaggFare > 0) { ?>
<tr>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;">Baggage</td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"><?= $this->CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($BaggFare * $CurrencyRate)) ?></td>
</tr>
<?php } ?>
<?php if ($SeatPrice > 0) {
?>
<tr>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;">Seat</td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"></td>
<td height="35" class="cancellation_text2" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($SeatPrice * $CurrencyRate)) ?></td>
</tr>
<?php } ?>
<tr>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;">Total</td>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(($TotalBaseFare * $CurrencyRate)) ?></td>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia((($TotalTaxsandFees) * $CurrencyRate)) ?></td>
<td height="35" class="cancellation_text" style="font-size: 12px; font-weight:bold;"><?= $CurrencyTitle ?> <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->moneyFormatIndia(ceil(($TotalBaseFare + $TotalTaxsandFees + $MealFare + $BaggFare + $SeatPrice) * $CurrencyRate)) ?></td>
</tr>
</table>
</div>