ExtPrice - sales order  Topic is solved

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

ExtPrice - sales order

Postby Riyaz » Wed Feb 27, 2019 5:56 pm

Hi There

I’m trying to amend the sales lines item value through plugin, am changing salesexgst but it’s not making any effect in the calculations , looks like the value to change is ExtPrice, can you pls advise on how to change it via plugin
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: ExtPrice - sales order  Topic is solved

Postby Scott.Pearce » Thu Feb 28, 2019 10:10 am

You should try changing the line's .DiscountedPrice property - this is what is populated into the "ExtPrice" field.
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: ExtPrice - sales order

Postby Riyaz » Fri Mar 01, 2019 11:27 am

Thanks Scott

That worked fine, am also trying to set a tax rate as am updating the CartageCharge1 value, but it says its read only, have tried the below

salesOrderH.CartageCharge1.TaxRate.RecID
salesOrderH.CartageCharge1.TaxRate.Rate
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: ExtPrice - sales order

Postby Scott.Pearce » Fri Mar 01, 2019 12:07 pm

TaxRates are read, you do not set the individual properties.

Code: Select all
string MyTaxID = "GST07000000000000000";
salesOrderH.CartageCharge1.TaxRate.ReadRecord(MyTaxID);
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: ExtPrice - sales order

Postby Riyaz » Wed Mar 20, 2019 12:30 pm

Hi Scott

Thanks that worked, but whats been happening is that, we have debtor price scheme enabled, and its overriding the price that the plugin sets, is there any way around it?
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: ExtPrice - sales order

Postby Mike.Sheen » Tue Mar 26, 2019 2:35 pm

Riyaz wrote:Hi Scott

Thanks that worked, but whats been happening is that, we have debtor price scheme enabled, and its overriding the price that the plugin sets, is there any way around it?


Are you saying the reading of the tax rate is changing the price?

If so, then just set the price to what you want after reading the tax rate in your code.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests