update price_documents_types
This commit is contained in:
parent
b28280a6fb
commit
fa8ebf207f
@ -168,7 +168,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
end
|
||||
|
||||
set_sub_menu :documents, :"p_document_type_reponse_fournisseur", "Réponses fournisseurs", admin_price_documents_path(:price_document_type_id => 2)
|
||||
set_sub_menu :documents, :"p_document_type_reponse_fournisseur", "Réponses fournisseurs", admin_price_documents_path(:price_document_type_id => 9)
|
||||
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ class PriceDocument < ApplicationRecord
|
||||
has_many :avoir_p_payment_documents, :dependent => :destroy, :foreign_key => :avoir_id, :class_name => "PPaymentDocument"
|
||||
accepts_nested_attributes_for :avoir_p_payment_documents, allow_destroy: true
|
||||
|
||||
PURCHASES = ["Demande prix", "Commande achat", "Facture d'achat"]
|
||||
PURCHASES = ["Demande de prix", "Commande achat", "Facture d'achat"]
|
||||
SALES = ["Bon de commande", "Devis", "Bon de livraison", "Facture", "Avoir"]
|
||||
# AVANCEMENT = ["0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]
|
||||
AVANCEMENT = ["0%", "25%", "50%", "75%", "100"]
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
-tr[:p_fournisseur] = capture do
|
||||
%td
|
||||
- if price_document.price_document_type_id == 2
|
||||
- if price_document.price_document_type.label == "Réponse fournisseur"
|
||||
-if price_document.p_fournisseur.present?
|
||||
= price_document.p_fournisseur.name
|
||||
- else
|
||||
@ -135,7 +135,7 @@
|
||||
|
||||
-tr[:actions] = capture do
|
||||
%td.actions
|
||||
-if price_document.price_document_type_id == 1
|
||||
-if price_document.price_document_type.label == "Demande de prix"
|
||||
=link_to i("bar-chart"), analyse_reponses_admin_price_document_path(price_document)
|
||||
-if !price_document.imported
|
||||
-if current_admin.has_permission?("payments")
|
||||
|
Reference in New Issue
Block a user