?
Solved

Suitescript post to create a sale record

Posted on 2012-09-04
5
Medium Priority
?
1,146 Views
Last Modified: 2012-09-05
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
0
Comment
Question by:faisalkh
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:newbie27
ID: 38367484
Hello, What exception are you getting when you post your data? Thanks
0
 

Author Comment

by:faisalkh
ID: 38367497
Hi
Thanks for looking into this for me.

exceptoin :
Code: USER_ERROR
Details: Inventory items must have a positive amount.

Thanks
0
 
LVL 8

Expert Comment

by:newbie27
ID: 38367505
Can you show me how is your jsonLines string?
0
 

Author Comment

by:faisalkh
ID: 38367510
[{
item:"820",
qty:"2",
price:"-1",
rate:"-19.99",
taxcode:"14"
}]
0
 
LVL 8

Accepted Solution

by:
newbie27 earned 2000 total points
ID: 38367512
try
[{
item:"820",
qty:"2",
price:"-1",  
rate:"19.99",
taxcode:"14"
}]
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question