Sha256: 5c1f732d2a8ae4e39a7dbe03a74b103cfe6c9fc30d2a04b0c0f34090b38f9d26

Contents?: true

Size: 290 Bytes

Versions: 23

Compression:

Stored size: 290 Bytes

Contents

json.invoices do
  json.array! organization.invoices.order_by('ended_at.desc') do |invoice|
    json.period invoice.period_label
    json.amount AccountingjsSerializer.serialize(invoice.total_due)
    json.paid invoice.paid?
    json.link mno_enterprise.invoice_path(invoice.slug)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.1 app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder
mno-enterprise-api-3.0.0 app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder
mno-enterprise-api-2.0.0 app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder