Skip to content

Fixed: Ensure that the invoice item quantity is set to 1 only if the quantity is null when invoice items are created by the createInvoiceItem service (OFBIZ-13362)#963

Open
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-wrong-invoicing-for-zero-quantity
Open

Fixed: Ensure that the invoice item quantity is set to 1 only if the quantity is null when invoice items are created by the createInvoiceItem service (OFBIZ-13362)#963
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-wrong-invoicing-for-zero-quantity

Conversation

@golja
Copy link
Contributor

@golja golja commented Feb 13, 2026

This PR solves the first issue described in OFBIZ-13362

When the system creates a receipt with an accepted quantity equal to zero, the service createInvoiceItem erroneously set the item invoice quantity to 1, leading to a wrong invoiced quantity.

The change in the PR makes sure that only quantities equal to null are set to 1.

…y is null when invoice items are created by the createInvoiceItem service
@sonarqubecloud
Copy link

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