ymlbill 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/ymlbill/templates/default.html.erb +1 -5
- data/lib/ymlbill/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ddb7b6aa95db28f1d3e4ac8ee8e93c43ab40f613bc9dca9272defdd2504c7f9
|
|
4
|
+
data.tar.gz: 96a60f55da4575de87bd615fe8dadad813bdfee2fb6a2f30ba2bf645c12a8a30
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 219d426fdbdae0043ecdcc64b05f2ec5060142c12d0bf441cb9414a08ecc7630031c20da797bd3ccade8ec52458ad4c20c5a233683e23c038fddf4cd80508528
|
|
7
|
+
data.tar.gz: ab8e170b5566fd1354ea9ad19a91b78391b0bdadfbe73570de42c20085b83cf9d6b9446b6576b5c11a03246595c7c26b1db19c529e9a8a17a7797533c226e29a
|
data/README.md
CHANGED
|
@@ -216,6 +216,8 @@ items:
|
|
|
216
216
|
|
|
217
217
|
A default template is included at [`lib/ymlbill/templates/default.html.erb`](lib/ymlbill/templates/default.html.erb).
|
|
218
218
|
|
|
219
|
+
**Note:** With the bundled template, payment information only appears when `document.type` is set to `invoice` in the YAML file. Quotes will not display payment info.
|
|
220
|
+
|
|
219
221
|
Create a custom ERB template to customize the invoice/quote appearance:
|
|
220
222
|
|
|
221
223
|
```erb
|
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
<div class="flex items-start justify-between mb-8">
|
|
22
22
|
<% if data.seller.logo %>
|
|
23
23
|
<img src="<%= logo_path(data.seller.logo) %>" alt="<%= data.seller.name %>" class="h-12 w-auto" />
|
|
24
|
-
<% else %>
|
|
25
|
-
<h1 class="bg-gradient-to-r from-pink-500 via-yellow-400 to-cyan-400 bg-clip-text text-2xl font-black italic tracking-tight text-transparent drop-shadow-md">
|
|
26
|
-
<%= data.seller.name %>
|
|
27
|
-
</h1>
|
|
28
24
|
<% end %>
|
|
29
25
|
<div class="text-right">
|
|
30
26
|
<h2 class="text-3xl font-light uppercase tracking-wide text-neutral-800"><%= data.document.type %></h2>
|
|
@@ -115,7 +111,7 @@
|
|
|
115
111
|
|
|
116
112
|
<!-- Payment Info + Notes side by side -->
|
|
117
113
|
<div class="mb-4 flex gap-4">
|
|
118
|
-
<% if data.seller.payment_info %>
|
|
114
|
+
<% if data.seller.payment_info && data.document.type == 'invoice' %>
|
|
119
115
|
<div class="flex-1 rounded-md bg-white p-3 shadow-sm">
|
|
120
116
|
<h3 class="mb-1 text-xs font-bold uppercase tracking-wide text-neutral-500">Payment Information</h3>
|
|
121
117
|
<p class="whitespace-pre-line text-neutral-600"><%= data.seller.payment_info %></p>
|
data/lib/ymlbill/version.rb
CHANGED