This commit is contained in:
Nicolas Bally 2018-09-13 09:26:37 +02:00
parent 2db8839a72
commit 4738749394

View File

@ -123,19 +123,19 @@ Documents générés
%hr %hr
%hr %hr
-if false
-#@product_order.generate_docs -#@product_order.generate_docs
%table.table %table.table
-@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po| -@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po|
-if !po.reseaux -if !po.reseaux
-po.reseaux_id = 2 -po.reseaux_id = 2
-po.save -po.save
-po.generate_docs -po.generate_docs
%tr %tr
%td=po.reseaux.name if po.reseaux %td=po.reseaux.name if po.reseaux
%td=link_to po.bl_number,[:admin,po] %td=link_to po.bl_number,[:admin,po]
%td=po.product_order_documents[0].d_number if po.product_order_documents[0] %td=po.product_order_documents[0].d_number if po.product_order_documents[0]
%br %br
%br %br
%br %br