1
0
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:
Sylvain 2019-01-10 13:05:57 +01:00
parent 8c57588876
commit 4b5bd74188

View File

@ -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