Page 1 of 1

Sales Order SalesOrderLineObject.KitLineType

PostPosted: Tue Nov 10, 2015 1:40 pm
by indikad
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.

Re: Sales Order SalesOrderLineObject.KitLineType  Topic is solved

PostPosted: Fri Nov 13, 2015 11:24 am
by Scott.Pearce
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.

Re: Sales Order SalesOrderLineObject.KitLineType

PostPosted: Thu Nov 19, 2015 4:43 pm
by indikad
Thanks!