suite
This commit is contained in:
parent
2db8839a72
commit
4738749394
@ -123,19 +123,19 @@ Documents générés
|
|||||||
|
|
||||||
%hr
|
%hr
|
||||||
%hr
|
%hr
|
||||||
|
-if false
|
||||||
|
-#@product_order.generate_docs
|
||||||
|
%table.table
|
||||||
|
-@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po|
|
||||||
|
|
||||||
-#@product_order.generate_docs
|
-if !po.reseaux
|
||||||
%table.table
|
-po.reseaux_id = 2
|
||||||
-@product_orders = ProductOrder.where(:completed_finish => true).order("created_at ASC").each do |po|
|
-po.save
|
||||||
|
-po.generate_docs
|
||||||
-if !po.reseaux
|
%tr
|
||||||
-po.reseaux_id = 2
|
%td=po.reseaux.name if po.reseaux
|
||||||
-po.save
|
%td=link_to po.bl_number,[:admin,po]
|
||||||
-po.generate_docs
|
%td=po.product_order_documents[0].d_number if po.product_order_documents[0]
|
||||||
%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
|
%br
|
||||||
%br
|
%br
|
||||||
|
Loading…
x
Reference in New Issue
Block a user