The ops lineage screen refuses to allocate more of an intake than was received, counting every batch, but POST /api/intake-batch-lineage/ accepted 9999 kg against a 100 kg intake. Move the rule into a shared helper so the screen and the serializer refuse the same allocations. |
||
|---|---|---|
| .. | ||
| migrations | ||
| static/js | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| coa_pdf.py | ||
| models.py | ||
| permissions.py | ||
| serializers.py | ||
| services.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||