Commit graph

2 commits

Author SHA1 Message Date
Ernad Husremovic
49c7ab8277 Fix allocation quantity calculation when merging PO lines
When multiple PR lines for the same product were merged into a single
PO line, the allocation quantity was incorrectly calculated using
min(existing_po_qty, pr_line_qty) instead of using the actual PR line
quantity. This caused incorrect total quantities in the generated RFQ.

Example: PR with sir01 qty=10 and sir01 qty=7 should produce PO line
with qty=17, but was producing qty=14.

🤖 assisted by claude
2026-01-06 19:37:33 +01:00
Ernad Husremovic
7378b233e9 Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 18:00:40 +02:00