dorsale 3.14.2 → 3.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/app/models/dorsale/billing_machine/invoice_line.rb +1 -2
- data/app/models/dorsale/billing_machine/quotation_line.rb +1 -2
- data/lib/dorsale/version.rb +1 -1
- data/spec/mailers/{user_mailer.rb → user_mailer_spec.rb} +1 -1
- data/spec/pdfs/dorsale/billing_machine/invoice_single_vat_pdf_spec.rb +1 -1
- data/spec/pdfs/dorsale/billing_machine/quotation_single_vat_pdf_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e42e92cc90e24c8e1a1d0b65b0534a39dca07b4a77d85033cb0de98c5a1e8e
|
4
|
+
data.tar.gz: 741dc9f5064952f340bc3d4857ad286457063da341e673baa451caf1dfe4a5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815a794f2ab6bbaa1f61908028ee7d7eaba19060a961dfbc15917482b817b91657ed5cf7e898bfa6da053794b71916aa8d333db620b82a7f4c2307d577d98158
|
7
|
+
data.tar.gz: b6cf71b1bfd492c31a2da72da75628ac96d9b5a9257dfe809a9c058e3c0752127f91bdfdaf5462917aae2dcaa24c2b68f7102a1280dc9251c86c9d6e4a46322c
|
data/CHANGELOG.md
CHANGED
@@ -18,8 +18,7 @@ class Dorsale::BillingMachine::InvoiceLine < ::Dorsale::ApplicationRecord
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def update_total
|
21
|
-
|
22
|
-
self.total = (quantity * unit_price).round(2)
|
21
|
+
self.total = (quantity.to_f * unit_price.to_f).round(2)
|
23
22
|
end
|
24
23
|
|
25
24
|
after_save :update_invoice_total
|
@@ -18,8 +18,7 @@ class Dorsale::BillingMachine::QuotationLine < ::Dorsale::ApplicationRecord
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def update_total
|
21
|
-
|
22
|
-
self.total = (quantity * unit_price).round(2)
|
21
|
+
self.total = (quantity.to_f * unit_price.to_f).round(2)
|
23
22
|
end
|
24
23
|
|
25
24
|
after_save :update_quotation_total
|
data/lib/dorsale/version.rb
CHANGED
@@ -27,7 +27,7 @@ describe ::Dorsale::BillingMachine::InvoiceSingleVatPdf, pdfs: true do
|
|
27
27
|
}
|
28
28
|
|
29
29
|
it "should display global vat rate" do
|
30
|
-
expect(content).to include "TVA 19,60
|
30
|
+
expect(content).to include "TVA 19,60"
|
31
31
|
expect(content).to_not include "MONTANT TVA"
|
32
32
|
expect(content).to_not include "TVA %"
|
33
33
|
end
|
@@ -27,7 +27,7 @@ describe ::Dorsale::BillingMachine::QuotationSingleVatPdf, pdfs: true do
|
|
27
27
|
}
|
28
28
|
|
29
29
|
it "should display global vat rate" do
|
30
|
-
expect(content).to include "TVA 19,60
|
30
|
+
expect(content).to include "TVA 19,60"
|
31
31
|
expect(content).to_not include "MONTANT TVA"
|
32
32
|
expect(content).to_not include "TVA %"
|
33
33
|
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: 3.14.
|
4
|
+
version: 3.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -883,7 +883,7 @@ files:
|
|
883
883
|
- spec/factories/flyboy_tasks.rb
|
884
884
|
- spec/files/avatar.png
|
885
885
|
- spec/files/pdf.pdf
|
886
|
-
- spec/mailers/
|
886
|
+
- spec/mailers/user_mailer_spec.rb
|
887
887
|
- spec/models/dorsale/address_spec.rb
|
888
888
|
- spec/models/dorsale/alexandrie/attachment_spec.rb
|
889
889
|
- spec/models/dorsale/alexandrie/attachment_type_spec.rb
|
@@ -958,7 +958,7 @@ specification_version: 4
|
|
958
958
|
summary: Modular ERP made with Ruby on Rails
|
959
959
|
test_files:
|
960
960
|
- spec/spec_helper.rb
|
961
|
-
- spec/mailers/
|
961
|
+
- spec/mailers/user_mailer_spec.rb
|
962
962
|
- spec/models/dorsale/billing_machine_spec.rb
|
963
963
|
- spec/models/dorsale/i18n_spec.rb
|
964
964
|
- spec/models/dorsale/alexandrie/attachment_spec.rb
|