Report customization sort criteria moving down up make sort no. as 0 and doesnt sort properly

Description

For example,

  1. Login to https://test.idempiere.org/webui

  2. go to open orders report

  3. click on report customization

  4. choose Date Ordered and Doc status in the order by criteria. Having Date ordered as first in the list and then Doc status

  5. close the wizard and see that date ordered and doc status would have sort no. as 10 and 20 in Print format

  6. Again open the report customization and go to sort criteria and move the doc status to up and date ordered would become 2nd. Now check in print format, that date ordered would have sort no. as 0.

  7. Having 0 as sort no. means do not sort by this column

Potential cause of the issue is in WRC3SortCriteriaPanel.java#migrateValueWithinYesList (Event event)
yesItems.get(index).setSortNo(yesItems.get(index).getSortNo()-10);

Environment

None

Status

Assignee

Carlos Ruiz

Reporter

Pritesh Shah

Labels

None

Tested By

None

Priority

Major
Configure