-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
member receipt with notes and things
- Loading branch information
Showing
9 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,6 @@ | |
margin: auto; | ||
border: 1px solid #ccc; | ||
} | ||
.header { | ||
text-align: center; | ||
margin-bottom: 30px; | ||
} | ||
.header h1 { | ||
font-size: 24px; | ||
margin-bottom: 5px; | ||
} | ||
.header p { | ||
margin: 5px 0; | ||
} | ||
.content { | ||
margin-bottom: 20px; | ||
} | ||
|
@@ -41,18 +30,21 @@ | |
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="header"> | ||
<h1>JAKU KAI</h1> | ||
<p>ASSOCIAZIONE SPORTIVA DILETTANTISTICA CULTURALE</p> | ||
<p>Cod. Fisc. 95084300102</p> | ||
<p>Via Fieschi 20° canc., 16128 GENOVA</p> | ||
<p>Tel. 010 9845366</p> | ||
<p>e-mail: [email protected] | www.jakukai.it</p> | ||
</div> | ||
<table style="width: 100%;"> | ||
<tr> | ||
<td style="width: 200px; text-align: left;"> | ||
<% if club.errors[:picture].blank? && club.picture.present? %> | ||
<img src="data:<%= club.picture_blob.content_type %>;base64,<%= Base64.encode64(club.picture.download) %>" style="max-width: 200px;"> | ||
<% end %> | ||
</td> | ||
<td style="text-align: center; font-size: 2em; font-weight: bold;">RICEVUTA NOTA SPESE</td> | ||
<td style="width: 200px; text-align: right;"><%= club.full_name_and_address_for_receipt %></td> | ||
</tr> | ||
</table> | ||
<hr/> | ||
<div class="content"> | ||
<p><strong>RICEVUTA n.°</strong></p> | ||
<p><strong>Genova</strong></p> | ||
<p><strong>RICEVUTA n.°<%= payment.number %></strong></p> | ||
<p><strong><%= club.municipality %></strong></p> | ||
<p>Riceviamo da: <strong><%= member.full_name %></strong></p> | ||
<p>CF: <strong><%= member.tax_code %></strong></p> | ||
<p>La somma di: <strong><%= payment.in_eur %></strong></p> | ||
|
@@ -64,8 +56,11 @@ | |
<p><strong>VERSAMENTO ESEGUITO DA:</strong> <%= member.full_name %></p> | ||
<p><strong>CODICE FISCALE:</strong> <%= member.tax_code %></p> | ||
<p><strong>Tipo di Pagamento:</strong> <%= payment.kind %></p> | ||
<p>Nota:</p> | ||
<% if payment.note? %> | ||
<p>Nota:</p> | ||
<p><%= payment.note %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddNoteToPayment < ActiveRecord::Migration[7.2] | ||
def change | ||
add_column :payments, :note, :text | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters