intacct / intacct-sdk-js

Official repository of the Sage Intacct SDK for JavaScript in Node.js
https://developer.intacct.com/tools/sdk-node-js/
Apache License 2.0
23 stars 33 forks source link

AR Invoice fulfillmentStatus set incorrectly #77

Closed lprichar closed 2 years ago

lprichar commented 2 years ago

If you try to create an invoice with a fulfillmentStatus like:

const command = new OrderEntryTransactionLineCreate();
command.fulfillmentStatus = 'Undelivered'

Then you get back: XL03000003 XML Parse schema error: Error 1843: Element 'fulfillmentstatus': Character content other than whitespace is not allowed because the content type is 'element-only'. That happens because fulfillmentstatus is being treated as a string rather than an element with subelements. See also: https://developer.intacct.com/api/order-entry/order-entry-transactions/#create-order-entry-transaction-legacy.

dylan-holt-sage commented 2 years ago

PR related to this issue has been reviewed and merged to upcoming JS release. Closing this issue.