Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2020-11-13 09:502020-12-01 11:24
ReporterngarciaView Statuspublic 
Assigned Toplatform 
PriorityurgentResolutionfixedFixed in VersionPR21Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0045443: Lines selected after sorting the Payment Proposal Expected Payments are not included on it

DescriptionLines selected after sorting the Payment Proposal Expected Payments are not included on it
Steps To ReproduceAs group admin role:
   Go to Payment Proposal window
   Create a header
   Open Select Expected Payments
   Clear the filter
   Select two lines
   Sort the records by Expected date
   Notice the lines remain selected
   Select a new line and submit
   Check only the last selected line is included in the Payment Proposal Lines
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
dmiguelez (developer)
2020-11-23 17:53

The root cause of the problem is in the 'Payment' column and the fact that the value in this column is lost when reordering the Pop up.

Log in as F&B International Group Admin

Go to Payment Proposal Window and create a new record with the default values
(Organization: F&B España Región Norte, Payment from: Caja-EUR)
Click on 'Select Expected Payments' button
Remove the filter.
There should be some lines shown, select 2 of them.
Check that each time the user selects a line, the value in the 'Payment' column is modified from 0 to the Expected amount value.

Reorder the fields by the 'Expected Amount' column.
The value of the 'Payment' columns is reset to 0 (since the query against the view behind the data is launched again)
Any manual or automatic change done the value of the 'Payment' column is done.

Afterwards, the code discards all the records with 0 amount in this column.

This is a problem because a user might have introduced values in this column in several records and that work will be lost by reordering the table.
hgbot (developer)
2020-11-26 14:11

Merge Request created: [^]
hgbot (developer)
2020-12-01 11:24

Merge request merged: [^]
hgbot (developer)
2020-12-01 11:24

Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: b6b916aafeae93895a53226ffffe837d1576e6fe
Author: Cristian Berner <>
Date: 2020-12-01T10:59:22+01:00
URL: [^]

Fixes ISSUE-45443: Lines selected after sort Payment Proposal Payments are not included

Payment Proposal Expected Payments Pick&Execute window was losing the
Payment field value when a filter was applied or a column was sorted.
This was due to the record being modified but not the editValues from
the grid. A refactor has been made on the onSelect event handler to fix
this and use grid.setEditValue instead of the old record.value = ...

Also, a validator was also modifying values from the record, to avoid
this, the logic that modified the payment + difference has been
extracted to an onChange event handler.

M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js

- Issue History
Date Modified Username Field Change
2020-11-13 09:50 ngarcia New Issue
2020-11-13 09:50 ngarcia Assigned To => Triage Finance
2020-11-13 09:50 ngarcia Modules => Core
2020-11-13 09:50 ngarcia Triggers an Emergency Pack => No
2020-11-13 09:51 ngarcia Issue Monitored: networkb
2020-11-13 09:52 ngarcia Resolution time => 1607036400
2020-11-13 12:17 dmiguelez Assigned To Triage Finance => AtulOpenbravo
2020-11-22 18:06 AtulOpenbravo Status new => scheduled
2020-11-23 17:53 dmiguelez Note Added: 0124574
2020-11-23 17:54 dmiguelez Assigned To AtulOpenbravo => platform
2020-11-26 14:11 hgbot Note Added: 0124632
2020-12-01 11:24 hgbot Resolution open => fixed
2020-12-01 11:24 hgbot Status scheduled => closed
2020-12-01 11:24 hgbot Note Added: 0124673
2020-12-01 11:24 hgbot Fixed in Version => PR21Q1
2020-12-01 11:24 hgbot Note Added: 0124674

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker