This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/p_customers/_financier.html.haml
2021-08-23 10:26:02 +02:00

17 lines
763 B
Plaintext

.qi_padding.qi_stat.stat_block.financier.qi_stat_wrapper
%table.stat_table
%tr
%td
=ic(:"pie-chart")
%th CA HT Total :
%td
=number_to_currency(p_customer.price_documents.where(:price_document_type => [4]).sum(:cc_tot_amount_ht) + p_customer.order_hists.sum(:montant_ht_remise))
%th CA HT Basic :
%td=link_to number_to_currency(p_customer.price_documents.where(:price_document_type => [4]).sum(:cc_tot_amount_ht)), admin_p_customer_path(:id => p_customer.id, :tab => "bills", :anchor => "tabs")
%th CA HT historique :
%td
=link_to number_to_currency(p_customer.order_hists.sum(:montant_ht_remise)), admin_p_customer_path(:id => p_customer.id, :tab => "quadra", :anchor => "tabs")