403Webshell
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/b2bzend/application/views/scripts/hotel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/hotel/view-customized-markup-grid.phtml
<?php
if(count($this->arrMarkupList) ==  0 ) { 
    
   
    ?>
    <script type="text/javascript">
        $("#markup-type").removeAttr("readonly");
    </script>
<?php } else { ?>
     <script type="text/javascript">
        $("#markup-type").attr("readonly",true);
    </script>
<?php } ?>    


<form name="frmMarkupGrid" id="frmMarkupGrid" method="POST"> 
    
    <?php if(!empty($this->TransactionCurrencySymbol)) { ?>
    <div style="float:right; font-style: italic;">Your Transaction Currency is <span style="color:red; font-size: 18px;"><?php echo $this->TransactionCurrencySymbol; ?></span></div>
    <?php } ?>
    
    <div class="table-responsivenew">
        
        
        
<table class="table table-bordered no-margin">
        <thead>
        <tr class="alert alert-success">

            <th><strong>Market Place</strong></th>
<!--            <th><strong>Markup Type</strong></th>-->
            <th><strong>Permission</strong></th>
            
            <?php 
            if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { 
                if($this->RateType == 'PF') { ?>
                    <th><strong>Commission %</strong></th>
                <?php } else { ?>
                    <th><strong>Mark up %</strong></th>
                <?php }
            } 
            ?>   
                    
            <th colspan="5" class="text-center"><strong>Offer Price</strong></th>
            <th><strong>T&nbsp;&amp;&nbsp;C</strong></th>
            <th><strong>Action</strong></th>
        </tr>
        
        <tr class="alert alert-info">
          <?php 
          
