ymlbill 0.1.2 → 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 -1
- 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
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
<!-- Payment Info + Notes side by side -->
|
|
113
113
|
<div class="mb-4 flex gap-4">
|
|
114
|
-
<% if data.seller.payment_info %>
|
|
114
|
+
<% if data.seller.payment_info && data.document.type == 'invoice' %>
|
|
115
115
|
<div class="flex-1 rounded-md bg-white p-3 shadow-sm">
|
|
116
116
|
<h3 class="mb-1 text-xs font-bold uppercase tracking-wide text-neutral-500">Payment Information</h3>
|
|
117
117
|
<p class="whitespace-pre-line text-neutral-600"><%= data.seller.payment_info %></p>
|
data/lib/ymlbill/version.rb
CHANGED