94 lines
3.1 KiB
Plaintext
94 lines
3.1 KiB
Plaintext
.qi_header
|
|
.right
|
|
=link_to ic(:plus)+" Demande de commande", admin_p_customers_path(:offre => true), :class => "btn btn-primary bgbd-ventes"
|
|
%h1
|
|
Documents comptables
|
|
%span
|
|
Liste
|
|
|
|
|
|
.qi_search_row
|
|
=form_tag "", :method => "get", :onsubmit => "" do
|
|
|
|
-if @p_customer
|
|
.customer_label
|
|
=link_to @p_customer.show_name, [:admin,@p_customer ]
|
|
-if false and @p_customer
|
|
.customer_label
|
|
=@p_customer.show_name
|
|
=link_to ic(:times),"#", :onclick => "$(this).closest('.customer_label').next('input').val('');$(this).closest('.customer_label').remove();return false;"
|
|
=hidden_field_tag :p_customer_id, params[:p_customer_id],:class => "form-control", :placeholder => "Client" if params[:p_customer_id]
|
|
|
|
|
|
|
|
%table.qi_search_row_top
|
|
%tr
|
|
%td
|
|
Début
|
|
%td
|
|
.input-group
|
|
=text_field_tag :start, params[:start],:class => "form-control datepicker", :placeholder => "Début"
|
|
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
|
|
=ic(:times)
|
|
|
|
%br
|
|
-if @start and @stop
|
|
|
|
=link_to "< Mois précédent",request.query_parameters.merge({start: ((@start - 1.month).beginning_of_month.strftime('%d/%m/%Y')), stop: ((@stop - 1.month).end_of_month.strftime('%d/%m/%Y'))}), :class => "btn btn-default"
|
|
|
|
|
|
%td
|
|
Fin
|
|
%td
|
|
.input-group
|
|
=text_field_tag :stop, params[:stop],:class => "form-control datepicker", :placeholder => "Fin"
|
|
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
|
|
=ic(:times)
|
|
%br
|
|
-if @start and @stop
|
|
=link_to "Mois suivant >",request.query_parameters.merge({start: ((@start + 1.month).beginning_of_month.strftime('%d/%m/%Y')), stop: ((@stop + 1.month).end_of_month.strftime('%d/%m/%Y'))}), :class => "btn btn-default"
|
|
|
|
|
|
-params[:price_document_type_ids] = params[:price_document_type_ids] || []
|
|
%td
|
|
Type de document :
|
|
%td
|
|
|
|
-PriceDocumentType.where(:enabled => true).order("id DESC").each do |pdt|
|
|
%p
|
|
= check_box_tag :"price_document_type_ids[]", pdt.id, (true if params[:price_document_type_ids].include?(pdt.id.to_s)), {:id => "price_document_type_ids_#{pdt.id}"}
|
|
= label_tag "price_document_type_ids_"+pdt.id.to_s, pdt.label
|
|
|
|
%table
|
|
%tr
|
|
%td
|
|
Montant TTC :
|
|
%td
|
|
de
|
|
%td
|
|
=number_field_tag :amount_min, params[:amount_min],:class => "form-control", :placeholder => "min", :step => 0.01
|
|
%td
|
|
à
|
|
%td
|
|
=number_field_tag :amount_max, params[:amount_max],:class => "form-control", :placeholder => "max", :step => 0.01
|
|
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @price_documents}
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents}
|
|
|
|
|
|
:scss
|
|
.qi_search_row_top{
|
|
td{
|
|
vertical-align:top;
|
|
}
|
|
p{
|
|
margin:0;
|
|
}
|
|
}
|
|
|
|
|
|
|