Purchase Invoice plugin  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Purchase Invoice plugin

Postby Professional » Wed May 03, 2017 5:02 pm

Hi,

We have a plugin for the purchase invoice form on V157 and are having issues getting it running on V175.
The attachment shows when we try to use the object line. (which is a JiwaPurchaseInvoices.Line object), on version V157 you have the option to use the property ExLineTotal, but on version V175 the property ExLineTotal is not available. Because we use the ExLineTotal value to do some calculations regarding the PurchaseInvoice grid, we need this property so the plugin does all calculations correctly.

What do we need to change?

Thanks,
Jeff
Attachments
Capture2.PNG
Screenshots
Professional
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Mon Dec 08, 2008 3:45 pm

Re: Purchase Invoice plugin  Topic is solved

Postby Scott.Pearce » Wed May 03, 2017 5:23 pm

Hi Jeff,

Considerable cleaning up of the purchase invoice line properties was done between those versions. Everything should still be there, albeit named a little differently. In your case, use "LineTotalExTax" instead of "ExLineTotal".

Scott.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Purchase Invoice plugin

Postby Professional » Wed May 03, 2017 6:42 pm

Thanks Scott, will give that a try.
Cheers
Professional
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Mon Dec 08, 2008 3:45 pm

Re: Purchase Invoice plugin

Postby Mike.Sheen » Sat May 06, 2017 1:35 pm

I noticed in your screenshot the line of code:

Code: Select all
InventoryJiwaGrid.Parent.Parent.Parent.Parent.Parent.Parent.Parent.GetType()


There's probably a much better and robust way of doing whatever it is that code is trying to do. Seeing all those .Parent references makes me cringe.
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: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 18 guests

cron