Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029416Openbravo ERPZ. Otherspublic2015-03-24 16:192015-04-08 18:39
ngarcia 
alostale 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q1.33.0PR15Q1.3 
AugustoMauch
Core
Production - Confirmed Stable
2014-06-19
3.0PR14Q3
https://code.openbravo.com/erp/devel/pi/rev/f94f08e02e3a [^]
Yes
0029416: Duplicated records in Used Credit Source tab when clicking Done more than once in Add Details pop-up
Duplicated records in Used Credit Source tab when clicking Done more than once in Add Details pop-up
As group admin:
   Create a Payment In to generate credit to a Customer
   Create a Sales Invoice for a bigger amount than the credit generated
   Create a Payment In, select the previously created credit and click on Done repeatedly
   Check more than one record is introduced in Used Credit Source tab
   Reactivate the Payment In and check the Used Credit field of the payment in which the credit was generated is negative
Approved
depends on defect 00294183.0PR15Q2 closed alostale API change in process definition client side validation function 
related to backport 00294533.0PR15Q1.3 closed alostale Process Definition popup is not closed after executing the process behind 
blocks defect 0029388 closed alostale Duplicated records in Used Credit Source tab when clicking Done more than once in Add Details pop-up 
Issue History
2015-03-26 08:18alostaleTypedefect => backport
2015-03-26 08:18alostaleTarget Version => 3.0PR15Q1.3
2015-03-26 08:18alostaleAssigned Toplatform => alostale
2015-03-26 08:23alostaleNote Added: 0075988
2015-03-26 08:44alostaleRelationship addeddepends on 0029418
2015-03-26 10:34dmitry_mezentsevTag Attached: Approved
2015-03-26 11:44ngarciaIssue Monitored: ngarcia
2015-03-30 10:04alostaleRelationship addedrelated to 0029453
2015-04-07 07:58hgbotCheckin
2015-04-07 07:58hgbotNote Added: 0076345
2015-04-07 07:58hgbotStatusscheduled => resolved
2015-04-07 07:58hgbotResolutionopen => fixed
2015-04-07 07:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q1.3/rev/4b69ed748583e4f001c5f91d8994eaafaf9fb6f8 [^]
2015-04-07 08:00alostaleReview Assigned To => AugustoMauch
2015-04-08 18:39AugustoMauchNote Added: 0076389
2015-04-08 18:39AugustoMauchStatusresolved => closed
2015-04-08 18:39AugustoMauchFixed in Version => 3.0PR15Q1.3

Notes
(0075988)
alostale   
2015-03-26 08:23   
The problem is that UI is locked to prevent extra clicks on Done button when the process begins, but this lock is not done while client side validations are performed, allowing multiple clicks during this lapse of time. This is specially noticeable in processes like Add Payment where validation requires to be completed in backend.
(0076345)
hgbot   
2015-04-07 07:58   
Repository: erp/backports/3.0PR15Q1.3
Changeset: 4b69ed748583e4f001c5f91d8994eaafaf9fb6f8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 26 10:26:30 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.3/rev/4b69ed748583e4f001c5f91d8994eaafaf9fb6f8 [^]

fixed bug 29416, related to issue 29424: Done can be clicked more than once

  In process definition Done button was enabled and clickable while client side
  validations were being evaluated. This was specially noticeable if those validations
  perform backend requests to be completed (which is the case of Add Payment).

  Fixed by disabling Done button as first step before executing any validation.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addTransaction.js
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-findTransaction.js
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-matchStatement.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
M web/js/validateCostingRuleProcess.js
---
(0076389)
AugustoMauch   
2015-04-08 18:39   
Code reviewed and verified in [1]@eda5123f66b0

[1] https://code.openbravo.com/erp/backports/3.0PR15Q1.3/ [^] [^]