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
-#@product_order.generate_docs
%table.table
-@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po|
-if false
-#@product_order.generate_docs
%table.table
-@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po|
-if !po.reseaux
-po.reseaux_id = 2
-po.save
-po.generate_docs
%tr
%td=po.reseaux.name if po.reseaux
%td=link_to po.bl_number,[:admin,po]
%td=po.product_order_documents[0].d_number if po.product_order_documents[0]
-if !po.reseaux
-po.reseaux_id = 2
-po.save
-po.generate_docs
%tr
%td=po.reseaux.name if po.reseaux
%td=link_to po.bl_number,[:admin,po]
%td=po.product_order_documents[0].d_number if po.product_order_documents[0]
%br
%br
%br