Sales Order SalesOrderLineObject.KitLineType  Topic is solved

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

Sales Order SalesOrderLineObject.KitLineType

Postby indikad » Tue Nov 10, 2015 1:40 pm

in 6.513
i have a bit of code where it checks if the current line is of such as below ( sales order line changed event)

SalesOrderLineObject.KitLineType = 2

my question is -
in Jiwa 7 what is the equivalent for KitLineType = 2

I can see that there are constant strings such as e_SalesOrderNormalLine for a normal line in the property KietLineType in Jiwa 7.
However I want to make sure the i am filtering for the correct line type in Jiwa 7 when converting from 6513.
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: Sales Order SalesOrderLineObject.KitLineType  Topic is solved

Postby Scott.Pearce » Fri Nov 13, 2015 11:24 am

The enumeration has not changed. You can continue to use 2, or change it to JiwaSales.SalesOrder.SalesOrder.SalesOrderKitLineTypes.e_SalesOrderKitComponent for readability. It's just that in crappy old vb script one could not use enumerations - so the underlying integer value had to be used instead. The enumeration, in JiwaSales.SalesOrder.SalesOrder is:

Code: Select all
        Public Enum SalesOrderKitLineTypes
            e_SalesOrderNormalLine = 0
            e_SalesOrderKitHeader = 1
            e_SalesOrderKitComponent = 2
        End Enum


and is the same as it was in v6.
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: Sales Order SalesOrderLineObject.KitLineType

Postby indikad » Thu Nov 19, 2015 4:43 pm

Thanks!
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests