Untitled
unknown
plain_text
3 years ago
9.0 kB
2
Indexable
<head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <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; } .info { color: #857c8e; font-size: 16px; font-family: 'Open Sans', sans-serif; line-height: 5px; } .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: #857c8e; font-size: 14px; font-family: 'Open Sans', sans-serif; } table { table-layout: fixed; border-collapse:collapse!important; text-align: left; } table, tr, td, thead, tfoot, th, tbody{ border:none!important; } tr:nth-child(even) { background-color: #f2f2f2; } td { vertical-align: center; } .line{ border-bottom: 2px solid #e1dfe5; } </style> <%# <div style="padding-top: 35px; background-image: url('https://pic.onlinewebfonts.com/svg/img_364044.png'); background-position: center; background-repeat: no-repeat; background-size: 500px 200px" class="main-background"> %> <div style="padding-top: 35px;" class="main-background"> <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, Heilpraktikerin<br> Praxis für Chinesische Medizin<br> Karlsruher Str. 7a/8, 10711 Berlin<br> rechnung@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 style="position: absolute; top: 300px; left: 110px;"> <%= wicked_pdf_image_tag("https://i.postimg.cc/25Dp4zPk/storno.png", :alt => "Jessica Noll", :size => "702x360") %> </div> <div class="row"> <div class="column"> <p class="titles">Rechnung an:</p> <span class="subtitles"><%= @patient["lastname"]%>, <%= @patient["firstname"] %></span> <br> <span class="subtitles"> <%= @patient["street"] %>, <br> <%= @patient["zip"] %>, <br> <%= @patient["city"] %>, <%= @patient["address"] %> </span> <br> <!-- <span class="subtitles"> <%= @patient["email"] %> </span> --> </div> <div class="column"> <p class="titles">Liquidation</p> <span class="subtitles">Liquidierung: #000-<%= @invoice.id %></span> <br> <span class="subtitles">Datum: <%= @date.strftime("%d/%m/%Y") %></span> <br> <span class="subtitles">Fällig zum: <%= @due_date.strftime("%d/%m/%Y") %></span> </div> </div> <hr> <div class="row"> <p class="titles">Diagnosen:</p> <div class="column"> <p class="info"> <% @diagnosis.each do |diag| %> <p> <%= diag[2] %></p> <% if !diag[3].nil? %> <% diag[3].each do |subdiag|%> <p> <%= subdiag["code"] %>, <%= subdiag["name"] %> </p> <% end %> <% else %> <% end %> <% end%> </p> </div> <div class="column"> <span class="info"> <p>Fur meine diagnostischen und therapeutischen</p> <p>Bemuhühungen erlaube ich mir folgendes zu liquidieren:</p> <p>(Behandelt wurde <%= @patient["firstname"] %> <%= @patient["lastname"]%></p> <p>Liquidation erfolgte nach GebüH bzw. Hufelandverzeichnis)</p> </span> </div> </div> <hr> <br> <br> <table class="table table-borderless table-striped"> <thead> <tr> <th class="titles" style="width: 5%;"> Pos </th> <th class="titles" style="width: 15%;"> Datum </th> <th class="titles" style="width: 20%;"> Ziffer </th> <th class="titles" style="width: 50%;"> Product </th> <th class="titles" style="width: 10%;" style="text-align: right"> Gesamt </th> </tr> </thead> <tbody> <% @citations.each_with_index do |item, index|%> <% item[2].each_with_index do |subitem, subindex| %> <% if subitem[2].to_f > 0 %> <tr> <th class="subtitles"><%= @iterator = @iterator + 1 %></th> <th class="subtitles"><%= Date.parse(item[1]).strftime('%d/%m/%Y') %></th> <th class="subtitles"><%= subitem[1] %></th> <th class="subtitles"><%= subitem[0] %></th> <th class="subtitles" style="text-align: right"><%= number_to_currency(subitem[2], precision: 2 , unit: "€", separator: ",", delimiter: "") %></th> </tr> <% end %> <% end %> <% end %> <% @products.each_with_index do |product, index|%> <% if product[2].to_f > 0 %> <tr> <th class="subtitles"><%= @iterator = @iterator + 1 %></th> <th class="subtitles"><%= @date.strftime("%d/%m/%Y") %></th> <th class="subtitles"><%= product[1] %></th> <th class="subtitles"><%= product[0] %> </th> <th class="subtitles" style="text-align: right"><%= number_to_currency(product[2], precision: 2 , unit: "€", separator: ",", delimiter: "") %> </th> </tr> <% end %> <% end %> </tbody> </table> <!--<p class="titles" style="margin-left: 5px;"> > Ergänzende Produkte: </p>--> <!-- <table class="table table-borderless table-striped"> <thead> <tr> <th class="titles" style="width: 5%;"></th> <th class="titles" style="width: 15%;"></th> <th class="titles" style="width: 20%;"></th> <th class="titles" style="width: 50%;"></th> <th class="titles" style="width: 10%; text-align: right"></th> </tr> </thead> <tbody> <% @products.each_with_index do |product, index|%> <% if product[2].to_f > 0 %> <tr> <th class="subtitles"><%= @iterator = @iterator + 1 %></th> <th class="subtitles"><%= @date.strftime("%d/%m/%Y") %></th> <th class="subtitles"><%= product[1] %></th> <th class="subtitles"><%= product[0] %> </th> <th class="subtitles" style="text-align: right"><%= number_to_currency(product[2], precision: 2 , unit: "€", separator: ",", delimiter: "") %> </th> </tr> <% end %> <% end %> </tbody> </table> --> <div style="text-align: right"> <p class="titles" style="text-align: right"> Rechnungsbetrag: <%= number_to_currency(@invoice.total, precision: 2 , unit: "€", separator: ",", delimiter: "") %> </p> </div> <div class="rectangle"> <p class="subtitles">- Bitte überweisen Sie den Betrag von <%= number_to_currency(@invoice.total, precision: 2 , unit: "€", separator: ",", delimiter: "") %> unter Angabe der Nr. 00-00<%= @invoice.id %> bis zum <%= @due_date.strftime("%d/%m/%Y") %><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 <br> > BIC BELADEBE XXX </p> </div> </div>
Editor is loading...