Files
sx-fc/app/views/api/customers/show.json.jbuilder
2017-06-20 17:57:50 +06:30

7 lines
291 B
Ruby

json.extract! @customer, :id, :name, :company, :contact_no,:salution,
:gender,:nrc_no,:address,:card_no, :membership_type,
:membership_id, :created_at
json.invoices do
json.array! @customer.lastest_invoices ,:id, :receipt_no, :receipt_date, :sale_status, :payment_status
end