bugfix doc type name

This commit is contained in:
Barnabé 2021-09-09 12:52:14 +02:00
parent 9abd0b87cf
commit aca25bb1cb
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class ApplicationController < ActionController::Base
end end
set_sub_menu :documents, :"p_document_type_reponse_fournisseur", "Réponses fournisseurs", admin_price_documents_path(:price_document_type_id => 9) # set_sub_menu :documents, :"p_document_type_reponse_fournisseur", "Réponses fournisseurs", admin_price_documents_path(:price_document_type_id => PriceDocumentType.find_by(label: "Réponse fournisseur").id)

View File

@ -144,7 +144,7 @@
-tr[:actions] = capture do -tr[:actions] = capture do
%td.actions %td.actions
-if price_document.price_document_type.label == "Demande de prix" -if price_document.price_document_type.label == "Demande prix"
=link_to i("bar-chart"), analyse_reponses_admin_price_document_path(price_document) =link_to i("bar-chart"), analyse_reponses_admin_price_document_path(price_document)
-if !price_document.imported -if !price_document.imported
-if current_admin.has_permission?("payments") -if current_admin.has_permission?("payments")