Module: ItemLedgerEntriesHelper
- Defined in:
- app/helpers/item_ledger_entries_helper.rb
Overview
View helper: item ledger entries.
Instance Method Summary collapse
Instance Method Details
#item_ledger_entry_command_options ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/item_ledger_entries_helper.rb', line 4 def ['Ledger Actions'].tap do |links| links << link_to('Location Transfer', location_transfer_item_ledger_entries_path) if can?(:do_location_transfer, ItemLedgerEntry) links << link_to('Store Transfer', store_transfer_item_ledger_entries_path) if can?(:do_store_transfer, ItemLedgerEntry) links << link_to('Issue to Account', issue_to_account_item_ledger_entries_path) if can?(:do_issue_to_account, ItemLedgerEntry) links << link_to('Inventory Adjustment', inventory_adjustment_item_ledger_entries_path) if can?(:do_inventory_adjustment, ItemLedgerEntry) links << link_to('Item Reclassification', item_reclassification_item_ledger_entries_path) if can?(:do_item_reclassification, ItemLedgerEntry) links << link_to('COGS Adjustment', cogs_adjustment_item_ledger_entries_path) if can?(:do_cogs_adjustment, ItemLedgerEntry) links << link_to('Total Cost Adjustment', total_cost_adjustment_item_ledger_entries_path) if can?(:do_total_cost_adjustment, ItemLedgerEntry) end end |