mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
a55880a0ad
Also: (bug) filter by array in openAPI = error
13 lines
461 B
Ruby
13 lines
461 B
Ruby
# frozen_string_literal: true
|
|
|
|
|
|
json.lines @lines do |line|
|
|
json.extract! line, :id, :line_type, :journal_code, :date, :account_code, :account_label, :analytical_code, :debit, :credit, :currency, :summary
|
|
json.invoice do
|
|
json.extract! line.invoice, :reference, :id
|
|
json.label Invoices::LabelService.build(line.invoice)
|
|
json.url download_open_api_v1_invoice_path(line.invoice)
|
|
end
|
|
json.user_invoicing_profile_id line.invoicing_profile_id
|
|
end
|