1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] invalid footprints in invoices fixtures

This commit is contained in:
Sylvain 2020-03-25 12:34:33 +01:00
parent 64342c9e00
commit 5da4a90692
3 changed files with 8 additions and 7 deletions

View File

@ -9,6 +9,7 @@
- Fix a bug: invalid translation keys in closing accounting period interface
- Fix a bug: since PostgreSQL release 9.6.17, the new installations will fail to start complaining for missing password (#194)
- Fix a bug: missing translations for some error messages
- Fix a bug: invalid footprints in invoices fixtures
- Fix a security issue: updated mkdirp to fix [CVE-2020-7598](https://nvd.nist.gov/vuln/detail/CVE-2020-7598)
- Fix a security issue: updated acorn to fix [CVE-2020-7598](https://nvd.nist.gov/vuln/detail/CVE-2020-7598)

View File

@ -11,7 +11,7 @@ namespace :fablab do
end
if AccountingPeriod.count.positive?
last_period = AccountingPeriod.order(start_at: 'DESC').first
last_period = AccountingPeriod.order(start_at: :desc).first
puts "Regenerating from #{last_period.end_at}..."
Invoice.where('created_at > ?', last_period.end_at).order(:id).each(&:chain_record)
else
@ -29,7 +29,7 @@ namespace :fablab do
end
if AccountingPeriod.count.positive?
last_period = AccountingPeriod.order(start_at: 'DESC').first
last_period = AccountingPeriod.order(start_at: :desc).first
puts "Regenerating from #{last_period.end_at}..."
InvoiceItem.where('created_at > ?', last_period.end_at).order(:id).each(&:chain_record)
else

View File

@ -16,7 +16,7 @@ invoice_1:
type:
subscription_to_expire:
description:
footprint: d5fc7141c282279134320a4b1db74c540a82f105a0b1f4eeff6602730ed3e745
footprint: 8291cfc4cc4cf57eb63cb079ac952cd0ad8ca7b3e7f663f04d4c18a3c5c4ca68
environment: test
operator_profile_id: 3
@ -37,7 +37,7 @@ invoice_2:
type:
subscription_to_expire:
description:
footprint: 1c156831c7cd1fcc1c6be8b83d60fbb9b89f84285638e87131582eb54b8a377d
footprint: 1d8d62a39bd6e230043e60ffd0429c14414f5703a60b9cba71a81f6a9dcaf894
environment: test
operator_profile_id: 1
@ -58,7 +58,7 @@ invoice_3:
type:
subscription_to_expire:
description:
footprint: 5fa3ac2e2684f6df1440c63969b78ac24daa9207682b359f61c655d41d4c4f03
footprint: 8fb2c1105d24ac19096d5673b02ddea11c0c8578d818fad320c85c6005dda69b
environment: test
operator_profile_id: 1
@ -80,7 +80,7 @@ invoice_4:
type:
subscription_to_expire:
description:
footprint: 6de8d985d82f2146aaa60e79882237b3bc8812521643b14498e4d498aec78613
footprint: 4ed7cf862affb0b6e0be53cfd97da3373b51c555ef2f06c7fe2b354940f10b53
environment: test
operator_profile_id: 1
@ -101,6 +101,6 @@ invoice_5:
type:
subscription_to_expire:
description:
footprint: a78aa3f991718f023f1c6b85b6f30aeda3f3d6b20f2d64504d29a23141db9edb
footprint: 9aead7f5eb9411778d072279a058be0fe2da76eb12f6a22100cbec1f2b3f6e9d
environment: test
operator_profile_id: 1