Pricing Scheme Ignored  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Re: Pricing Scheme Ignored

Postby neil.interactit » Fri Jun 05, 2015 1:06 pm

Back to the original question ...

Tried without DoLineCalculationsFromExGSTSellPrice() ... it is still creating sales orders that do not have the pricing scheme applied.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Pricing Scheme Ignored

Postby neil.interactit » Tue Jun 09, 2015 2:54 pm

Bump
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Pricing Scheme Ignored

Postby Scott.Pearce » Tue Jun 09, 2015 5:48 pm

Try *not* doing the line:

Code: Select all
salesOrder.SalesOrderLines[newKey].DoLineCalculationsFromExGSTSellPrice();


Did this work?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Pricing Scheme Ignored

Postby neil.interactit » Tue Jun 09, 2015 6:17 pm

No. No go. Removing that lline had no effect.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Pricing Scheme Ignored

Postby Scott.Pearce » Wed Jun 10, 2015 9:44 am

Can you post a sample plugin .xml file here?

Like, can you strip out all the un-necessary stuff and give me something that illustrates just the issue. For example, throw together a plugin that creates a sales order, adds a line, and sets the properties you want, AND suffers from the issue. Do this using the JiwaDemo database.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Pricing Scheme Ignored

Postby neil.interactit » Wed Jun 10, 2015 11:04 am

Hi Scott, I have emailed you the source code.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Pricing Scheme Ignored  Topic is solved

Postby 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 976 times
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Pricing Scheme Ignored

Postby neil.interactit » Thu Jun 11, 2015 5:59 pm

Hi Scott,

I cross checked your sample back into my code ... functionally identical. If it works for you it should be fine with the client ... I am getting them to check their pricing scheme setup.

Thanks,
Neil
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Previous

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests