Class: Pike13::CLI::Commands::Report::InvoiceItemTransactions
- Includes:
- Concerns::ReportingQuery
- Defined in:
- lib/pike13/cli/commands/report/invoice_item_transactions.rb
Class Method Summary collapse
-
.base_usage ⇒ Object
Override base_usage to match the actual subcommand registration.
Instance Method Summary collapse
Methods included from Concerns::ReportingQuery
Methods inherited from Base
format_options, handle_argument_error, printable_commands
Methods included from ThorNestedSubcommand
Class Method Details
.base_usage ⇒ Object
Override base_usage to match the actual subcommand registration
11 12 13 |
# File 'lib/pike13/cli/commands/report/invoice_item_transactions.rb', line 11 def self.base_usage "report invoice_item_transactions" end |
Instance Method Details
#query ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pike13/cli/commands/report/invoice_item_transactions.rb', line 17 def query handle_error do params = build_query_params params[:fields] ||= %w[transaction_id transaction_date payment_method net_paid_amount] result = with_progress("Fetching invoice item transactions report") do Pike13::Reporting::InvoiceItemTransactions.query(**params) end output(result) end end |