# Write an operation condition and time formula in a super routing

> In the routing of a configurable item, define in which configuration an operation is performed and how the setup, machine and labor times are calculated.

URL: https://erpdocs.corexlogic.com/en/uretim/islemler/super-rota-kurali-yazma

- **Type:** Task
- **Module:** Manufacturing
- **Menu path:** Üretim › Üretim Mühendisliği › Rotalar › rota › Yeni Revizyon (Production › Production Engineering › Routings › routing › New Revision)
- **Screen route:** `/erp/manufacturing/routings/{id}`
- **Required permission:** `erp-manufacturing-routings.edit`
- **Prerequisites:**
  - The routing's output card is configurable and its configuration characteristics are defined.

A super routing is the single routing of a configurable card. It uses the same language as the BOM line rule:
[Conditions and formulas](https://erpdocs.corexlogic.com/en/uretim/kosullar#super-rota).

## Steps

1. In **Rotalar** (Routings), open the routing of the configurable card and click **Yeni Revizyon** (New Revision).
   <!-- action: click · target: "Yeni Revizyon" · expect: "The Yeni Revizyon (New Revision) window; the operations of the latest revision are prefilled, and the rule fields of operations with rules are expanded" -->
2. On the row of the operation to receive a rule, click the **Seçim koşulu ve formüller** (Selection condition and formulas) button (screen reader name 'N numaralı operasyonun seçim koşulu ve formülleri' (Selection condition and formulas of operation N)).
   <!-- action: click · target: "40 numaralı operasyonun seçim koşulu ve formülleri" -->
3. If the operation is to be performed only in some configurations, enter the expression in the **Seçim koşulu** (Selection condition) field and click **Sına** (Test).
   <!-- action: fill · target: "Seçim koşulu" · value: "KORUMA = EVET" -->
4. If the time depends on the configuration, enter the expression in the **Hazırlık formülü (dk)** (Setup formula, min), **Makine formülü (dk)** (Machine formula, min) or **İşçilik formülü (dk)** (Labor formula, min) field. For a field left empty, the fixed time on the row is used.
   <!-- action: fill · target: "İşçilik formülü (dk)" · value: "3 * BOY" -->

   ![Routing revision — operation selection condition and time formulas](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/kosul-rota-revizyon.png)
   1. Selection condition and formulas — opens below the row
   2. Selection condition — operation comes when Yes
   3. Time formula — replaces the fixed time
   4. Check — validation without saving
   5. Create Revision — draft revision

5. Save the draft revision with **Revizyonu Oluştur** (Create Revision), then release the revision.
   <!-- action: click · target: "Revizyonu Oluştur" -->

**Result:** On orders opened after the revision is released, operations are selected according to the configuration and times are calculated from the formula; on the routing detail, the rule text appears under each operation.

![Super routing — operation selection conditions and time formulas](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/kosul-rota.png)
1. Conditional operation
2. Rule text — condition and formula
3. Fixed time — replaced by the formula

## What you need to know

- If the selection condition is **Evet** (Yes), the operation is included in the order; if it is **Hayır** (No) or
  **unknown**, it is not. Empty = always.
- The formula **replaces** the fixed time (it is not added, unlike the quantity formula in the BOM). The result must be
  between 0 and 1,000,000 minutes and is rounded to two decimals. Machine and labor are per base quantity, setup is per
  lot.
- If a value read by the formula is empty, the order is not opened:
  `N numaralı operasyonun işçilik formülü hesaplanamadı — konfigürasyonda gereken değer yok.` (The labor formula of
  operation N could not be calculated — the required value is missing in the configuration.) If the result is not a
  number: `… sayı vermeli.` (… must return a number.); if it is out of range:
  `… 0 ile 1000000 dakika arası değer vermeli.` (… must return a value between 0 and 1000000 minutes.)
- The selection condition must return Yes/No: `N numaralı operasyonun seçim koşulu Evet/Hayır vermeli.` (The selection
  condition of operation N must return Yes/No.)
- If no operation is selected at all:
  `Konfigürasyon rotanın hiçbir operasyonunu seçmiyor — rotanın seçim koşullarını düzeltin.` (The configuration selects
  none of the routing's operations — correct the routing's selection conditions.)
- A rule can be saved only in the routing of a configurable card:
  `Seçim koşulu ve formüllü süre yalnız yapılandırılabilir kartın rotasında kullanılır.` (Selection conditions and
  formula times are used only in the routing of a configurable card.)
- For bulk entry, use the **SecimKosulu**, **HazirlikFormulu**, **MakineFormulu** and **IscilikFormulu** columns on the
  **Operasyonlar** (Operations) sheet of the Routings import workbook.

## Example — sized conveyor (DMO-KSL-01)

| Op. | Rule | On the order with BOY 12.5 · PVC · Koruma Evet |
|---|---|---|
| 10 Profil kesim (Profile cutting) | Machine formula `2 * BOY * 0.8` | Machine 20 min |
| 20 Şase ve makara montajı (Frame and roller assembly) | Labor formula `30 + 6 * BOY` | 105 min |
| 30 Bant montajı ve gerdirme (Belt assembly and tensioning) | Labor formula `EGER(BANT_TIPI = 'PU', 40, 25) + 2 * BOY` | 50 min |
| 40 Koruma kapağı montajı (Guard cover assembly) | Selection condition `KORUMA = EVET`, labor `3 * BOY` | 37.5 min |
| 60 Çalışma testi (Running test) | Labor `EGER(BOY > 10, 30, 20)` | 30 min |

## Related

- [Conditions and formulas](https://erpdocs.corexlogic.com/en/uretim/kosullar)
- [Routings](https://erpdocs.corexlogic.com/en/uretim/ekranlar/rotalar)
