feat(fusion_plating_jobs): group WOs by recipe step structure

Replace the old 5-tuple (recipe.id, part, spec, thickness, serial) grouping
key with a structural signature so multiple parts that share the same recipe
step tree (ENP clones) collapse onto one combined work order. Add three
helpers: _fp_recipe_signature, _fp_line_express_signature, _fp_line_group_key.
Add TransactionCase test covering merge, non-merge, and masking-split cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-06-03 22:43:47 -04:00
parent c71c60350b
commit 28e5e7f9de
3 changed files with 168 additions and 29 deletions

View File

@@ -11,3 +11,4 @@ from . import test_post_shop_states
from . import test_recipe_cert_suppression
from . import test_order_ship_state
from . import test_combined_cert_creation
from . import test_wo_recipe_grouping