Update show
This commit is contained in:
parent
2bf2efc6a6
commit
f17034592d
@ -266,6 +266,24 @@
|
|||||||
-if @price_document.d_number
|
-if @price_document.d_number
|
||||||
-if @price_document.cc_label == "Commande achat"
|
-if @price_document.cc_label == "Commande achat"
|
||||||
%p=link_to "Générer un bon de réception", bon_de_reception_admin_price_document_path(@price_document), :class => "btn btn-primary"
|
%p=link_to "Générer un bon de réception", bon_de_reception_admin_price_document_path(@price_document), :class => "btn btn-primary"
|
||||||
|
%p=link_to "Générer la facture", facture_achat_admin_price_document_path(@price_document), :class => "btn btn-primary"
|
||||||
|
|
||||||
|
-if @facture_achat_childrens.present?
|
||||||
|
%h3 Facture Achat
|
||||||
|
-params[:search][:per_page] = params[:search][:per_page] || 5000
|
||||||
|
-per_page = params[:search][:per_page]
|
||||||
|
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
||||||
|
|
||||||
|
-@facture_achat_childrens = @facture_achat_childrens.order("date DESC, created_at DESC")
|
||||||
|
|
||||||
|
|
||||||
|
-#@line_stocks = sort_by_sorting(@line_stocks, "created_at DESC")
|
||||||
|
-@facture_achat_childrens = @facture_achat_childrens.page(page).per(per_page)
|
||||||
|
%br
|
||||||
|
.clear
|
||||||
|
|
||||||
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @facture_achat_childrens}
|
||||||
|
|
||||||
-if @price_document.cc_label == "Commande achat"
|
-if @price_document.cc_label == "Commande achat"
|
||||||
=render :partial => "admin/price_documents/relicats", :locals => {:bca => @price_document}
|
=render :partial => "admin/price_documents/relicats", :locals => {:bca => @price_document}
|
||||||
-if false
|
-if false
|
||||||
@ -359,25 +377,9 @@
|
|||||||
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents, :key => "reponses-prix-show"}
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents, :key => "reponses-prix-show"}
|
||||||
|
|
||||||
|
|
||||||
%h3.ml-2 Consultations fournisseur
|
%h3.ml-2 Consultations fournisseur :
|
||||||
#consult
|
#consult
|
||||||
-params[:search][:per_page] = params[:search][:per_page] || 5000
|
|
||||||
-per_page = params[:search][:per_page]
|
|
||||||
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
|
||||||
|
|
||||||
-@price_documents = PriceDocument.where(:doc_ref_id => @price_document.id, :price_document_type_id => PriceDocumentType.find_by_label("Consultation fournisseur").id)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-@price_documents = sort_by_sorting(@price_documents, "created_at DESC")
|
|
||||||
-@price_documents = @price_documents.page(page).per(per_page)
|
|
||||||
%br
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.clear
|
|
||||||
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents, :key => "reponses-prix-show"}
|
|
||||||
-if @price_documents.empty?
|
-if @price_documents.empty?
|
||||||
.qi_pannel.qi_plain.padding
|
.qi_pannel.qi_plain.padding
|
||||||
Pas de consultation générée.
|
Pas de consultation générée.
|
||||||
@ -406,6 +408,23 @@
|
|||||||
=f.semantic_fields_for :price_lines do |form|
|
=f.semantic_fields_for :price_lines do |form|
|
||||||
=render partial: "admin/price_lines/form_consult", locals: {form: form}
|
=render partial: "admin/price_lines/form_consult", locals: {form: form}
|
||||||
|
|
||||||
|
-params[:search][:per_page] = params[:search][:per_page] || 5000
|
||||||
|
-per_page = params[:search][:per_page]
|
||||||
|
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
||||||
|
|
||||||
|
-@price_documents = PriceDocument.where(:doc_ref_id => @price_document.id, :price_document_type_id => PriceDocumentType.find_by_label("Consultation fournisseur").id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-@price_documents = sort_by_sorting(@price_documents, "created_at DESC")
|
||||||
|
-@price_documents = @price_documents.page(page).per(per_page)
|
||||||
|
%br
|
||||||
|
|
||||||
|
|
||||||
|
%h4.ml-2 Liste des consultations fournisseurs
|
||||||
|
.clear
|
||||||
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents, :key => "reponses-prix-show"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user