# Complete and finally close a production order

> Close an order whose production is finished with Complete, lock it with Close Finally once corrections are done; cancel the order when necessary.

URL: https://erpdocs.corexlogic.com/en/uretim/islemler/uretim-emrini-kapatma

- **Type:** Task
- **Module:** Manufacturing
- **Menu path:** Üretim › Üretim Emirleri › emir detayı › Tamamla · Kesin Kapat (Production › Production Orders › order detail › Complete · Close Finally)
- **Screen route:** `/erp/manufacturing/orders/{id}`
- **Required permission:** `erp-manufacturing-orders.edit`
- **Prerequisites:**
  - For Complete, the order is **Üretimde** (In Production); at least one output and at least one material consumption are posted; there is no open failed backflush.
  - For Close Finally, the order is **Tamamlandı** (Completed).

The end of a production order has two steps: **Tamamla** (Complete) finishes production, **Kesin Kapat** (Close
Finally) closes the books. In the time between, an incorrect consumption or output can be
[corrected](https://erpdocs.corexlogic.com/en/uretim/islemler/sarf-cikti-duzeltme).

## Steps

1. On the detail of the order in production, click **Tamamla** (Complete).
   <!-- action: click · target: "Tamamla" · expect: "The 'Üretim emri tamamlansın mı?' (Complete the production order?) window; Planlanan (Planned) and Üretilen (Produced) are shown separately" -->

   ![Order in production — operations tab](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/emir-uretimde.png)
   1. Operations — plan copied from the routing
   2. Confirmed yield and scrap
   3. Actual time from confirmations
   4. Complete — when output and consumption exist

2. Check the planned and produced quantities and click **Emri Tamamla** (Complete Order).
   <!-- action: click · target: "Emri Tamamla" · expect: "Status Tamamlandı (Completed); only Kesin Kapat (Close Finally) remains in the button bar" -->

   ![Complete production order dialog](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/emir-tamamla.png)
   1. Planned and produced shown separately
   2. Complete Order

3. When there is no further need for corrections, click **Kesin Kapat** (Close Finally).
   <!-- action: click · target: "Kesin Kapat" · expect: "The 'Üretim emri kesin kapatılsın mı?' (Close the production order finally?) window — Geri alınamaz (Cannot be undone)" -->
4. Click **Kesin Kapat** (Close Finally) in the window.
   <!-- action: click · target: "Kesin Kapat" · expect: "Status Kapatıldı (Closed); the order is read-only" -->

   ![Close production order permanently dialog](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/emir-kesin-kapat.png)
   1. Close Permanently — corrections are closed too

**Result:** In **Tamamlandı** (Completed), the order no longer accepts new consumptions, outputs and confirmations, but it remains open to corrections of past postings; in **Kapatıldı** (Closed), no posting can be made, including corrections. There is no way back — if a correction is needed later, a new order is opened.

## Rules for completion

- Only an order in **Üretimde** (In Production) can be completed; an order in **Yayınlandı** (Released) (with no
  physical postings) cannot be completed — it is cancelled.
- At least one **output** and at least one **material consumption** are required. If there is output but no
  consumption, the detail shows "Tamamlamak için en az bir malzeme sarfı gerekir." (At least one material consumption is
  required to complete.) instead of **Tamamla** (Complete).
- **The plan does not have to be filled**: UE-2026-000001 was planned for 3 ADET (pcs), 2 ADET were produced and it was
  completed (67%). Missing consumption is not an obstacle either.
- If there is an **open failed backflush**, the server rejects it; first retry it or close it with a reason.
- On completion: stock reserved for this order from sub-orders and not consumed is released; the difference between
  the value consumed and the value applied to the outputs (closing variance) is calculated. No new stock is posted.
  Accounting details are outside the scope of this document.

## Rules for final closing

- Only a **Tamamlandı** (Completed) order can be closed finally; no reason is asked for.
- On a closed order, consumptions, outputs, confirmations and **their corrections** are not accepted. The purpose is to
  stop late changes such as reducing consumption afterwards with a correction or posting too much.

![Closed order — read only](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/emir-kapatildi.png)
1. Status: Closed
2. Consumption documents of the order
3. Output documents of the order
4. Planned and consumed

## Cancellation

If production will not take place, use **İptal Et** (Cancel) (on an order in Taslak (Draft), Yayınlandı (Released) or
Üretimde (In Production)). In the **Üretim emri iptal edilsin mi?** (Cancel the production order?) window, the **İptal
Gerekçesi** (Cancellation Reason) is required (at most 512 characters), then click **Emri İptal Et** (Cancel Order).
Cancellation is terminal; the order cannot be reopened. If there is consumption or output that has not been reversed,
the server rejects it: first make a [correction](https://erpdocs.corexlogic.com/en/uretim/islemler/sarf-cikti-duzeltme). Example: **UE-2026-000005** was
cancelled with the reason "Talep düştü, üretim yapılmayacak." (Demand dropped, production will not take place.)

![Cancel production order dialog](https://erpdocs.corexlogic.com/en/en/img/screens/uretim/emir-iptal.png)
1. Cancel reason — required, max 512 characters
2. Cancel Order — cannot be undone

### Common messages

| Message | English meaning | Cause |
|---|---|---|
| Yalnız Üretimde durumundaki üretim emri tamamlanabilir. | Only a production order in In Production status can be completed. | The order is Released or already closed. |
| Üretim çıktısı olmayan emir tamamlanamaz — önce çıktı kaydedin ya da emri iptal edin. | An order without production output cannot be completed — first post output or cancel the order. | No output. |
| Malzeme sarfı olmayan emir tamamlanamaz — önce sarf kaydedin ya da emri iptal edin. | An order without material consumption cannot be completed — first post consumption or cancel the order. | No consumption. |
| Emirde çözülmemiş 1 hatalı geri sarf var — tamamlamadan önce yeniden deneyin ya da gerekçeyle kapatın: … | The order has 1 unresolved failed backflush — retry it or close it with a reason before completing: … | Open failed backflush. |
| Yalnız tamamlanmış üretim emri kesin kapatılabilir — önce emri tamamlayın. · Emir zaten kesin kapatılmış. | Only a completed production order can be closed finally — complete the order first. · The order has already been closed finally. | Close Finally rule. |
| Yalnız Taslak, Yayınlandı ya da Üretimde durumundaki üretim emri iptal edilebilir. | Only a production order in Draft, Released or In Production status can be cancelled. | Completed/closed order. |
| Emirde geri alınmamış malzeme sarfı var (…). İptalden önce sarf düzeltmesi yapılmalıdır. | The order has material consumption that has not been reversed (…). A consumption correction must be made before cancellation. | Correct the consumption first. |
| Emirde geri alınmamış üretim çıktısı var (…). İptalden önce çıktı düzeltmesi yapılmalıdır. | The order has production output that has not been reversed (…). An output correction must be made before cancellation. | Correct the output first. |
| İptal gerekçesi zorunludur. | A cancellation reason is required. | The reason is empty. |

## Related

- [Production orders screen](https://erpdocs.corexlogic.com/en/uretim/ekranlar/uretim-emirleri)
- [Correct consumption and output](https://erpdocs.corexlogic.com/en/uretim/islemler/sarf-cikti-duzeltme)
- [Failed backflushes](https://erpdocs.corexlogic.com/en/uretim/ekranlar/hatali-geri-sarflar)
