mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
add invoice_items in accounting archive
This commit is contained in:
parent
8c57588876
commit
4b5bd74188
@ -42,4 +42,8 @@ json.array!(invoices) do |invoice|
|
||||
json.gender invoice.user.profile.gender ? 'male' : 'female'
|
||||
end
|
||||
end
|
||||
json.invoice_items invoice.invoice_items do |item|
|
||||
json.extract! item, :id, :stp_invoice_item_id, :created_at, :description
|
||||
json.amount number_to_currency(item.amount / 100.0)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user