Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032983Openbravo ERPC. Securitypublic2016-04-27 02:482016-05-18 12:01
rbianchini 
AtulOpenbravo 
highmajoralways
closedfixed 
5
3.0PR16Q1 
3.0PR16Q1.23.0PR16Q1.2 
aferraz
Google Chrome
Core
No
0032983: Generate duplicate payment plan under some circumstances
When 2 different users are logged in (in different browsers) openbravo, and both complete a sales order, the sales order might have 2 payment plans. If you want to pay the order, you can pay double amount. If you want to reactivate the order an error is shown "The order has more than one Payment Plan record with related Payment Plan details. Please contact your System Administrator to fix it."
0 - Login with Openbravo user and activate user F&BUser
1 - Go to Alimentos y Supermercados business partner and delete every record in Basic Discount tab
2 - Create a sales order, add a line and let it in draft status
3 - Open other browser and log in ERP with F&BUser
4 - Go to Sales order window and check the sales order created in step 2
5 - With Openbravo user complete the sales order
6 - With F&BUser user, without refresh, complete the same sales order
7 - Go to payment plan tab and check the duplicated payment plan
No tags attached.
blocks defect 0032793 closed AtulOpenbravo Generate duplicate payment plan under some circumstances 
Issue History
2016-05-18 10:16aferrazTypedefect => backport
2016-05-18 10:16aferrazTarget Version => 3.0PR16Q1.2
2016-05-18 11:57hgbotCheckin
2016-05-18 11:57hgbotNote Added: 0086538
2016-05-18 11:57hgbotStatusscheduled => resolved
2016-05-18 11:57hgbotResolutionopen => fixed
2016-05-18 11:57hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/04d238173afaba3908d38944367d028ee850f41b [^] => http://code.openbravo.com/erp/backports/3.0PR16Q1.2/rev/ebccd358e1cf65dbc3a9a306f32ab8bf16932a10 [^]
2016-05-18 11:57hgbotCheckin
2016-05-18 11:57hgbotNote Added: 0086539
2016-05-18 12:01aferrazNote Added: 0086543
2016-05-18 12:01aferrazStatusresolved => closed
2016-05-18 12:01aferrazFixed in Version => 3.0PR16Q1.2

Notes
(0086538)
hgbot   
2016-05-18 11:57   
Repository: erp/backports/3.0PR16Q1.2
Changeset: ebccd358e1cf65dbc3a9a306f32ab8bf16932a10
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon May 02 16:58:34 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1.2/rev/ebccd358e1cf65dbc3a9a306f32ab8bf16932a10 [^]

Fixes issue 32983: Generate duplicate payment plan under some circumstances

Before processing order, a check is done whether processed flag is N or not.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0086539)
hgbot   
2016-05-18 11:57   
Repository: erp/backports/3.0PR16Q1.2
Changeset: 8ae675ffb845ef017a01e1d23f0f60063614b130
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue May 03 11:36:04 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1.2/rev/8ae675ffb845ef017a01e1d23f0f60063614b130 [^]

Related to issue 32983: Code review improvements

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0086543)
aferraz   
2016-05-18 12:01   
Code review + Testing OK