waynerobinson/xeroizer — Issue #30: Wrong xml when LineItem has Tracking Categories (v 0.4.0)
Author: layby42
Created: 2012-02-20 08:05:55+00:00
State: open

Hi,

When line item has tracking categories, gem generates wrong xml (to_xml):
- line item start
- tracking tag start <- not needed
- tracking tag start
- tracking category tag start
- ...
- tracking category tag end
- tracking tag end
- tracking tag end <- not needed
- line item tag end
please see example here http://blog.xero.com/developer/api/invoices/#LineItems

This issue cause PostDataInvalidException: Object reference not set to an instance of an object. Impossible to create invoice.

Best wishes,
Oxana