20260316g: Fix conf anomaly detection + auto-split opened packages

- Fixed isSuspiciousDefaultQty: for conf products, checks package_unit thresholds
  (375g is fine for g-max=10000, not checked against conf-max=50)
- Auto-split on use: when using from a conf product with whole+fractional qty,
  automatically separates whole confs from opened part
  e.g. Panna 2.6conf → use 5g → 2conf (sealed) + 0.56conf (opened)
- Move modal now moves only the opened row (via opened_id)
- Use query prefers fractional rows (opened packages) first
- Non-conf products still get standard move-after-use behavior
This commit is contained in:
dadaloop82
2026-03-16 08:07:17 +00:00
parent 5ca809b31f
commit 134e5dfa4e
4 changed files with 91 additions and 20 deletions
BIN
View File
Binary file not shown.