ascii_invoicer 2.5.10 → 2.5.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 695e518f05626d7d49ff52e39a29005057357ab2
4
- data.tar.gz: 8a17c19f7331d0b5ae76babf591ec2d2d975ef50
3
+ metadata.gz: ce360fc0c1e11021821c0a3e6bfad33bd5fda047
4
+ data.tar.gz: 2ea15b30cef7fcb4ffb52692eec3d71bdc80bde9
5
5
  SHA512:
6
- metadata.gz: 6f6a9bf9d506f143fa8d1fa50844575cbda4c1122f608b02c7d6567ce8eabe5db376eae9c5b8fa46cea4890da48595b7913b82877c03d555d1f8d4a8881d0117
7
- data.tar.gz: aaf28dd551e743f293538c9cf450e74b8c792b01a93e543d1ebae784b43a4f0a5b27288c2203812d40a889f54a19244ee8562bfc7441034a4f923344c0d04838
6
+ metadata.gz: 08ef97d95038bfe6d46a87eb63ef80077f804318c1318f994ad72fc1ff703f112ef9be5688f46346e93a50b3d7fc63b3b3c6fd4dad21306629018dfea20a975a
7
+ data.tar.gz: 3ec4c58d0247f531f8db6aa623ce387445f23a2abb174d25674df601d2813ca41aaa6fb2efd48634a443ae3668d857e5d2d34ce4fb66a00b91ee90382aa17a9e
data/bin/ascii CHANGED
@@ -7,7 +7,6 @@ require 'thor'
7
7
  require 'paint'
8
8
  require 'luigi'
9
9
  require 'logger'
10
- require 'bundler/setup'
11
10
  require 'textboxes'
12
11
  require 'hash-graft'
13
12
 
@@ -56,7 +56,7 @@
56
56
  \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
57
57
 
58
58
  \def \sprache{ngerman}