//          echo $this->MarkupSetting;
//          
//          echo $this->MarkupType;
//          
//          echo $this->RateType;
          
          
          
          if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { ?>    
          <td colspan="3">&nbsp;</td>
          <?php } else { ?>
           <td colspan="2">&nbsp;</td>
          <?php } ?>
           
           
           
                                      
                                      
        <td class="text-center small"><strong>Double occupancy</strong></td>
        <td class="text-center small"><strong>Single occupancy</strong></td>
        <td class="text-center small"><strong>Extra with bed</strong></td>
        <td class="text-center small"><strong>Extra W/O bed</strong></td>
        <td class="text-center small"><strong>Tax (%)</strong></td>


      
        <td colspan="2">&nbsp;</td>
        </tr>
        
        
        <tr class="alert alert-warning">
            <td colspan="<?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) echo '3'; else  echo '2'; ?>" class="text-center"><strong>Rack Rate<i class="fa fa-long-arrow-right"></i></strong></td>
            <?php
            $objCurrency = new Travel_Model_TblCurrency();
            $rate        = $objCurrency->getConvertionRate($this->arrMPInventoryAccomList['CostCurrency'], $this->arrMPInventoryAccomList['TrxCurrency']);
            
            if( ($this->arrMPInventoryAccomList['CostCurrency'] != $this->arrMPInventoryAccomList['TrxCurrency'])  && !empty($rate)) { 
                
                $TrxDOccupCost      = $this->DOccupCost     * $rate  ; 
                $TrxSOccupCost      = $this->SOccupCost     * $rate  ; 
                $TrxExtraBedCost    = $this->ExtraBedCost   * $rate  ; 
                $TrxExtraWOBedCost  = $this->ExtraWOBedCost * $rate  ; 
            ?>
            
<!--            <input type="hidden" id="hidden_doccupancy" name="hidden_doccupancy" value="<?php echo $TrxDOccupCost; ?>">
            <input type="hidden" id="hidden_soccupancy" name="hidden_soccupancy" value="<?php echo $TrxSOccupCost; ?>">
            <input type="hidden" id="hidden_extrabed" name="hidden_extrabed" value="<?php echo $TrxExtraBedCost; ?>">
            <input type="hidden" id="hidden_extra_withoutbed" name="hidden_extra_withoutbed" value="<?php echo $TrxExtraWOBedCost; ?>">-->

            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->DOccupCost;  ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxDOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->SOccupCost; ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxSOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraBedCost; ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxExtraBedCost;  ?></strong>
            </td>
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraWOBedCost; ?></strong><br>
                 <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxExtraWOBedCost;  ?></strong>
            </td>
            <?php }  else { ?>
            
          
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->DOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->SOccupCost; ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraBedCost; ?></strong>
            </td>
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraWOBedCost; ?></strong>
            </td>
                
            <?php }
            ?>
            <td class="text-center small"><strong><?php echo $this->Tax; ?>%</strong></td>
            <td colspan="2">&nbsp;</td>
        </tr>
                                      
        <tr class="alert alert-warning">
            <td colspan="<?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) echo '3'; else  echo '2'; ?>" class="text-center"><strong>Net Rate<i class="fa fa-long-arrow-right"></i></strong></td>
            
            
            <?php
            $objCurrency = new Travel_Model_TblCurrency();
            $rate        = $objCurrency->getConvertionRate($this->arrMPInventoryAccomList['CostCurrency'], $this->arrMPInventoryAccomList['TrxCurrency']);
            
            if( ($this->arrMPInventoryAccomList['CostCurrency'] != $this->arrMPInventoryAccomList['TrxCurrency'])  && !empty($rate)) { 
                
                $TrxNetDOccupCost      = $this->NetDOccupCost     * $rate  ; 
                $TrxNetSOccupCost      = $this->NetSOccupCost     * $rate  ; 
                $TrxNetExtraBedCost    = $this->NetExtraBedCost   * $rate  ; 
                $TrxNetExtraWOBedCost  = $this->NetExtraWOBedCost * $rate  ; 
                
            ?>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetDOccupCost;  ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxNetDOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetSOccupCost; ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxNetSOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetExtraBedCost; ?></strong><br>
                <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxNetExtraBedCost;  ?></strong>
            </td>
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraWOBedCost; ?></strong><br>
                 <strong><?php echo $this->arrMPInventoryAccomList['TrxCurrencySymbol'] .' : '.$TrxNetExtraWOBedCost;  ?></strong>
            </td>
            <?php }  else { 
                
                $TrxNetDOccupCost      = $this->NetDOccupCost ; 
                $TrxNetSOccupCost      = $this->NetSOccupCost  ; 
                $TrxNetExtraBedCost    = $this->NetExtraBedCost  ; 
                $TrxNetExtraWOBedCost  = $this->NetExtraWOBedCost  ; 
                
                
                ?>
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetDOccupCost;  ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetSOccupCost; ?></strong>
            </td>
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->NetExtraBedCost; ?></strong>
            </td>
            
            <td class="text-center small">
                <strong><?php echo $this->arrMPInventoryAccomList['CurrencySymbol'] .' : '.$this->ExtraWOBedCost; ?></strong>
            </td>
                
            <?php }
            ?>
            <td colspan="4">&nbsp;</td>
        </tr>                              
                 
        <input type="hidden" id="hidden_doccupancy" name="hidden_doccupancy" value="<?php echo $TrxNetDOccupCost; ?>">
        <input type="hidden" id="hidden_soccupancy" name="hidden_soccupancy" value="<?php echo $TrxNetSOccupCost; ?>">
        <input type="hidden" id="hidden_extrabed" name="hidden_extrabed" value="<?php echo $TrxNetExtraBedCost; ?>">
        <input type="hidden" id="hidden_extra_withoutbed" name="hidden_extra_withoutbed" value="<?php echo $this->ExtraWOBedCost; ?>">

        </thead>
                                      
                                   
            <tbody>
                
            <?php  
            if($this->MarkupSetting == 'C') { 
            
                $arrMarketPlaces =  Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getMarketPlaces(); 
                $arrPermissions  =  Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions(); 
                
                $objHotel = new Travel_Model_TblHotel();
                $arrAlreadyAddedMarketPlaces = $objHotel->getAlreadyAddedMarketPlaces($this->intLoggedinUserAgencySysId, $this->InvnItemSysId);
                
//                echo "<pre>";
//                print_r($arrAlreadyAddedMarketPlaces);
//                exit;
            ?>    
                
                 <tr>

            <td align="center">
              <?php

              ?>
                <select id="MPType" name="MPType" class="form-control" placeholder="Select" style="width:150px; white-space:nowrap;">
                  <option value="0">Select</option>
                  <?php 
                    if(!empty($arrMarketPlaces) ) {
                        foreach($arrMarketPlaces as $place ) { 
                            if(!in_array( $place['MPType'], $arrAlreadyAddedMarketPlaces)) {
                            ?>
                                <option value="<?php echo $place['MPType']; ?>"><?php echo $place['Title']; ?></option>
                            <?php
                            }
                        }
                    }
                  ?>
                </select>


              </td>   

          <td align="center">
              <select id="permissions" name="permissions" class="form-control" placeholder="Select" style="width:110px;">
                  <option value="">Select</option>

                   <?php while( list($key, $value) = each( $arrPermissions) ) { ?>
                              <option value="<?php echo $key; ?>" <?php if($key == 0) echo "selected"; ?>><?php echo $value; ?></option>
                  <?php } ?>
              </select>
          </td>

           <?php
           if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) {  ?>
          <td><input id="MarkUp" name="MarkUp" type="text" class="form-control whbg ratetxtwidth75 priceonly" maxlength="5" onkeyUp="autofillRates(this)" value=""></td>
            <?php } ?>

        <td align="center"><input id="doccupancy" name="doccupancy" type="text" class="form-control whbg ratetxtwidth75 priceonly"  value="" <?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { echo 'readonly'; } ?>></td>
        <td align="center"><input id="soccupancy" name="soccupancy" type="text" class="form-control whbg ratetxtwidth75 priceonly"  value="" <?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { echo 'readonly'; } ?>></td>
        <td align="center"><input id="extra-bed" name="extra-bed" type="text" class="form-control whbg ratetxtwidth75 priceonly"  value="" <?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { echo 'readonly'; } ?>></td>
        <td align="center"><input id="extra-without-bed" name="extra-without-bed" type="text" class="form-control whbg ratetxtwidth75 priceonly"  value="" <?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { echo 'readonly'; } ?>></td>
        <td align="center"><input id="tax" name="tax" type="text" class="form-control whbg ratetxtwidth75 priceonly"  value=""></td>
        <td style="position:relative;"><a href="javascript:void(0);" class="edittxt" onclick="viewTermsAndConditions('new','')" >Edit</a>
              <div class="editBoxContainer" style="display:none;">
              <div class="form-group form-group1">
              <textarea name="Details" id="Details" cols="45" rows="2" class="form-control whbg"></textarea>
              </div>
              <div class="col-md-12 no-padding text-right">
                  <a href="javascript:void(0);" class="btn btn-success btn-round btn-sm submittxt" onclick="saveTermsAndConditions()">Submit</a>
                  <a href="javascript:void(0);" class="btn btn-default btn-round btn-sm canceltxt" onclick="cancelTermsAndConditions()">Cancel</a>
              </div>
          </div>
        </td>
        <td>
            <input type="hidden" id="key" name="key" value="<?php echo $this->key; ?>">
        <a class="btn btn-success btn-sm" href="javascript:void(0);" onclick="addMarkup('<?php echo $this->InvnItemSysId; ?>','<?php echo $this->MarkupType ?>', '<?php echo $this->MarkupSetting ?>')"><i class="fa fa-fw fa-arrows"></i></a></td>
        </tr>
        
            <?php } ?>
        
            <?php  
            
            
            $arrPermissions  = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions(); 
            
