Skip to content

Commit

Permalink
change map to select in purchase#bookkeepable?
Browse files Browse the repository at this point in the history
  • Loading branch information
thib44 committed Aug 29, 2017
1 parent f851a83 commit e17b50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/purchase.rb
Expand Up @@ -244,7 +244,7 @@ def bookkeepable?
with_accounting &&
invoice? &&
items.any? &&
TaxDeclarationItemPart.where(journal_entry_item_id: journal_entries.last.items.map(&:id)).any?
TaxDeclarationItemPart.where(journal_entry_item_id: journal_entries.last.items.select(&:id)).any?
end

def third
Expand Down

0 comments on commit e17b50b

Please sign in to comment.