Skip to content

Fails to create invoice. No invoice_items included? #12

@rept

Description

@rept

Hi,

First of all thanks for this gem, I've been able to quickly get customers out of Zoho, now I'm trying to send invoices but I'm running into some trouble.

This is what ZohoInvoice self looks like, you can see it includes invoice_items:

invoice

However when I check this: XMLString => self.to_xml

I don't see any InvoiceItems

"<?xml version="1.0"?>
<Invoice>
  <InvoiceNumber>18</InvoiceNumber>
  <CustomerID>562674000000039020</CustomerID>
  <InvoiceDate>2014-10-17</InvoiceDate>
  <InvoiceItems><InvoiceItem/>
<InvoiceItem/>
<InvoiceItem/>
<InvoiceItem/>
<InvoiceItem/>
<InvoiceItem/>
</InvoiceItems>
</Invoice>
"

This is the result.body I'm getting:

'Code': 4091
'Message': Select an item or give a description to create the invoice.
'Status': 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions