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

Open
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-view-invoice-screen
Open

Fixed: Avoid displaying quantities equal to zero as 1 in the invoice items grid of the View Invoice screen (OFBIZ-13362)#964
golja wants to merge 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

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