Page 1 of 1

Purchase Invoice plugin

PostPosted: Wed May 03, 2017 5:02 pm
by Professional
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

Re: Purchase Invoice plugin  Topic is solved

PostPosted: Wed May 03, 2017 5:23 pm
by Scott.Pearce
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.

Re: Purchase Invoice plugin

PostPosted: Wed May 03, 2017 6:42 pm
by Professional
Thanks Scott, will give that a try.
Cheers

Re: Purchase Invoice plugin

PostPosted: Sat May 06, 2017 1:35 pm
by Mike.Sheen
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.