From 77198d7ba3774aaf263a5c79bfc2a522fdc2aeb7 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 12 Jun 2020 15:25:16 +0200 Subject: [PATCH] suite --- app/models/p_customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/p_customer.rb b/app/models/p_customer.rb index b46d4f4..567b23a 100644 --- a/app/models/p_customer.rb +++ b/app/models/p_customer.rb @@ -71,7 +71,7 @@ class PCustomer < ApplicationRecord validates :cgv, :presence => true, :if => :require_cgv validates :rgpd, :presence => true, :if => :require_cgv - validates :past_id, :uniqueness => true + validates :past_id, :uniqueness => true, :if => :imported def do_import if self.imp_iban? and self.imp_bic?