Manufacturing Management

BOM Rule

BOM Rules in ianaiERP allow you to create dynamic Bills of Materials with conditional logic and automated component selection. This powerful feature enables flexible manufacturing configurations that adjust based on the attributes of your built items.

Overview

  • BOM Rules automate the process of determining which components are included in a BOM.

  • Rules can filter items based on various criteria and calculate quantities dynamically.

  • This feature is especially useful for configurable products or those with multiple variations.

Rule Expression Format

BOM Rules use a structured format with conditions, dynamic item filters, and quantity calculations.

Conditions Format

Conditions use the following syntax:

Plain text

Where:

  • label is the attribute or option of the built item

  • operator is the comparison method

  • value is the criteria for comparison

  • ; separates each condition

Special characters | and ; are reserved for syntax and cannot be used as key values.

Example:

Plain text

Supported Operators

Operator

Description

Format

Applicable Value Types

Equal

Exact match

=

text, number, date, boolean, list

NotEqual

Not matching

!=

text, number, date, boolean, list

Blank

Is empty

blank

text, number, date, list

NotBlank

Is not empty

not_blank

text, number, date, list

GreaterThan

Greater than

>

number, date

GreaterThanEqual

Greater than or equal

>=

number, date

LessThan

Less than

<

number, date

LessThanEqual

Less than or equal

<=

number, date

Contains

Contains text

contains

text

NotContains

Doesn't contain text

not_contains

text

StartsWith

Starts with text

starts_with

text

NotStartsWith

Doesn't start with text

not_starts_with

text

EndsWith

Ends with text

ends_with

text

NotEndsWith

Doesn't end with text

not_ends_with

text

In

Value in list

in

list

NotIn

Value not in list

not_in

list

Dynamic Item Filters

Dynamic item filters let you automatically select BOM components based on criteria:

Example:

Plain text

Where:

  • filter_by_* functions create filter conditions

  • order() functions determine sorting order

  • Variables in curly braces {xxx} reference the built item's attributes or options

Example:

Plain text

Quantity Calculations

Quantity calculations allow you to dynamically adjust the quantity of BOM components:

Dynamic Quantity Calculation

Quantities can be expressed as static values or dynamic calculations:

  • Static: 100

  • Simple addition: 100+{quantity}

  • Formula with multiple variables: {width}*{height}/100

Where variables in curly braces {xxx} reference the built item's attributes or options.

Creating BOM Rules

To create a BOM Rule:

  1. Navigate to Manufacturing > BOM in the main menu.

  2. Find and select BOM relates to the assembly item for which you want to create a rule-based BOM.

  3. In the BOM detail view, Open the BOM Rules tab.

  4. Create rule-based components.

  5. Add your rule expressions following the formats described above.

Best Practices

  1. Test your BOM rules with various configurations to ensure they produce the expected results.

  2. Use clear and meaningful attribute names in your rules for better readability.

  3. Start with simple rules and gradually add complexity as needed.

  4. Document your rule logic separately for future reference.

  5. Regularly review and update BOM rules when product specifications change.

For more detailed information on advanced BOM rule techniques and optimization, please refer to the specific sections in this documentation.