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

Merged
jacopoc merged 1 commit intoapache:trunkfrom
golja:fix-wrong-invoicing-for-zero-quantity
Apr 5, 2026
Merged

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
jacopoc merged 1 commit intoapache:trunkfrom
golja:fix-wrong-invoicing-for-zero-quantity

Conversation

@golja
Copy link
Copy Markdown
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
Copy Markdown

@jacopoc jacopoc self-assigned this Apr 5, 2026
@jacopoc jacopoc merged commit c059f1e into apache:trunk Apr 5, 2026
7 checks passed
@jacopoc
Copy link
Copy Markdown
Contributor

jacopoc commented Apr 5, 2026

@golja it would be great if you could provide a PR to backport this fix to release24.09 (in preparation for the upcoming release 24.09.06).

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.

2 participants