Open kuldip1 opened 2 years ago
I have the same question. I've tried different array/objects and the $create = new InvoiceCreate(); class as well without success. The closest I can get is Failed! Response control status failure - XL03000003 XML Parse schema error: Error 1871: Element 'invoiceitems': Missing child element(s). Expected is ( lineitem ).. Line: 1, column: 0.
Any way to get an example of create invoice in the SDK for PHP?
Yes, I am done with create sales order
Thanks & Regards, Makadiya Kuldip.
On Sun, Oct 20, 2024 at 8:35 PM muddy004 @.***> wrote:
I have the same question. I've tried different array/objects and the $create = new InvoiceCreate(); class as well without success. The closest I can get is Failed! Response control status failure - XL03000003 XML Parse schema error: Error 1871: Element 'invoiceitems': Missing child element(s). Expected is ( lineitem ).. Line: 1, column: 0.
Any way to get an example of create invoice in the SDK for PHP?
— Reply to this email directly, view it on GitHub https://github.com/intacct/intacct-sdk-php/issues/181#issuecomment-2425033595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7D7P5F4RHGLPQTB6E4AH3Z4PBDDAVCNFSM6AAAAABQITB6ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGAZTGNJZGU . You are receiving this because you authored the thread.Message ID: @.***>
Hi
I had just setup this SDK in my system and I start create Inventory and Inventory Transaction Create but when I use to function setLines then it will show me error.
I had create array of lines.
Below is the code for the same
It throws me error
Fatal error: Uncaught Error: Call to a member function writeXml() on array in D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\Functions\InventoryControl\InventoryTransactionCreate.php:62 Stack trace: #0 D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\Xml\Request\OperationBlock.php(141): Intacct\Functions\InventoryControl\InventoryTransactionCreate->writeXml(Object(Intacct\Xml\XMLWriter)) #1 D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\Xml\RequestBlock.php(115): Intacct\Xml\Request\OperationBlock->writeXml(Object(Intacct\Xml\XMLWriter)) #2 D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\Xml\RequestHandler.php(144): Intacct\Xml\RequestBlock->writeXml() #3 D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\AbstractClient.php(97): Intacct\Xml\RequestHandler->executeOnline(Array) #4 D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\OnlineClient.php(36): Intacct\AbstractClient->executeOnlineRequest(Array, Object(Intacct\RequestConfig)) #5 D:\Projects\CustomPHP\intacct\crud-inventory.php(47): Intacct\OnlineClient->execute(Object(Intacct\Functions\InventoryControl\InventoryTransactionCreate)) #6 {main} thrown in D:\Projects\CustomPHP\intacct\vendor\intacct\intacct-sdk-php\src\Intacct\Functions\InventoryControl\InventoryTransactionCreate.php on line 62
Can you please guide me what we need to pass on setLines function do you have any reference or piece of code then I will check.