ascii_invoicer 2.5.7 → 2.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ascii +1 -1
- data/lib/ascii_invoicer/InvoiceProject.rb +5 -5
- data/lib/ascii_invoicer/mixins.rb +3 -1
- data/lib/ascii_invoicer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 342dd208a943d963d8309980399950aef28c757d
|
4
|
+
data.tar.gz: 131214fa4428dbc1408c3ecebe3871f45ec75210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c197b2b7a76eb5b86f62f36fe69721c4ed8f6e4358d3ef7358dba1d9206fe7571238fa57f83789ec6cc3eb9466164960a893a3d19bd79f3c1c807c6798112658
|
7
|
+
data.tar.gz: a6c2de613a8ed2b12a34d5f01457b4b45606f8867f3b63b525f321f9a9468b93697d5f9bfd4bed155d35599aa5febd93d61dd1e47095e64fe4dd9baa1f161ce6
|
data/bin/ascii
CHANGED
@@ -398,7 +398,7 @@ class Commander < Thor
|
|
398
398
|
projects.each{|project|
|
399
399
|
unless project.validate(:calendar)
|
400
400
|
valid = false
|
401
|
-
$logger.error "
|
401
|
+
$logger.error "\"#{project.name}\" #{project.blockers(:calendar)}"
|
402
402
|
end
|
403
403
|
|
404
404
|
}
|
@@ -233,12 +233,12 @@ class InvoiceProject < LuigiProject
|
|
233
233
|
|
234
234
|
def blockers choice = :invoice
|
235
235
|
inval = {} # invalidators
|
236
|
-
inval[ :minimal ] = [:client_last_name, :
|
237
|
-
inval[ :offer ] = [:
|
238
|
-
inval[ :invoice ] = inval[:offer]
|
239
|
-
inval[ :payed ] = inval[:invoice]
|
236
|
+
inval[ :minimal ] = [:client_last_name, :manager, :products, :event_dates]
|
237
|
+
inval[ :offer ] = inval[:minimal] + [:caterers, :offer_number ]
|
238
|
+
inval[ :invoice ] = inval[:offer] + [:invoice_number, :invoice_date]
|
239
|
+
inval[ :payed ] = inval[:invoice] + [:invoice_payed]
|
240
240
|
inval[ :archive ] = inval[:payed]
|
241
|
-
inval[ :calendar] = inval[:
|
241
|
+
inval[ :calendar] = inval[:minimal]
|
242
242
|
inval[choice] & @errors
|
243
243
|
end
|
244
244
|
|
@@ -34,7 +34,9 @@ module AsciiMixins
|
|
34
34
|
table.style[:padding_horizontal] = 1
|
35
35
|
projects.each_index do |i|
|
36
36
|
project = projects[i]
|
37
|
-
if
|
37
|
+
if Date.today.day == 1 and Date.today.month == 4
|
38
|
+
color = color_from_date(project.date)
|
39
|
+
elsif !hash[:colors].nil? and hash[:colors]
|
38
40
|
color = color_from_date(project.date)
|
39
41
|
color = :default if project.validate(:invoice)
|
40
42
|
color = [:blue] if project.status == :canceled
|
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.
|
4
|
+
version: 2.5.8
|
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-
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|