Added validation for costum_qm_plan

This commit is contained in:
2024-09-11 06:10:42 +02:00
parent aebadb3ae5
commit fadcea03c0

View File

@@ -6,7 +6,7 @@ class Job < ApplicationRecord
validates_presence_of :costumer_firstname, :costumer_lastname, :pdf
validates :privacy_policy, acceptance: true, unless: :created_by_operator?
validates :number_of_plans_a0, :number_of_plans_a1, :number_of_plans_a2, :number_of_plans_a3, numericality: { greater_than_or_equal_to: 0 }
validates :number_of_plans_a0, :number_of_plans_a1, :number_of_plans_a2, :number_of_plans_a3, :costum_qm_plan, numericality: { greater_than_or_equal_to: 0 }
validate :acceptable_pdf