Get the kit header from the kit component
Hi,
Language VB .Net.
When I'm enumerating the sales order lines
and I encounter a kit component
how can I directly refer to it's header?
I know it must be something to do with lSalesOrderline.KitHeader but I can't seem to find the correct syntax.
The overall goal is to find out when a kit header item has any components on backorder, what I am trying to achieve is to set a line custom field on the header which would be set based on the component backordered quantity.
Cheers
Language VB .Net.
When I'm enumerating the sales order lines
- Code: Select all
For Each lSalesOrderLine As JiwaSales.SalesOrder.SalesOrderLine In SalesOrderForm.SalesOrder.SalesOrderLines
and I encounter a kit component
- Code: Select all
lSalesOrderLine.KitLineType = 2
how can I directly refer to it's header?
I know it must be something to do with lSalesOrderline.KitHeader but I can't seem to find the correct syntax.
The overall goal is to find out when a kit header item has any components on backorder, what I am trying to achieve is to set a line custom field on the header which would be set based on the component backordered quantity.
Cheers