59
- \newcommand{\leadingzero}[1]{\ifnum #1<10 0\the#1\else\the#1\fi}
59
+ \newcommand{\leadingzero}[1]{\ifnum #1<10 0\the#1\else\the#1\fi}
60
60
 
61
61
  \def \telefontex {{ \footnotesize Telefon\/: }}
62
62
  \def \telefaxtext {{ \footnotesize Telefax\/: }}
@@ -75,13 +75,13 @@
75
75
 
76
76
  \def \rechnungsnummer{}
77
77
  \def \rechnung{ R\the\year-\rechnungsnummer }
78
-
78
+
79
79
  \def \angebotltext{\footnotesize{Angebot}}
80
80
  %\de f\angebot{A\the\year\leadingzero{\month}\leadingzero{\day}}
81
81
  \def \angebot{}
82
-
82
+
83
83
  \def \unserzeichentext{\footnotesize{Unser Zeichen}}
84
-
84
+
85
85
  \def \datumtext{\footnotesize{Datum}}
86
86
  \def \datum{\number\day.~\ifcase\month\or Januar\or Februar\or
87
87
  M\"arz\or April\or Mai\or Juni\or Juli\or August\or September\or
@@ -220,34 +220,34 @@
220
220
 
221
221
  %
222
222
  % Veranstaltung - Rechnungsnummer - Angebot - Datum
223
-
223
+
224
224
  \ifx \veranstaltung\empty
225
- \makebox[45.5mm][l]{}
225
+ \makebox[45.5mm][l]{}
226
226
  \else
227
227
  \makebox[45.5mm][l]{\veranstaltungtext}
228
228
  \fi
229
- \if \rechnungsnummer\empty
230
- \makebox[55.0mm][l]{}
231
- \else
232
- \makebox[55.0mm][l]{\rechnungstext}
233
- \fi
234
229
  \if \angebotmanuel\empty
235
- \makebox[20.0mm][r]{}
230
+ \makebox[20.0mm][r]{}
236
231
  \else
237
- \makebox[20.0mm][r]{\angebotltext}
238
- \fi
239
- \makebox[37.0mm][r]{\datumtext} \\ % ZEILENUMBRUCH
240
- \makebox[45.5mm][l]{\veranstaltung}
232
+ \makebox[20.0mm][r]{\angebotltext}
233
+ \fi
241
234
  \if \rechnungsnummer\empty
242
235
  \makebox[55.0mm][l]{}
243
236
  \else
244
- \makebox[55.0mm][l]{\rechnungsnummer}
245
- \fi
237
+ \makebox[55.0mm][l]{\rechnungstext}
238
+ \fi
239
+ \makebox[37.0mm][r]{\datumtext} \\ % ZEILENUMBRUCH
240
+ \makebox[45.5mm][l]{\veranstaltung}
246
241
  \if \angebotmanuel\empty
247
- \makebox[20.0mm][r]{\angebot}
242
+ \makebox[20.0mm][r]{\angebot}
248
243
  \else
249
- \makebox[20.0mm][r]{\angebotmanuel}
250
- \fi
244
+ \makebox[20.0mm][r]{\angebotmanuel}
245
+ \fi
246
+ \if \rechnungsnummer\empty
247
+ \makebox[55.0mm][l]{}
248
+ \else
249
+ \makebox[55.0mm][l]{\rechnungsnummer}
250
+ \fi
251
251
  \makebox[37.0mm][r]{\datum} \par
252
252
 
253
253
  \vspace{8mm}
@@ -284,12 +284,12 @@
284
284
  \renewcommand{\baselinestretch}{1.0}
285
285
  \ifcase \@ptsize\relax \normalsize \or \small \or \footnotesize \fi
286
286
  \headheight16pt\headsep63mm
287
-
287
+
288
288
  %% kopf
289
289
  \def\@oddhead{
290
290
  \unitlength1mm
291
291
  \begin{picture}(0,0)
292
-
292
+
293
293
  \put(-13, 6){\parbox{180mm}{\huge \ifklassisch \textsl{\quad\name}
294
294
  \else {\quad\name} \fi}
295
295
  }
@@ -301,7 +301,7 @@
301
301
  \put(-10, -8){\parbox{180mm}{\large \ifklassisch \textsl{\quad\fakultaet \textbullet \ort}
302
302
  \else {\quad\fakultaet \textbullet \ort} \fi}
303
303
  }
304
-
304
+
305
305
  %\put(-9, 4){\parbox{180mm}{\hfill \normalsize \ifklassisch \textsl{
306
306
  % \begin{tabular}{r} \strasse \quad \\ \ifx \zusatz\empty \else
307
307
  % \zusatz \quad \\ \fi \ort \quad \ifx \land\empty \else \\
@@ -310,11 +310,11 @@
310
310
  % \zusatz \quad \\ \fi \ort \quad \ifx \land\empty \else \\
311
311
  % \land \quad \fi \end{tabular}} \fi}
312
312
  %}
313
-
313
+
314
314
  %\iftrennlinien
315
315
  % \put(-9,-7){\rule{180mm}{0.5pt}}
316
316
  %\fi
317
-
317
+
318
318
  \iflochermarke
319
319
  \put(-20,- 130.50){\line(1,0){4}}
320
320
  \fi
@@ -356,7 +356,7 @@
356
356
  \end{picture}
357
357
  \hfill
358
358
  }
359
-
359
+
360
360
  %%fuss
361
361
  \def\@oddfoot{\unitlength1mm
362
362
  \begin{picture}(0,0)
@@ -1,3 +1,3 @@
1
1
  module AsciiInvoicer
2
- VERSION = '2.5.10'
2
+ VERSION = '2.5.11'
3
3
  end
@@ -1,24 +1,24 @@
1
1
  --- # ascii invoicer document (version: <%= version %>, template: <%= template %>)
2
- format: 2.4.0
3
- created: <%= Date.today.strftime "%d.%m.%Y" %>
4
2
 
5
- client:
6
- title: Herr # Frau, Professor, Professorin
7
- first_name: John
8
- last_name: Doe
3
+ client:
4
+ title: Herr # Frau # Professor # Professorin
5
+ first_name:
6
+ last_name:
9
7
 
10
- email: jon.doe@example.com
11
- address: |
12
- John Doe
8
+ email:
9
+ address: |
10
+ Technische Universität Dresden
11
+ Fakultät Informatik
12
+ ....
13
13
  Nöthnitzerstraße 46
14
14
  01187 Dresden
15
15
 
16
- event:
16
+ event:
17
17
  name: "<%= project_name %>"
18
18
  location: # might be a list
19
19
  dates:
20
20
  - begin: <%= (Date.today+ 14).strftime "%d.%m.%Y" %> # bezieht sich auf die veranstaltung selbst
21
- #end:
21
+ #end:
22
22
  times:
23
23
  - begin: "9:00"
24
24
  end: "17:00"
@@ -31,8 +31,9 @@ offer:
31
31
 
32
32
  invoice:
33
33
  number: #27
34
- date: #leave empty for auto date
35
- payed_date:
34
+ date: #required
35
+ payed_date: #required
36
+ official: # use instead of
36
37
 
37
38
  cataloge:
38
39
  product: &kaffee { name: Kaffee , price: 2.5 , unit: 1l }
@@ -49,20 +50,21 @@ cataloge:
49
50
  product: &obstplatte { name: Obstplatte , price: 30.00 , unit: stk }
50
51
 
51
52
  products:
53
+ *kaffee:
54
+ amount: 4
55
+ sold: 5
52
56
 
53
- *kaffee: { amount: 4, sold: 5 }
54
57
  *wasser_gross:
55
58
  amount: 4
56
- returned: 3
59
+
57
60
  *kekse:
58
61
  amount: 4
59
- sold: 2
60
62
 
61
- hours:
63
+ hours:
62
64
  salary: 8.00
63
65
  caterers:
64
66
  "unknown" : 0 #Stunden
65
-
67
+
66
68
  manager: <%= manager_name %>
67
69
 
68
70
  #canceled: yes
@@ -71,4 +73,8 @@ manager: <%= manager_name %>
71
73
 
72
74
  #messages: # read default-settings.yml on how to overwrite
73
75
 
76
+ invoicer_version: <%= version %>
77
+ template: <%= template %>
78
+ format: 2.4.1
79
+ created: <%= Date.today.strftime "%d.%m.%Y" %>
74
80
  ...
@@ -31,12 +31,13 @@
31
31
  \Postvermerk {}
32
32
  \Adresse {<%= @data[:client][:address].gsub("\n","\\newline ") %>}
33
33
 
34
- \Betreff {<%= @data[:messages][document_type][0] %>} %% [Angebot|Rechnung]
34
+ \Betreff {<%= @data[:messages][document_type][0] %>
35
+ <%= "\\newline #{@data[:invoice][:official]}" unless @data[:invoice][:official].nil? %>} %% [Angebot|Rechnung]
35
36
 
36
37
  \Datum {<%= @data[type][:date] %>}
37
- \AngebotManuel {<%= @data[:offer][:number] if type == :offer %>} %% Manuel ueberschreibbar ansonsten automatisch heute
38
+ \AngebotManuel {<%= @data[:offer][:number] %>} %% Manuel ueberschreibbar ansonsten automatisch heute
38
39
  \Veranstaltung {<%= @data[:event][:name] %>}
39
- \RechnungsNummer {<%= @data[:invoice][:longnumber] %>} %% bei Angeboten leer lassen
40
+ \RechnungsNummer {<%= @data[:invoice][:longnumber] if type == :invoice %>} %% bei Angeboten leer lassen
40
41
  \Anrede {<%= @data[:client][:addressing] %>,}
41
42
  \Gruss {<%= @data[:messages][:signature] %> <%= @data[:signature] %>}{1cm}
42
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascii_invoicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.10
4
+ version: 2.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Sollich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.4.5
293
+ rubygems_version: 2.4.5.1
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: ascii-invoicer