mmsc_app/app/views/admin/price_documents/_price_document.html.haml
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +02:00

36 lines
1.6 KiB
Plaintext

%tr#price_document_row{:id => price_document.id}
%td
= price_document.p_customer.code if price_document.p_customer
%td
= price_document.p_customer.p_commercial.long_name if price_document.p_customer and price_document.p_customer.p_commercial
%td
= price_document.p_customer.show_name if price_document.p_customer
%td
=link_to price_document.ref_element.com_counter, [:admin, price_document.ref_element] if price_document.ref_element and price_document.ref_element_type == "PCustomerSheet"
%td
=price_document.label
%td
=price_document.d_number
%td
=l price_document.date, :format => :date
%td.numeraire=number_to_currency price_document.tot_amount_ht
%td.numeraire=number_to_currency price_document.tot_amount_tva
%td.numeraire=number_to_currency price_document.tot_amount_ttc
%td
="oui" if price_document.solded if price_document.price_document_type and price_document.price_document_type.accounting
%td
=number_to_currency price_document.to_paid_ttc if price_document.price_document_type and price_document.price_document_type.accounting
%td.actions
-if !price_document.d_number?
= link_to i(:"trash-o"), [:admin, price_document], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
= link_to i(:pencil), edit_admin_price_document_path(price_document)
=# link_to i(:eye), admin_price_document_path(price_document), :remote => true
= link_to i(:download), print_admin_price_document_path(price_document.token), :remote => false, :target => "_blank"