
                          <table border=\"0\" style=\"border-collapse:collapse; margin:0; padding:0; width:738px;\">
    <tbody>
        <tr>
            <td style=\"padding: 0px 5px;\">
                <h4 style=\"width: 100%; border-bottom: 2px solid black\">Счет на оплату: №{fpl_reservation_id} от {fpl_now_date}</h4>
                <table style=\"width: 100%\">
                    <tbody>
                        <tr>
                            <td style=\"vertical-align: top\">
                                <b>Поставщик:</b>
                            </td>
                            <td style=\"padding-right: 5px\">
                                <b>{fpl_partner_name}</b><br>
                                <b>Р/с:</b> {fpl_partner_accountnumber}, {fpl_partner_bankname}, <b>БИК:</b> {fpl_partner_bic}<br>
                                <b>Адрес:</b>{fpl_partner_addrLine1}<br>
                                <b>тел.:</b> {fpl_hotel_phone}, <b>email:</b> {fpl_hotel_email}
                            </td>
                        </tr>
                        <tr>
                            <td style=\"padding-top: 20px\">
                                <b>Получатель:</b>
                            </td>
                            <td style=\"border-bottom: solid 1px black; padding-right: 5px; padding-top: 20px\"> {fpl_guest_lastname} {fpl_guest_firstname} {fpl_guest_middlename}</td>
                        </tr>
                        <tr>
                            <td style=\"padding-top: 20px\">
                                <b>Плательщик:</b>
                            </td>
                            <td style=\"padding-right: 5px; padding-top: 20px\"> он же</td>
                        </tr>
                    </tbody>
                </table>
                <table style=\"border-collapse:collapse; width: 100%\" border=\"1\">
                    <thead>
                        <tr style=\"background-color: #D2D7D3\">
                            <th>№</th>
                            <th>Наименование</th>
                            <th>Ед.</th>
                            <th>К-во</th>
                            <th>Стоимость </th>
                            
                            <th>Сумма </th>
                        </tr>
                    </thead>
                    
                    <tbody>
                        <!--tr><td>{fpl_custom_ServicesList}</td></tr-->
                        <tr>
                            <td>{fpl_counter}</td>
                            <td>{fpl_services_name}</td>
                            <td>{fpl_services_measure}</td>
                            <td>{fpl_services_services_count}</td>
                            <td>{fpl_servicesamount_perunit}</td>
                        
                            <td>{fpl_servicesamount}</td>
                        </tr>
                        <!--tr><td>{/fpl_custom_ServicesList}</td></tr-->
                        <tr>
                            <td colspan=\"5\" style=\"text-align: right\">
                                <b>Итого без НДС:</b>
                            </td>
                            <td>{fpl_custom_ServicesList_amount_before_vat}</td>
                        </tr>
                        <tr>
                            <td colspan=\"5\" style=\"text-align: right\">
                                <b>НДС:</b>
                            </td>
                            <td>{fpl_custom_servicesList_vat_summ}</td>
                        </tr>
                        <tr>
                                <td colspan=\"5\" style=\"text-align: right\">
                                    <b>Всего с НДС:</b>
                                </td>
                                <td>{fpl_custom_ServicesList_amount}</td>
                        </tr>
                        
                    </tbody>
                </table>
                <p><b>Всего наименований </b>{fpl_custom_ServicesList_quantity}, <b>на сумму</b> {fpl_custom_ServicesList_amount}{fpl_caption_currency}<br>{fpl_custom_ServicesList_amount_string}</p>
                <p style=\"margin-top: 20px text-align: center\">Выписал(а) _________________ {fpl_current_user}</p>
            </td>
        </tr>
    </tbody>
</table>
