Batch Backorder Release
Entity Details
| ID | 98ae2f56-3b2a-4109-9614-1ea6b3a4934f |
|---|---|
| Name | Batch Backorder Release |
| Type | PROCESS |
| Module | Outbound |
| Description | The scheduled realisation of Backorder Release that satisfies backordered items from stock physically on hand in the warehouse. Runs as a Quartz job per warehouse. Its working set is Sales Order Items at status 04 with a backordered quantity greater than zero, restricted to the order types the Backorder Indicator currently permits, and with every Option H (Hotline) item removed. Items are processed VOR first, then EMERGENCY, then everything else. |
| Neo4j Synced | Yes |
| Created | 2026-12-04 16:45:54 |
| Updated | 2026-12-05 06:40:51 |
Properties (JSON)
{'trigger': 'Quartz schedule, per warehouse', 'evidence': [{'note': 'fetches status 04 via findByWarehouseIdAndStatus', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '64', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'Option H removed; quantity_back_ordered > 0 required', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '73-82', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'partition into VOR / EMG / stock by order type', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '84-94', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'priority concatenation VOR then EMG then stock', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '96-106', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'item cap from backorder.release.items.count', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '107-119', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'chunked by backorder.release.batch.size', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '121-126', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'BO_BATCH_SIZE_PER_REQUEST default 5; BO_RELEASE_ITEM_COUNT default *', 'path': 'src/main/resources/application.yml', 'lines': '653-654', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'VOR 01, EMG 11, STK 32', 'path': 'src/main/java/com/mb/out/dto/OrderType.java', 'lines': '4', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'an unfulfilled feedback item returns early, leaving the line at 04', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '570-572', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'an unfulfilled feedback item returns early, leaving the line at 04', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '570-572', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'processCompleteFulfilment sets status 09', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '720-736', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'processPartialFulfilment splits the line and sets 09 on the released part', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '746-797', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'the remainder line opens at 04 with C-code 71; a cancelled quantity at 06', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '814-830', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'updateRejectionCcodes: 72 plus S9 for STOCK, otherwise C9', 'path': 'src/main/java/com/mb/out/service/BackOrderReleaseService.java', 'lines': '909-912', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'order by s.id asc — the ageing sequence', 'path': 'src/main/java/com/mb/out/repository/SoItemRepository.java', 'lines': '95-97', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}, {'note': 'partition preserves the order it reads', 'path': 'src/main/java/com/mb/out/configuration/quartz/BackOrderReleaseJob.java', 'lines': '84-94', 'snapshot': 'Outbound Backend @ feature-LNS_All_Together'}], 'outcomes': {'04': 'a new line carrying the unsatisfied remainder, C-code 71', '06': 'a new line for a quantity the release cancelled, C-code 72 plus a kill code (S9 for order type 32, otherwise C9)', '09': 'the released line, fully or partly satisfied'}, 'synonyms': ['Batch BO Release', 'SFS release', 'Sale From Stock release', 'BATCH_BO_REL'], 'working_set': 'so_item.status = 04 AND quantity_back_ordered > 0 AND order_options does not contain H', 'ageing_order': 'Within each order-type bucket, oldest first. The working-set query orders by s.id ascending and the partition preserves that order, so with an indicator of 3 the sequence is VOR oldest-to-newest, then EME oldest-to-newest, then STK oldest-to-newest.', 'stock_source': 'warehouse stock on hand', 'priority_order': ['01 VOR', '11 EME', '32 STK'], 'item_cap_default': '* (unparseable, so the cap is not applied and the whole working set is processed)', 'control_parameter': 'BATCH_BO_REL', 'third_bucket_note': "The third partition branch is written as a catch-all else, but only an order type the Backorder Indicator permitted can reach it, and the indicator only ever names 32, 11 and 01. The third bucket is therefore the STK bucket. MIRA's other order types — pre-pick 03 and 12, Core Parts Return 52, and the delivery-note order types 06, 07 and 08 — are NOT touched by Batch Backorder Release.", 'batch_size_default': 5, 'item_cap_implication': 'The cap limits what one run proposes, not what is ever released. An item past the cap stays at 04 and waits for the next run, and because the list is rebuilt in ageing order each time it moves forward rather than starving. A cap below daily volume can however leave STK unserved behind VOR and EME.', 'unsatisfied_line_behaviour': 'A line the release cannot satisfy is left at status 04 untouched; it is not rejected and not moved to 08.'}
History
Outgoing Relationships
| Type | Target | Weight |
|---|---|---|
| scopedBy | Backorder Indicator | 1.0 |
| prioritises | Order Type | 1.0 |
| DEPENDS_ON | Supersession | 1.0 |
| DEPENDS_ON | Available For Sale | 1.0 |
| excludes | Order Option H - Hotline processing | 1.0 |
| excludes | Bypass | 1.0 |
| PRODUCES | SO Status 09 | 1.0 |
| PRODUCES | SO Status 04 - Backordered | 1.0 |
| PRODUCES | SO Status 06 - Cancelled | 1.0 |
| precedes | Delivery Creation | 1.0 |
| DEPENDS_ON | Order Option | 1.0 |
| REFERENCES | Delivery Note Order Type | 1.0 |
| hasRelatedGuide | KBArticle:batch-backorder-release | 1.0 |
Incoming Relationships
| Source | Type | Weight |
|---|---|---|
| Backorder Release | realisedBy | 1.0 |