mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
story#116954455 - fix directo min param
This commit is contained in:
parent
fa682e1780
commit
ebc8938b06
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class Directo < ActiveRecord::Base
|
|||
date_format = "%Y-%m-%d"
|
||||
invoice_counter= Counter.new
|
||||
|
||||
min_directo = Setting.invoice_number_min.presence.try(:to_i)
|
||||
min_directo = Setting.directo_monthly_number_min.presence.try(:to_i)
|
||||
max_directo = Setting.directo_monthly_number_max.presence.try(:to_i)
|
||||
last_directo = [Setting.directo_monthly_number_last.presence.try(:to_i), min_directo].compact.max || 0
|
||||
if max_directo && max_directo <= last_directo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue