by Scott.Pearce » Wed Jun 10, 2015 12:01 pm
I couldn't get the main form to load on my environment and didn't want to spend too much time on it.
I've attached a sample project that simply logs on, creates a so, adds a part, and saves the so. It also sets the same properties as your earlier code snippet was setting. The price scheme is used OK for me.
This was done against 7.0.119.0 - maybe running it against your 117 demo environment will give a different result?
In the code you may have to change the server and database name to logon to your database. Also see in the code comments that you should add a debtor specific price for debtor 1001, part no. 1170, percentage -90 in demo data. And of course, you will need to fix up references.
I note that in your code snippet you set the so InitiatedDate to the contents of a variable - I wonder what the contents of that variable is and whether it has any bearing on the issue.
- Attachments
-
SalesOrderTest.rar
- (69.8 KiB) Downloaded 975 times
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials