Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032984Openbravo ERPC. Securitypublic2016-04-27 02:482016-05-18 12:01
rbianchini 
AtulOpenbravo 
highmajoralways
closedfixed 
5
3.0PR16Q1 
3.0PR15Q4.73.0PR15Q4.7 
aferraz
Google Chrome
Core
No
0032984: 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.0PR15Q4.7
2016-05-18 11:28hgbotCheckin
2016-05-18 11:28hgbotNote Added: 0086536
2016-05-18 11:28hgbotStatusscheduled => resolved
2016-05-18 11:28hgbotResolutionopen => fixed
2016-05-18 11:28hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/04d238173afaba3908d38944367d028ee850f41b [^] => http://code.openbravo.com/erp/backports/3.0PR15Q4.7/rev/752669e5de124c2ca09e86342c7a09e8332f6cf7 [^]
2016-05-18 11:28hgbotCheckin
2016-05-18 11:28hgbotNote Added: 0086537
2016-05-18 12:01aferrazNote Added: 0086542
2016-05-18 12:01aferrazStatusresolved => closed
2016-05-18 12:01aferrazFixed in Version => 3.0PR15Q4.7

Notes
(0086536)
hgbot   
2016-05-18 11:28   
Repository: erp/backports/3.0PR15Q4.7
Changeset: 752669e5de124c2ca09e86342c7a09e8332f6cf7
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.0PR15Q4.7/rev/752669e5de124c2ca09e86342c7a09e8332f6cf7 [^]

Fixes issue 32984: 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
---
(0086537)
hgbot   
2016-05-18 11:28   
Repository: erp/backports/3.0PR15Q4.7
Changeset: a562577530221aed1fa59936d9675075ee90e465
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.0PR15Q4.7/rev/a562577530221aed1fa59936d9675075ee90e465 [^]

Related to issue 32984: Code review improvements

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