Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032982Openbravo ERPC. Securitypublic2016-04-27 02:482016-05-18 12:01
rbianchini 
AtulOpenbravo 
highmajoralways
closedfixed 
5
3.0PR16Q1 
3.0PR16Q23.0PR16Q2 
aferraz
Google Chrome
Core
No
0032982: 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.0PR16Q2
2016-05-18 12:00hgbotCheckin
2016-05-18 12:00hgbotNote Added: 0086540
2016-05-18 12:00hgbotStatusscheduled => resolved
2016-05-18 12:00hgbotResolutionopen => fixed
2016-05-18 12:00hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/04d238173afaba3908d38944367d028ee850f41b [^] => http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/9e86024ef0e15216621ca23f414a4abcb3d41b2a [^]
2016-05-18 12:01hgbotCheckin
2016-05-18 12:01hgbotNote Added: 0086541
2016-05-18 12:01aferrazNote Added: 0086544
2016-05-18 12:01aferrazStatusresolved => closed
2016-05-18 12:01aferrazFixed in Version => 3.0PR16Q2

Notes
(0086540)
hgbot   
2016-05-18 12:00   
Repository: erp/backports/3.0PR16Q2
Changeset: 9e86024ef0e15216621ca23f414a4abcb3d41b2a
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.0PR16Q2/rev/9e86024ef0e15216621ca23f414a4abcb3d41b2a [^]

Fixes issue 32982: 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
---
(0086541)
hgbot   
2016-05-18 12:01   
Repository: erp/backports/3.0PR16Q2
Changeset: 3380f083625e6f53040d50b685d9a53c6f74f568
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.0PR16Q2/rev/3380f083625e6f53040d50b685d9a53c6f74f568 [^]

Related to issue 32982: Code review improvements

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