Skip to content

Fixed: PO receipts with zero accepted units are not handled correctly (OFBIZ-13376)#1027

Open
golja wants to merge 5 commits intoapache:trunkfrom
golja:fix-zero-receipts
Open

Fixed: PO receipts with zero accepted units are not handled correctly (OFBIZ-13376)#1027
golja wants to merge 5 commits intoapache:trunkfrom
golja:fix-zero-receipts

Conversation

@golja
Copy link
Copy Markdown
Contributor

@golja golja commented Mar 25, 2026

As detailed in OFBIZ-13376, currently, when a PO is received with zero accepted units (e.g., via the ‘ReceiveInventory’ screen), the system creates:

  • an inventory item with quantity set to zero
  • a receipt with zero accepted units, even when there are no rejected units.

This behavior is not desirable.

When receiving a PO,

  • if no item units are accepted, the system should not create an inventory item with zero quantity
  • if rejected units are also zero, the system should not create a receipt.

The changes in this PR:

  • avoid creating a receipt and an inventory item when both accepted and rejected quantities are zero
  • create a receipt, but not an inventory item, when the accepted quantity is zero, but there are rejected units.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant