invoice 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,10 +2,24 @@
2
2
 
3
3
  Print out simple invoice tailored for Croatia. You can setup your company data along with your customers with some easy settings.
4
4
 
5
- This is called to generate your invoice in .pdf
6
- ```ruby
7
- CroatianPDFInvoice.generate(SETTINGS, INVOICE, '~/Desktop')
5
+ After that you need to setup invoice data and render the invoice
6
+ ```
7
+ INVOICE = {
8
+ no: '116/2012',
9
+ place_and_date: 'Zagreb, 25.11.2012.godine',
10
+ reference_number: "16-2012",
11
+ customer: 'dinkovac',
12
+ bank_number: '2484008-1105211111',
13
+ items: [
14
+ { description: 'EM-12/2011 Izrada izvješća održavanja iz aplikacije MIJAU', amount: 5_432.22 },
15
+ { description: 'EM-012/2011 Održavanje aplikacije MIJAU ', amount: 100.00 }
16
+ ]
17
+ }
18
+
19
+ #rendering
20
+ CroatianPDFInvoice.generate(SETTINGS, INVOICE, '~/Desktop') #settings example given below
8
21
  ```
22
+ ![Example invoice](https://github.com/drKreso/invoice/raw/master/images/example_invoice.png)
9
23
 
10
24
  ## Installation
11
25
 
Binary file
@@ -1,3 +1,3 @@
1
1
  module Invoice
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -31,6 +31,7 @@ files:
31
31
  - fonts/verdanab.ttf
32
32
  - fonts/verdanai.ttf
33
33
  - fonts/verdanaz.ttf
34
+ - images/example_invoice.png
34
35
  - invoice.gemspec
35
36
  - lib/invoice.rb
36
37
  - lib/invoice/croatian_pdf_invoice.rb