suite
This commit is contained in:
parent
d1e6b05003
commit
a1b2660e31
@ -6,37 +6,6 @@
|
||||
=link_to "Offres",admin_p_customer_sheets_path
|
||||
|
||||
|
||||
-if false
|
||||
-PProduct.limit(2).each do |p_product|
|
||||
.qi_row
|
||||
.qi_pannel.qi_plain.padding
|
||||
.p_product_sheet_line
|
||||
%p
|
||||
%strong
|
||||
=p_product.p_product_cat.name if p_product.p_product_cat
|
||||
=p_product.name
|
||||
|
||||
%table.table
|
||||
%tr
|
||||
%th Taille
|
||||
%th Couleur
|
||||
-s = "a"
|
||||
-si = 1
|
||||
|
||||
-p_product.p_product_stocks.order("p_size_id ASC, p_color_id ASC").each do |ps|
|
||||
|
||||
-si = p_product.p_product_stocks.where(:p_size_id => ps.p_size_id).count()
|
||||
|
||||
%tr
|
||||
-if ps.p_size_id != s
|
||||
-s = ps.p_size_id
|
||||
|
||||
%td{:rowspan => si}
|
||||
=si
|
||||
=ps.p_size.name if ps.p_size
|
||||
|
||||
%td
|
||||
=ps.p_color.name if ps.p_color
|
||||
|
||||
|
||||
|
||||
@ -106,6 +75,9 @@
|
||||
|
||||
|
||||
%h3 Résumé
|
||||
-if @p_customer_sheet.cust_ref?
|
||||
Référence client :
|
||||
%strong=@p_customer_sheet.cust_ref
|
||||
=render :partial => "admin/p_sheet_lines/p_sheet_lines", :locals => {:sheet_lines => @p_customer_sheet.p_sheet_lines, :ok => (@p_customer_sheet.state_ok?) }
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user