faisalkh
asked on
Suitescript post to create a sale record
Hello Experts
I have a SuiteScript which I have made externally available to post the data and create a cash sale record. I am able to save the record successfully, however the problem is to identify an item type and if its a lot-numbered then i have to configure the inventory details. Which I dont understand how I can go about doing this?
Can someone please advise?
Many thanks in advance.
Regards
Kay
code.txt
I have a SuiteScript which I have made externally available to post the data and create a cash sale record. I am able to save the record successfully, however the problem is to identify an item type and if its a lot-numbered then i have to configure the inventory details. Which I dont understand how I can go about doing this?
Can someone please advise?
Many thanks in advance.
Regards
Kay
code.txt
Hello, What exception are you getting when you post your data? Thanks
ASKER
Hi
Thanks for looking into this for me.
exceptoin :
Code: USER_ERROR
Details: Inventory items must have a positive amount.
Thanks
Thanks for looking into this for me.
exceptoin :
Code: USER_ERROR
Details: Inventory items must have a positive amount.
Thanks
Can you show me how is your jsonLines string?
ASKER
[{
item:"820",
qty:"2",
price:"-1",
rate:"-19.99",
taxcode:"14"
}]
item:"820",
qty:"2",
price:"-1",
rate:"-19.99",
taxcode:"14"
}]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.