Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022415Openbravo ERPZ. Otherspublic2012-11-28 11:012013-01-29 10:04
maite 
AugustoMauch 
urgentminoralways
closedfixed 
5
 
3.0MP203.0MP20 
alostale
Advanced Payables and Receivables Mngmt
No
0022415: Error when splitting Payment Plan in more than 2 lines
Error when splitting Payment Plan in more than 2 lines
1. Logged as System Administrator, access "Windows, Tabs and Fields" and search "Sales Invoice" window. Access "Payment Plan" tab and search "Modify Payment Plan" field and ENABLE it
2. Logout and login
3. Access Sales Invoice window and create new invoice with any line. Process and go to "Payment Plan" tab and press "Modify Payment Plan" button
4. Edit proposed line to set less outstanding amount.
5. Press "Add new", set any date and set less that proposed outstanding amount. 6. Press "Add new" and set different date with rest of outstanding amount
7. SUBMIT and you will obtain Error "One or more fields contain illegal values, check the errors for each field."

Note: if you split payment plan in ONLY 2 lines it will work
No tags attached.
related to defect 00224043.0MP20 closed jecharri Error in "Modify Payment Plan" process 
related to defect 00225223.0MP20 closed AugustoMauch In Pick&Execute windows a removed selection appears when sorting the columns 
diff issue22415.diff (2,647) 2013-01-11 14:08
https://issues.openbravo.com/file_download.php?file_id=5889&type=bug
Issue History
2012-11-28 11:01maiteNew Issue
2012-11-28 11:01maiteAssigned To => dmiguelez
2012-11-28 11:01maiteModules => Advanced Payables and Receivables Mngmt
2012-11-28 11:02maiteRelationship addedrelated to 0022404
2012-11-28 11:23maiteTarget Version => 3.0MP18
2012-11-28 11:23maiteIssue Monitored: networkb
2012-11-28 14:31heccamIssue Monitored: heccam
2012-12-04 12:48jonalegriaesarteTarget Version3.0MP18 => 3.0MP19
2012-12-10 09:35dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-01-09 10:26jonalegriaesarteTriggers an Emergency Pack => No
2013-01-09 10:26jonalegriaesarteNote Added: 0055409
2013-01-09 10:26jonalegriaesarteSeveritymajor => minor
2013-01-09 10:26jonalegriaesarteTarget Version3.0MP19 => 3.0MP20
2013-01-09 19:17ioritzCiaNote Added: 0055440
2013-01-09 19:17ioritzCiaAssigned Tojonalegriaesarte => AugustoMauch
2013-01-10 12:52alostaleIssue Monitored: alostale
2013-01-11 13:56AugustoMauchReview Assigned To => alostale
2013-01-11 13:57AugustoMauchFile Added: issue22415.export
2013-01-11 13:57AugustoMauchNote Added: 0055488
2013-01-11 14:07AugustoMauchFile Deleted: issue22415.export
2013-01-11 14:08AugustoMauchFile Added: issue22415.diff
2013-01-14 10:17AugustoMauchStatusnew => scheduled
2013-01-14 10:17AugustoMauchfix_in_branch => pi
2013-01-18 16:44hgbotCheckin
2013-01-18 16:44hgbotNote Added: 0055616
2013-01-18 16:44hgbotStatusscheduled => resolved
2013-01-18 16:44hgbotResolutionopen => fixed
2013-01-18 16:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c6bcd2cde6a9dfcdf216b4e91721b4f7c6c3368e [^]
2013-01-22 15:33hudsonbotCheckin
2013-01-22 15:33hudsonbotNote Added: 0055722
2013-01-29 10:04alostaleNote Added: 0055935
2013-01-29 10:04alostaleStatusresolved => closed
2013-01-29 10:04alostaleFixed in Version => 3.0MP20
2013-01-29 12:03AugustoMauchRelationship addedrelated to 0022522

Notes
(0055409)
jonalegriaesarte   
2013-01-09 10:26   
Scheduled to MP20
(0055440)
ioritzCia   
2013-01-09 19:17   
- Check the validateRows function in 481 line of the ob-pick-and-execute-grid.js file. Around 32490 line int the uuid.js file.
- Check that there is a for structure there that goes through the grid rows and validates the cells.
  - If the validate function does not return errors it clears the errors of the field. This is unexplainably not working for some rows while it is for others.

Steps to reproduce:
- Create a sales invoice for Alimentos y Supermercados and add a line with Agua sin Gas 1L product. This will give a 1.81 payment plan outstanding value.
- Go to payment plan and click on modify payment plan button. Try to split it into 1, 0.8 and 0.01 values. In the funtion code told above this.clearFieldError function will work for the first row (the one with value 1) and it will not for the second one (the one with value 0.8).
(0055488)
AugustoMauch   
2013-01-11 13:57   
A patch that solves this issue has been attached. It will be pushed to pi once it is open for MP20 changesets.
(0055616)
hgbot   
2013-01-18 16:44   
Repository: erp/devel/pi
Changeset: c6bcd2cde6a9dfcdf216b4e91721b4f7c6c3368e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Jan 18 16:32:42 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c6bcd2cde6a9dfcdf216b4e91721b4f7c6c3368e [^]

Fixes issue 22415: Enables splitting the Payment Plan in more than 2 lines

There were two bugs that prevented Payment Plans from beig splitted in more than 2 lines:
- A bug in ob-pick-and-execute-view.js was using the actual record in the call to grid.getEditedRecord instead of using the record index.
- Calling clearFieldError with the row index did not work propertly. In that argument instead of passing the row index, the row ID can be passed, in that case
all rows that do not have errors are marked as error free.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
(0055722)
hudsonbot   
2013-01-22 15:33   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/449aae8be624 [^]

Maturity status: Test
(0055935)
alostale   
2013-01-29 10:04   
Code reviewed + verified on pi@f8bfaf4760bf