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:
parent
7ec8a4845e
commit
3289073e85
@ -2,6 +2,7 @@
|
||||
|
||||
- Improved fix_invoice_item task
|
||||
- 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
|
||||
|
||||
|
@ -12,7 +12,7 @@ class AccountingPeriod < ApplicationRecord
|
||||
before_create :compute_totals
|
||||
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 DurationValidator
|
||||
validates_with PastPeriodValidator
|
||||
|
Loading…
x
Reference in New Issue
Block a user