1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

(bug) restore accounting period

This commit is contained in:
Sylvain 2023-01-06 17:15:39 +01:00
parent 7ec8a4845e
commit 3289073e85
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- Improved fix_invoice_item task - Improved fix_invoice_item task
- Fix a bug: cryptic error message when failed to create a manager - Fix a bug: cryptic error message when failed to create a manager
- Fix a bug: unable to restore accounting periods closed by a deleted admin
## v5.6.1 2023 January 6 ## v5.6.1 2023 January 6

View File

@ -12,7 +12,7 @@ class AccountingPeriod < ApplicationRecord
before_create :compute_totals before_create :compute_totals
after_commit :archive_closed_data, on: [:create] after_commit :archive_closed_data, on: [:create]
validates :start_at, :end_at, :closed_at, :closed_by, presence: true validates :start_at, :end_at, :closed_at, presence: true
validates_with DateRangeValidator validates_with DateRangeValidator
validates_with DurationValidator validates_with DurationValidator
validates_with PastPeriodValidator validates_with PastPeriodValidator