From e8d66c91d7e83accc9a6b42e71bfa677c46bd375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Fri, 10 Sep 2021 17:21:28 +0200 Subject: [PATCH] Skip p_fournisseur validation for demande de prix --- app/models/price_line_block.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/price_line_block.rb b/app/models/price_line_block.rb index 7e9ea94..3a048e0 100644 --- a/app/models/price_line_block.rb +++ b/app/models/price_line_block.rb @@ -23,9 +23,9 @@ class PriceLineBlock < ApplicationRecord belongs_to :p_payment_type - PURCHASE_BLOCKS = ["Demande prix", "Réponse fournisseur", "Commande achat", "Facture d'achat", "Consultation fournisseur"] + PURCHASE_BLOCKS = [ "Réponse fournisseur", "Commande achat", "Facture d'achat", "Consultation fournisseur"] SALE_BLOCKS = ["Demande de commande", "Bon de commande", "Devis", "Bon de livraison", "Facture", "Avoir"] - + belongs_to :p_fournisseur accepts_nested_attributes_for :p_fournisseur