Merge remote-tracking branch 'bennibu/rails3' into rails3
Conflicts: app/controllers/admin/ordergroups_controller.rb app/controllers/finance/balancing_controller.rb app/controllers/suppliers_controller.rb app/views/articles/_article.html.haml app/views/finance/balancing/_summary.haml app/views/finance/balancing/new.html.haml app/views/group_orders/_form.html.haml app/views/home/_apple_bar.html.haml app/views/suppliers/index.haml
This commit is contained in:
commit
7af796c09c
47 changed files with 325 additions and 240 deletions
|
|
@ -10,7 +10,7 @@
|
|||
= link_to t('.add_group'), new_finance_group_order_article_path(order_article_id: order_article.id),
|
||||
remote: true, class: 'btn btn-mini'
|
||||
%tbody
|
||||
- for group_order_article in order_article.group_order_articles.ordered.all(:include => [:group_order])
|
||||
- for group_order_article in order_article.group_order_articles.select { |goa| goa.result > 0 }
|
||||
%tr[group_order_article]
|
||||
%td
|
||||
%td{:style=>"width:50%"}
|
||||
|
|
|
|||
|
|
@ -24,4 +24,8 @@
|
|||
%td
|
||||
= t('.fc_profit')
|
||||
%small= t('.with_extra_charge')
|
||||
%td#order_profit.numeric= number_to_currency(order.profit)
|
||||
%td#order_profit.numeric= number_to_currency(order.profit)
|
||||
#summaryChangedWarning.alert(style="display:none;")
|
||||
%strong= t '.changed'
|
||||
%br/
|
||||
= link_to t('.reload'), update_summary_finance_order_path(order), remote: true
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
.well.well-small
|
||||
%h3= t('.comments')
|
||||
#comments= render :partial => 'shared/comments', locals: {comments: @order.comments}
|
||||
#comments= render :partial => 'shared/comments', locals: {comments: @order.comments.includes(:user)}
|
||||
|
||||
- content_for :actionbar do
|
||||
.btn-group
|
||||
|
|
@ -44,4 +44,4 @@
|
|||
|
||||
%section#results
|
||||
= render 'edit_results_by_articles'
|
||||
%p= link_to_top
|
||||
%p= link_to_top
|
||||
|
|
|
|||
1
app/views/finance/balancing/update_summary.js.haml
Normal file
1
app/views/finance/balancing/update_summary.js.haml
Normal file
|
|
@ -0,0 +1 @@
|
|||
$('#summary').html('#{j(render('finance/balancing/summary', order: @order))}');
|
||||
Loading…
Add table
Add a link
Reference in a new issue