Add production order search and shift drill-down
This commit is contained in:
1 parent
6e8eb6f50f
commit
dcde029bc7
8 files changed
+742
-4
No files matched your search
@@ -221,3 +221,30 @@ completeness claim. Sources are still read sequentially, not transactionally.
|
||||
Invalid selections return a German page-level error (HTTP 400). Source/settings
|
||||
or rendering failures return a generic German error (HTTP 503), retaining the
|
||||
selection controls without exposing exception text or credentials.
|
||||
|
||||
## Fertigungsauftrag search
|
||||
|
||||
The web UI links to `/orders?q=...` for a complete or partial FA number. Search
|
||||
trims surrounding whitespace, rejects empty input, treats SQL wildcard characters
|
||||
literally, and caps results at 25 distinct FAs. An exact match is listed first;
|
||||
other results are ordered by FA. Repeated confirmation rows collapse into one FA
|
||||
result, with separate workplace/article entries when needed. `/order?production_order=...`
|
||||
shows the selected order and its affected shifts. Each shift links to the existing
|
||||
live report URL with machine, shift start date and shift name.
|
||||
|
||||
The order view reads positive `Rückmeldemenge` rows from
|
||||
`dbo.GRAFANA_PRODUCTION_CONFIRMATION`, matching the finished-production quantity
|
||||
semantics of the shift report. The view's `Zeitstempel` is an ERP confirmation
|
||||
timestamp; first and last timestamps do not describe uninterrupted machine runtime.
|
||||
Each row is assigned to a configured machine by its exact `erp_workplace`, then
|
||||
interpreted in that machine's site timezone. Local 22:00–05:59 belongs to the
|
||||
night shift whose start date may be the previous day. Multiple rows for the same
|
||||
FA, machine and shift sum their positive feedback m². Unknown or ambiguous
|
||||
workplaces remain visible but cannot be assigned a configured shift.
|
||||
|
||||
The ERP gateway owns parameterized read-only SQL, the production-order service
|
||||
owns mapping and shift grouping, and a dedicated presenter renders HTML. The
|
||||
order/machine/shift model is the anchor for later order-specific KPI, roll/QS and
|
||||
setup-sheet views; those data are not included yet. ERP timestamps are local
|
||||
datetimes without offsets; autumn repeated-hour rows are interpreted as the
|
||||
first occurrence, as in the existing confirmation gateway.
|
||||
Reference in new issue
Block a user