As of 16.5, a new interface for lead time has been added to core Part
. As a result, a new lead time column has been created in cm/core/init/leadTimeColumn.cm
.
Extensions who have their own Lead Time column should migrate to the core version to avoid duplication.
Developers can migrate by:
leadTime()
in Part to get accurate value for core Lead Time columnoverridePartColumns()
on Part to return custom lead time column in place of core column/** * Lead Time Column for Parts */ public class LeadTimeColumn extends BasicPartColumn { /** * Constructor. */ public constructor() { super("coreLeadTime"); } /** * Initial Visibility. */ public symbol[] initialVisibility() { return [#none]; } /** * Return property value for part. */ public Object value(Part part, Space space) { return part.leadTime(); } }