
                          <style type=\"text/css\">
@page {

  margin: 20pt 20pt;
}
</style>

<table width=\"900px\" align=\"center\" style=\"border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;text-align:center;vertical-align:top; width:900px;\">
    <tbody>
        <tr>
            <td style=\"text-align: right; font-size: 8pt;\">
                Утверждена<br>
                Приказом Министерства финансов<br>
                Российской Федерации<br>
                от 13 декабря 1993 г. N 121<br>
                Форма N 3-Гм         
            </td>
        </tr>
       
    </tbody>
</table>
<p style=\"text-align: center;\">
   <b>{fpl_hotel_name}</b><br>
   РОССИЯ, {fpl_hotel_zip}, {fpl_hotel_state}, {fpl_hotel_city}, {fpl_hotel_address}<br>
   {fpl_hotel_phone}<br>
   {fpl_partner_legal_name}<br>
   ИНН {fpl_partner_DOC_INN}
</p>
<h4 style=\"text-align: center;\">
               СЧЕТ №{fpl_reservation_id} от {fpl_now_date}                  
</h4>

<table width=\"900px\" align=\"center\" style=\"border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;text-align:center;vertical-align:top; width:900px;     margin-bottom: 30px;\">
    <tbody>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Гость:
            </td>
            <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_guest_lastname} {fpl_guest_firstname} {fpl_guest_middlename} 
            </td>
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                &nbsp;
            </td>
            <td width=\"20%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Номер:
            </td>
             <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_room_name}
            </td>
        </tr>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Страна:
            </td>
            <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_guest_citizenship} 
            </td>
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                &nbsp;
            </td>
            <td width=\"20%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Тип номера:
            </td>
             <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_categories_name_ru}
            </td>
        </tr>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Организация:
            </td>
            <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_customer_company_name} {fpl_customer_company_inn} {fpl_customer_company_kpp} {fpl_customer_company_address}
            </td>
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                &nbsp;
            </td>
            <td width=\"20%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Заезд:
            </td>
             <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_datein} {fpl_check_in_time}
            </td>
        </tr>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Валюта:
            </td>
            <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_caption_currency} 
            </td>
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                &nbsp;
            </td>
            <td width=\"20%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Выезд:
            </td>
             <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_dateout} {fpl_check_out_time}
            </td>
        </tr>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Группа:
            </td>
            <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_groupid} 
            </td>
            <td width=\"10%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                &nbsp;
            </td>
            <td width=\"20%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                Тариф:
            </td>
             <td width=\"25%\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
              {fpl_rate_name}
            </td>
        </tr>
       
    </tbody>
</table>

<table width=\"900px\" align=\"center\" style=\"border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;text-align:center;vertical-align:top; width:900px; font-family: Arial,Helvetica,sans-serif; font-size: 14px; margin-bottom: 50px;\">
    <thead>
        <tr>
            <th colspan=\"3\" style=\"vertical-align: bottom; border-bottom: 2px solid #000; border-top: 2px solid #000; padding: 8px; line-height: 1.54; text-align: left;\">Описание</th>
            <th style=\"vertical-align: bottom; border-bottom: 2px solid #000; border-top: 2px solid #000; padding: 8px; line-height: 1.54; text-align: right;\">Сумма</th>
            <th style=\"vertical-align: bottom; border-bottom: 2px solid #000; border-top: 2px solid #000; padding: 8px; line-height: 1.54; text-align: right;\">Оплата</th>
        </tr>  
    </thead>                                    
    <tbody><!--tr><td>{fpl_folio_events}</td></tr-->
        <tr>
            <td colspan=\"3\" style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: left;\">{fpl_event_name}</td>
            <td style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: right;\">{fpl_event_charge}</td>
            <td style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: right;\">{fpl_event_credit}</td>
        </tr><!--tr><td>{/fpl_folio_events}</td></tr-->
    </tbody>
    <tfoot>
        <tr>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; border-top: 2px solid #000;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; border-top: 2px solid #000;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; border-bottom: 2px solid #000; border-top: 2px solid #000; text-align: left;\"><b>Итого</b></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; border-bottom: 2px solid #000; border-top: 2px solid #000; text-align: right;\"><b>{fpl_total_charges}</b></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; border-bottom: 2px solid #000; border-top: 2px solid #000; text-align: right;\"><b>{fpl_paid_sum}</b></th>
        </tr>
        <tr>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: left;\"><b>Всего оказано услуг на сумму</b></th>
            <th colspan=\"2\" style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: center;\"><b>{fpl_total_charges} руб.</b></th>
        </tr>
        <tr>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: left;\"></th>
            <th colspan=\"2\" style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: center;\"><b>{fpl_is_VAT_included}</b></th>
        </tr>
        <tr>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: left;\"></th>
            <th colspan=\"2\" style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: center;\"><b>Оплачено {fpl_total_credits}</b></th>
        </tr>
        <tr>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top;\"></th>
            <th style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: left;\"></th>
            <th colspan=\"2\" style=\"padding: 8px; line-height: 1.54; vertical-align: top; text-align: center; border-top: 1px solid\"><b>Баланс {fpl_balance} Руб закрыт</b></th>
        </tr>
    </tfoot>
</table>

<table width=\"900px\" align=\"center\" style=\"border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;text-align:center;vertical-align:top; width:900px;\">
    <tbody>
        <tr style=\"padding:0;text-align:left;vertical-align:top\">
            <td width=\"450px\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">
                <table style=\"margin-bottom: 30px;\">
                    <tbody><tr>
                        <td width=\"200px\" height=\"70px;\" style=\"text-align: left; font-family:Arial,Helvetica,sans-serif; font-weight:400;line-height:20px; border-bottom: 2px solid #000; font-size: 12.5px;\">
                                Администратор:
                        </td>
                        <td width=\"250px\">
                            
                        </td>
                    </tr>
                </tbody></table>
            </td>
            <td width=\"450px\" style=\"color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:20px; text-align:left; vertical-align: top;\">&nbsp;
            </td>
        </tr>
    </tbody>
</table>
<h4>Благодарим Вас за визит и будем рады видеть еще раз!</h4>
                        
                        
                        
                        