Untitled

mail@pastecode.io avatar
unknown
html_ruby
2 years ago
4.9 kB
2
Indexable
Never

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<%= wicked_pdf_stylesheet_link_tag 'application' %>
<%= wicked_pdf_stylesheet_link_tag 'sidebar' %>
<%= wicked_pdf_stylesheet_link_tag 'reminders-sidebar' %>
<%= wicked_pdf_stylesheet_link_tag 'reminders-sidebar' %>
<%= wicked_pdf_stylesheet_link_tag 'treatmentsStyles' %>


<style>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@800&display=swap');

.column {
  float: left;
  width: 50%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.titles{
  color: #564c60;
  font-size: 16px;  
  line-height: 2.5;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
}

.subtitles{
  color: #857c8e;
  font-size: 16px;  
  font-family: 'Open Sans', sans-serif;
}

.rectangle{
  border: solid 2px #e1dfe5;
  border-radius: 6px;
  padding: 26px 32px 17px 51px;
}

.rectangle p {
  color: #e1dfe5;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

table {
  border-collapse:collapse!important;
  text-align: left;
}

table, tr, td, thead, tfoot, th, tbody{
  border:none!important;
}

.line{
  border-bottom: 2px solid #e1dfe5;  
}
</style>

<div>
    <div class="row">

        <div class="column">
            <%= wicked_pdf_image_tag("https://jessica-noll.de/wp-content/uploads/2021/03/Noll-DunklerHintergrund@2x-2048x1342.png", :alt => "Jessica Noll", :size => "200x130") %>
        </div>
        
        <div class="column" style="text-align: right">

            <p class="titles" style="font-size: 25px">Rechnung</p>

            <span class="subtitles">Jessica Noll<br>
            Praxis fürChinesische Medizin/Helipraktiker #10711<br>
            Berlin, Volsnbon Str. 7, Tel. 030-8312344<br>
            office@jessica-noll.de<br>
            www.jessica-noll.de<br>
            Steuer-Nr. 146/111/01148</span>

        </div>
    </div>

    <hr style="border-top: dashed 1px gray; background: none;">

    <div class="row">
        <div class="column">

            <p class="titles">Rechnung an:</p>

            <span class="subtitles"><%= @invoicedPatientName %></span>

            <br>

            <span class="subtitles"><%= @invoicedPatientAddress %></span>

            <br>

            <span class="subtitles"><%= @invoicedPatientEmail %></span>

        </div>
        <div class="column">

            <p class="titles">Liquidierung</p>

            <span class="subtitles">Liquidierung: #000-<%= @invoice.id %></span>

            <br>

            <span class="subtitles">Datum: <%= (@invoice.created_at).to_date %></span>

            <br>

            <span class="subtitles">Fällige Zahlungen: <%= (@invoice.created_at + 14.day).to_date %></span>

        </div>
    </div>
          
    

    

    <hr>

    <p class="titles">Diagnosen:</p>

    <span class="subtitles">

        <% @invoiceDiagnosis.each do |diagnosis| %>
            <br>
            <%= diagnosis %>
            <br>
        <% end%>

    </span>

    <hr>

    <br>

         
    <p class="subtitles">Fur meine diagnostischen und therapeutischen Bemuhühungen erlaube ich mir folgendes zu liquidieren:</p>
    <p class="subtitles">(Behandelt wurde xxxxxxxxxxxx Liquidation erfolgte nach GebüH bzw. Hufelandverzeichnis)</p>
    
    <table class="table table-borderless table-striped">
        <thead>
            <tr>
                <th class="titles">Pos</th>
                <th class="titles">Datum</th>
                <th class="titles">Produkt</th>
                <th class="titles">Anzahl</th>
                <th class="titles">Gesamt</th>
            </tr>
        </thead>
        <tbody>
        <% @invoicedProducts.each_with_index do |product, index|%>
            <tr>
                <th class="subtitles"><%= index %></th>
                <th class="subtitles">20-04-2021</th>
                <th class="subtitles"><%= product[0] %></th>
                <th class="subtitles"><%= product[2] %></th>
                <th class="subtitles"><%= product[1] %>€</th>
            </tr>
        <% end %>
        <tbody>
        <tfoot>
            <tr>
                <th colspan="3"><div class="line"></div></th>
                <th class="titles">Tagesumme</th>
                <th class="subtitles"><%= @invoiceTotal %>€</th>
            </tr>
        </tfoot>
    </table>  

    <br>

    <div class="rectangle">
        <p>- Bitte überweisen Sie den Betrag von 152,2 € unter Angabe der Nr. 21 04-0003167 bis zum 14.05.2021<br>
            Mit freundlichen Grtißen<br>
        Jessica Noll</p>

        <p>- Bitte überweisen Sie auf folgendes Konto: Jessica Noll, Berliner Sparkasse,<br>
            IBAN DE 141005 0000 6010 4232 18 BIC BELADEBE XXX
        </p>
    </div>
</div>