add receive screen, quantities for model, redistribution
This commit is contained in:
parent
ed9a6cca39
commit
bd1b932775
17 changed files with 365 additions and 49 deletions
9
app/helpers/finance/receive_helper.rb
Normal file
9
app/helpers/finance/receive_helper.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# :encoding:utf-8:
|
||||
module Finance::ReceiveHelper
|
||||
# TODO currently duplicate a bit of DeliveriesHelper.articles_for_select2
|
||||
def articles_for_select2(supplier)
|
||||
supplier.articles.undeleted.reorder('articles.name ASC').map do |a|
|
||||
{:id => a.id, :text => "#{a.name} (#{a.unit_quantity}⨯#{a.unit})"}
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue