Skip to content

Fixed: Avoid displaying quantities equal to zero as 1 in the invoice items grid of the View Invoice screen (OFBIZ-13362)#964

Merged
jacopoc merged 1 commit intoapache:trunkfrom
golja:fix-view-invoice-screen
Apr 5, 2026
Merged

Fixed: Avoid displaying quantities equal to zero as 1 in the invoice items grid of the View Invoice screen (OFBIZ-13362)#964
jacopoc merged 1 commit intoapache:trunkfrom
golja:fix-view-invoice-screen

Conversation

@golja
Copy link
Copy Markdown
Contributor

@golja golja commented Feb 13, 2026

This PR solves the second issue described in OFBIZ-13362

Even when the invoice item quantity is correctly set to zero in the database, the screen viewInvoice erroneously ‘visualize’ an invoice item reporting one unit of the product.

The problem is due to the fact that the grid 'ListInvoiceItems' used in the viewInvoice screen set the invoice item quantity to one when it is zero. The change in the PR makes sure that the quantity visualized is set to 1 only when the quantity is null.

@sonarqubecloud
Copy link
Copy Markdown

@jacopoc jacopoc self-assigned this Apr 5, 2026
@jacopoc jacopoc merged commit aef5f8e 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).

@golja golja deleted the fix-view-invoice-screen branch April 7, 2026 10:03
@golja
Copy link
Copy Markdown
Contributor Author

golja commented Apr 7, 2026

Done!
PR #1073

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