diff --git a/app/views/admin/p_payments/_p_payment.html.haml b/app/views/admin/p_payments/_p_payment.html.haml index 355ded6..0ddb083 100644 --- a/app/views/admin/p_payments/_p_payment.html.haml +++ b/app/views/admin/p_payments/_p_payment.html.haml @@ -2,7 +2,7 @@ %td= ic(:check) if p_payment.paid %td= l(p_payment.paid_at, :format => :date) if p_payment.paid_at %td= l(p_payment.theo_date, :format => :date) if p_payment.theo_date - %td= p_payment.p_customer.show_name if p_payment.p_customer + %td=link_to(p_payment.p_customer.show_name, [:admin, p_payment.p_customer]) if p_payment.p_customer %td= number_to_currency p_payment.amount %td= number_to_currency(p_payment.amount-p_payment.total_affected) if (p_payment.amount-p_payment.total_affected) > 0 diff --git a/app/views/admin/p_sheet_lines/_form.html.haml b/app/views/admin/p_sheet_lines/_form.html.haml index 4c5a8f7..3665c95 100755 --- a/app/views/admin/p_sheet_lines/_form.html.haml +++ b/app/views/admin/p_sheet_lines/_form.html.haml @@ -93,7 +93,7 @@ -if p_sheet_line_line =form.fields_for(:p_sheet_line_lines, p_sheet_line_line) do |builder| =builder.hidden_field :p_product_stock_id,:label => false, :as => :string - =builder.input :qte,:label => false, :as => :string, :input_html => {:class => "qte"} + =builder.input :qte,:label => false, :input_html => {:class => "qte"} %td.qte_tot.price_td %td.price.price_td{:data => {:price => form.object.price}} @@ -113,7 +113,7 @@ -if p_sheet_line_line =form.fields_for(:p_sheet_line_lines, p_sheet_line_line) do |builder| =builder.hidden_field :p_product_stock_id,:label => false, :as => :string - =builder.input :qte,:label => false, :as => :string, :input_html => {:class => "qte"} + =builder.input :qte,:label => false, :input_html => {:class => "qte"} %td.qte_tot.price_td %td.price.price_td{:data => {:price => form.object.price}}