Define a rule on a BOM line
Module
Manufacturing
Menu path
Üretim › Ana Veriler › Ürün Ağaçları › ürün ağacı › revizyon › Düzenle (Production › Master Data › Bills of Materials › BOM › revision › Edit)
Screen route
/erp/manufacturing/boms/{id}/revisions/{revisionId}/editRequired permission
erp-manufacturing-boms.editPrerequisites
- The BOM's output card is configurable and its configuration characteristics are defined (Define a configuration characteristic).
- The BOM has an editable draft revision (a released revision does not change; open a new revision).
In a super BOM, each line is either unconditional (included in every order) or selected by a rule. The quantity can be fixed or calculated from the configuration. The complete language and 25 examples: Conditions and formulas.
Steps
- On the detail of the draft revision, click Düzenle (Edit).
Super BOM draft — rule summary of the lines - 1Rule summary — formula quantity
- 2Option condition and formula
- 3Edit Rule — Line Rule dialog
- 4In a formula line Quantity = constant part
- On the line to receive a rule, click the Kuralı Düzenle (Edit Rule) button (the settings icon on the right of the line; screen reader name 'N. satırın kuralını düzenle' (Edit the rule of line N)).
- If the line is to be included for specific options, check the values under the relevant characteristic (one value of the same characteristic is enough; different characteristics are required together). For a Yes/No characteristic, select Fark etmez (Any), Evet (Yes) or Hayır (No).
Line Rule dialog — option condition and expression condition - 1Option condition — one of the ticked values (OR)
- 2Yes/No characteristic — written into the expression
- 3Expression condition — line comes when Yes
- 4Code buttons — insert at the cursor
- If a numeric limit or several characteristics are needed, enter the expression in the Koşul (Condition) field of the İfadeli koşul (Expression condition) section; you can insert codes with the Özellikler (Characteristics) and value buttons. Check it with Sına (Test).
- In the Formüllü miktar (Formula quantity) section, select the mode: Sabit miktar (Fixed quantity), Özellik × katsayı (Characteristic × factor) (the Özellik (Characteristic) and Katsayı (Factor) fields) or İfade (Expression).
- In expression mode, enter the formula in the Miktar (Quantity) field and click Sına (Test).
Line Rule dialog — Check and formula quantity - 1Check — validation without saving
- 2Quantity mode: fixed, characteristic × factor, expression
- 3Quantity formula — added to the line quantity
- 4Apply — takes effect when the revision is saved
- Close the window with Uygula (Apply). On a formula line, the form's Miktar (Quantity) field is the fixed part — enter
0if only the formula is to give the quantity. - Save the revision with Değişiklikleri Kaydet (Save Changes).
Result
The rule is written to the draft revision. Before releasing, test the extreme values with Configure and Test; once the revision is released, new orders are resolved with this rule.
What you need to know
- The option condition and the expression condition are required together (AND). If the expression condition is Hayır (No) or unknown, the line is not included.
- On a formula line, quantity = the Miktar (Quantity) field + the result of the formula; the result must be greater than zero.
- In Özellik × katsayı (Characteristic × factor) mode, only numeric characteristics (Tam Sayı (Integer), Ondalık
(Decimal)) are listed; the factor must be greater than zero (
Formül katsayısı sıfırdan büyük olmalı.— The formula factor must be greater than zero.). - In expression mode, the expression cannot be left empty:
Miktar ifadesini yazın ya da sabit miktara dönün.(Enter the quantity expression or return to a fixed quantity.) - Sına (Test) checks the syntax and the codes; the result type (Yes/No, number) and value-dependent errors are shown only by Configure and Test or by releasing an order: Messages.
- The same card can appear on two lines only if their option conditions exclude each other; the expression condition
is not taken into account here (
Aynı stok kartı bir revizyonda yalnız bir malzeme satırında yer alabilir.— The same stock card can appear on only one material line in a revision.). - The window opens only in the BOM of a configurable output. For bulk entry, use the SecimKosulu and MiktarFormulu columns and the Satır Koşulları (Line Conditions) sheet of the Bills of Materials import workbook.