//            
//             echo "<pre>";
//    print_r($this->arrMarkupList);
//    exit;
//    
    
            if(!empty($this->arrMarkupList)) {
                foreach($this->arrMarkupList as $markups) {
                    $DOccupPrice        = ($TrxNetDOccupCost+$markups['DOccupPrice']);
                    $SOccupPrice        = ($TrxNetSOccupCost+$markups['SOccupPrice']);
                    $ExtraBedPrice      = ($TrxNetExtraBedCost+$markups['ExtraBedPrice']);
                    $ExtraWOBedPrice_    = ($this->ExtraWOBedCost+$markups['ExtraWOBedPrice']);
                ?>

                <tr>
                        <td><?php echo $markups['MPType']; ?></td>                                          
                        <td><?php echo $arrPermissions[$markups['IsActive']] ?></td>
                        <?php if($this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) {  ?>
                        <td class="text-center"><?php echo $markups['MarkUp']; ?> </td>
                        <td class="text-center"><?php echo !empty($markups['DOccupPrice']) && $markups['DOccupPrice'] != '.00' ? $markups['DOccupPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($markups['SOccupPrice']) && $markups['SOccupPrice'] != '.00' ? $markups['SOccupPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($markups['ExtraBedPrice']) && $markups['ExtraBedPrice'] != '.00' ? $markups['ExtraBedPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($markups['ExtraWOBedPrice']) && $markups['ExtraWOBedPrice'] != '.00' ? $markups['ExtraWOBedPrice'] : '0'; ?></td>
                        <?php }else{ ?>
                        <td class="text-center"><?php echo !empty($DOccupPrice)?number_format($DOccupPrice,2):'0'; ?><br> Markup: <?php echo !empty($markups['DOccupPrice']) && $markups['DOccupPrice'] != '.00' ? $markups['DOccupPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($SOccupPrice)?number_format($SOccupPrice,2):'0'; ?><br> Markup: <?php echo !empty($markups['SOccupPrice']) && $markups['SOccupPrice'] != '.00' ? $markups['SOccupPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($ExtraBedPrice)?number_format($ExtraBedPrice,2):'0'; ?><br> Markup: <?php echo !empty($markups['ExtraBedPrice']) && $markups['ExtraBedPrice'] != '.00' ? $markups['ExtraBedPrice'] : '0'; ?></td>
                        <td class="text-center"><?php echo !empty($ExtraWOBedPrice_)?number_format($ExtraWOBedPrice_,2):'0'; ?> <br> Markup: <?php echo !empty($markups['ExtraWOBedPrice']) && $markups['ExtraWOBedPrice'] != '.00' ? $markups['ExtraWOBedPrice'] : '0'; ?></td>
                        <?php } ?>
                        <td class="text-center"><?php echo !empty($markups['Tax']) && $markups['Tax'] != '.00' ? $markups['Tax'].'%' : '0' ; ?> </td>
                        <td style="position:relative;">
                            <a href="javascript:void(0);" class="viewtxt" onclick="viewTermsAndConditions('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id']; ?>')">View</a>
                              <div class="viewBoxContainer" id="viewBoxContainer-<?php echo $markups['InvnItemSysId']; ?>-<?php echo $markups['MPType_id']; ?>" style="display:none;">
                              <div class="form-group form-group1 viewBoxContainercontent">
                              <?php echo $markups['Details']; ?>
                              </div>
                              <div class="col-md-12 no-padding text-right">
                                  <a href="javascript:void(0);" class="btn btn-default btn-round btn-sm closetxt" onclick="closeTermsAndConditions('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id']; ?>')">Close</a>
                              </div>
                          </div>
                        </td>
                        <td>
                            <?php if($this->MarkupSetting == 'C') { ?>
                                 <a href="javascript:void(0);" class="btn ls-red-btn btn-sm" onclick="deleteMarkupSetting('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id'] ?>', '<?php echo $this->MarkupType ?>','<?php echo $this->MarkupSetting ?>','<?php echo $this->arrMPInventoryAccomList['XRefAccoSysId'] ; ?>')"><i class="fa fa-trash-o"></i></a>
                            <?php } else echo "&nbsp;"; ?>     
                        </td>
                    </tr>
                     <?php } 
                }  else { ?>
                    <tr><td colspan="10" class="red">No record found.</td>
                       
                <?php } ?>  
                        
                        <tr><td colspan="10" align="right"><a href="/hotel" class="btn btn-warning btn-sm"> Finish & Manage Inventory</a></td></tr>
        </tbody>
                                      
                                      
</table>
    </div>
</form>

<script type="text/javascript" src="<?php echo $this->baseUrl('public/js/functions.js'); ?>"></script>
 
     
<!-- MiniColors Library Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/jquery.minicolors.min.js'); ?>"></script>

<script type="text/javascript">
    function autofillRates(obj) {
        var markUpPercentage = $(obj).val();

        var RateType     = '<?php echo $this->RateType; ?>';
        var ExtraPaddingIsInPercentage = '<?php echo $this->ExtraPaddingIsInPercentage; ?>';
        var ExtraPadding = '<?php echo $this->ExtraPadding; ?>';

        var doccupancy          = $("#hidden_doccupancy").val();
        var soccupancy          = $("#hidden_soccupancy").val();
        var extrabed            = $("#hidden_extrabed").val();
        var extra_withoutbed    = $("#hidden_extra_withoutbed").val();

        if(parseFloat(markUpPercentage) > 0 && !isEmpty(markUpPercentage)) {
            
            
            if(RateType == 'NR') { 
                doccupancy          = parseFloat( parseFloat(doccupancy) + parseFloat(getPercentage(markUpPercentage, doccupancy)) ) ;
                soccupancy          = parseFloat( parseFloat(soccupancy) + parseFloat(getPercentage(markUpPercentage, soccupancy)) );
                extrabed            = parseFloat( parseFloat(extrabed)   + parseFloat(getPercentage(markUpPercentage, extrabed))) ;
                extra_withoutbed    = parseFloat( parseFloat(extra_withoutbed) + parseFloat(getPercentage(markUpPercentage, extra_withoutbed)) );
                
                if(!isEmpty(ExtraPadding)) {
                    if(ExtraPaddingIsInPercentage) {
                        doccupancy          = parseFloat( parseFloat(doccupancy) + parseFloat(getPercentage(ExtraPadding, doccupancy)) ) ;
                        soccupancy          = parseFloat( parseFloat(soccupancy) + parseFloat(getPercentage(ExtraPadding, soccupancy)) );
                        extrabed            = parseFloat( parseFloat(extrabed)   + parseFloat(getPercentage(ExtraPadding, extrabed))) ;
                        extra_withoutbed    = parseFloat( parseFloat(extra_withoutbed) + parseFloat(getPercentage(ExtraPadding, extra_withoutbed)) );
                    } else { 
                        doccupancy          = parseFloat( parseFloat(doccupancy) + parseFloat(ExtraPadding) ) ;
                        soccupancy          = parseFloat( parseFloat(soccupancy) + parseFloat(ExtraPadding) ) ;
                        extrabed            = parseFloat( parseFloat(extrabed)   + parseFloat(ExtraPadding) ) ;
                        extra_withoutbed    = parseFloat( parseFloat(extra_withoutbed) + parseFloat(ExtraPadding) ) ;
                    }
                }
            } else {
                doccupancy          = parseFloat( parseFloat(doccupancy) + parseFloat(getPercentage(markUpPercentage, doccupancy)) ) ;
                soccupancy          = parseFloat( parseFloat(soccupancy) + parseFloat(getPercentage(markUpPercentage, soccupancy)) );
                extrabed            = parseFloat( parseFloat(extrabed)   + parseFloat(getPercentage(markUpPercentage, extrabed))) ;
                extra_withoutbed    = parseFloat( parseFloat(extra_withoutbed) + parseFloat(getPercentage(markUpPercentage, extra_withoutbed)) );
            }
            
            if(doccupancy == 'NaN') doccupancy = '';
            if(soccupancy == 'NaN') soccupancy = '';
            if(extrabed == 'NaN') extrabed = '';
            if(extra_withoutbed == 'NaN') extra_withoutbed = '';
            
                
            $("#doccupancy").val(doccupancy);
            $("#soccupancy").val(soccupancy);
            $("#extra-bed").val(extrabed);
            $("#extra-without-bed").val(extra_withoutbed);
        
        }

    }
    
    function addMarkup(InvnItemSysId, MarkupType, MarkupSetting) {
    
        var data = $('#frmMarkupGrid').serialize();
        var popup_key = $("#key").val();
        
        $.ajax({
            url  : '/hotel/add-markup',
            data : data + "&InvnItemSysId="+InvnItemSysId+"&MarkupType=" + MarkupType+"&MarkupSetting=" + MarkupSetting,
            type : 'POST',
            dataType : 'json',
            error : function() {

            },
            beforeSend : function() {
               $("#markup-table-loader").css("display","inline-block");
            },
            success : function(response) {
                $("#markup-table-loader").css("display","none");
                if(response.success) {
                      viewMarkupSettingGrid(InvnItemSysId, MarkupType, MarkupSetting);
                      if(popup_key=="bulk")
                      {
                        viewHotelInventoryTable();
                      } else {
                        showRoomRatesGrid('<?php echo $this->arrMPInventoryAccomList['XRefAccoSysId'] ; ?>');  
                      }
                }else {
                alert(response.msg);
                return false;
            }
        }
    });
    return true;
}

    
    
</script>


Youez - 2016 - github.com/yon3zu
LinuXploit