Add roll, Job Card and quotation-estimate fields; lay Makap fields out in tabs

- Batch gets roll details (stage, width, length, micron, net/gross kg,
  supplier lot, machine, Work Order) so each roll is a traceable batch (B3).
- Job Card gets operator output and waste capture on its first tab, with a
  derived waste % and a required reason whenever waste is entered.
- Quotation Item can cost a line from an estimating BOM: material grossed up
  for expected waste, BOM operating cost, set-up and cylinder charge, with
  the resulting margin shown against the quoted rate (M4).
- About 120 fields used to stack after amended_from with no sections. They
  now sit in a "Makap" tab per form (a section on child rows) with labelled
  sub-sections, and positions are updated on migrate (m1).
- Tooling Readiness is read-only: it is derived from the cylinder register.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 10:08:43 +03:00
parent 970f4bdfcf
commit 4304b97e5b
3 changed files with 147 additions and 18 deletions
+3
View File
@@ -22,6 +22,9 @@ doc_events = {
"Work Order": {
"validate": "makap_backend.makap_backend.controls.validate_work_order",
},
"Job Card": {
"validate": "makap_backend.makap_backend.controls.validate_job_card",
},
"Quality Inspection": {
"validate": "makap_backend.makap_backend.controls.validate_quality_inspection",
},