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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcd02c5487671c5e7c464df2c286528c0f20fdc96480b05b05fc56b5a18c33be
4
- data.tar.gz: 66584bdce3d683fd907d5ff428686eceb27a6df9938e0a5cd1da5b6b5076d99c
3
+ metadata.gz: 5ddb7b6aa95db28f1d3e4ac8ee8e93c43ab40f613bc9dca9272defdd2504c7f9
4
+ data.tar.gz: 96a60f55da4575de87bd615fe8dadad813bdfee2fb6a2f30ba2bf645c12a8a30
5
5
  SHA512:
6
- metadata.gz: 1897dcb3c27bcf3dc96ea8fd625784a7e77914acc93de4ab4f18137f37df750a5dd676ddcc4b7a12d3b11a3bafeecb913911f9b5192bdfa5a38cd4960d438869
7
- data.tar.gz: 5e50033e0dd26053a6a563d51884ffb38e733262d44c35635164998130cbbb1fd99df46b2927ededd1f7f3001a669376c43c320634ef90a0d2518b91e6f6041c
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>
@@ -1,3 +1,3 @@
1
1
  module Ymlbill
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ymlbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hagege