dorsale 2.2.0 → 2.2.1

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: 8867b1166c306db7c1c1227b6620e7ebf33052fa
4
- data.tar.gz: 9307c0cc4c70c94828974ac1cd8c4de1b4fbf941
3
+ metadata.gz: 601a0abd6bb2d94e337dc1ef2c86ead60929cb7b
4
+ data.tar.gz: 2e97ac1b6964a7921f88d2f5e6f23c127c440134
5
5
  SHA512:
6
- metadata.gz: 255fcb3f86de25c676ef57fb49b27ae7c33992cfa39ebddf00f97bafec4eb5332bc74d4a0d6909e289fab1bc59fd268fdaeb13af947d0212c3c91eb071e51f1d
7
- data.tar.gz: 4be0167e0b53ddd496154153883b95a436fd3c14d18e1d487767a69ee3220c9068aa2d7675c42b89c157369cb34ad66f4184fca8cc5c8734a8b8588faf7df703
6
+ metadata.gz: 6e196d58c066e70e6a3185e076d28cd43e33661f3d3befde3934b0430e4ef795df7ff2141cf384b9dd2a74f136d9c0fbefc47c31a4183a5b10dafd24524beacf
7
+ data.tar.gz: cf0ba9e645236be9fcc4ac5b54459c6016e06b6fbd8eec5a23b08776575ed437ea7ed5392d5822177ab0ddfe731c311267b508b121b2b4047863840f7f842317
@@ -20,15 +20,17 @@
20
20
  - if document.customer.present?
21
21
  = document.customer.name
22
22
  br
23
+ - if document.customer.address.present?
23
24
  = document.customer.address.street
24
- br
25
- = document.customer.address.street_bis
26
- br
27
- = document.customer.address.zip
28
- = " "
29
- = document.customer.address.city
30
- br
31
- = document.customer.address.country
25
+ - if document.customer.address.street_bis.present?
26
+ br
27
+ = document.customer.address.street_bis
28
+ br
29
+ = document.customer.address.zip
30
+ = " "
31
+ = document.customer.address.city
32
+ br
33
+ = document.customer.address.country
32
34
 
33
35
  table#lines-table
34
36
  thead
@@ -48,7 +50,8 @@
48
50
  .row
49
51
  .col-sm-6
50
52
  .well
51
- = document.payment_term.try(:label)
53
+ = info document, :payment_term
54
+ br
52
55
 
53
56
  - if document_type == :invoice
54
57
  = info document, :due_date
@@ -14,6 +14,7 @@
14
14
  .well
15
15
  - if @id_cards.one?
16
16
  = f.hidden_field :id_card_id
17
+ = info document, :id_card
17
18
  - else
18
19
  = f.input :id_card_id, collection: @id_cards
19
20
 
@@ -147,6 +147,7 @@ fr:
147
147
  balance : "Total à payer"
148
148
  expires_at : "Date d'expiration"
149
149
  commercial_discount : "Remise commerciale"
150
+ id_card : "Carte d'identité"
150
151
 
151
152
  errors:
152
153
  messages:
@@ -1,6 +1,6 @@
1
1
  class AddIsActiveToUsers < ActiveRecord::Migration
2
2
  def change
3
- return if table_exists?(:users)
3
+ return if not table_exists?(:users)
4
4
  return if column_exists?(:users, :active)
5
5
  return if column_exists?(:users, :is_active)
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails