IDEMPIERE-3912 Report customization sort criteria moving down up make sort no. as 0 and doesnt sort properly / Fix suggested by Pritesh Shah

This commit is contained in:
Carlos Ruiz 2019-03-09 20:58:41 +01:00
parent f42859d5e4
commit e3f84efcb0
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ public class WRC3SortCriteriaPanel extends WRCTabPanel implements EventListener
targetPI = m_pfi.indexOf(getPrintFormatItem(newObject.m_key));
updateSortNo (selectedPI,targetPI);
yesItems.get(index).setSortNo(yesItems.get(index).getSortNo()-10);
yesItems.get(index).setSortNo(yesItems.get(index).getSortNo());
orig = yesItems.get(index);
yesItems.get(index - 1).setSeqNo(yesItems.get(index - 1).getSeqNo()+10);
yesItems.set(index, yesItems.get(index-1));