This commit is contained in:
Nicolas Bally 2019-09-12 10:35:51 +02:00
parent 83b2c83252
commit 4ced707635
2 changed files with 22 additions and 22 deletions

View File

@ -1,4 +1,5 @@
%tr#p_customer_sheet{:id => p_customer_sheet.id}
-if (p_customer_sheet.state != "panier" or p_customer_sheet.p_sheet_lines.count > 0)
%tr#p_customer_sheet{:id => p_customer_sheet.id}
%td="##{p_customer_sheet.id}"
%td=l p_customer_sheet.created_at, :format => :date
-if !@p_customer
@ -15,7 +16,8 @@
=number_to_currency totals[:total_ttc]
%td=raw p_customer_sheet.state_html
%td
=raw p_customer_sheet.state_html
%td.actions

View File

@ -18,10 +18,8 @@
%table.table.table-striped
-p_contacts = @p_customer.p_contacts
-p_contacts = p_contacts + @p_document.particular_send.p_contacts if @p_document.particular_send
-p_contacts = p_contacts + @p_document.particular_bill.p_contacts if @p_document.particular_bill
-@p_customer.particulars.each do |p|
-p_contacts = p_contacts + p.p_contacts
-p_contacts.uniq.each do |p_c|