Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034229
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 09. Financial managementminoralways2016-10-14 12:332016-10-21 14:06
ReporterlorenzofidalgoView Statuspublic 
Assigned Toasiermartirena 
PriorityimmediateResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revisionab88529b8138
ProjectionnoneETAnoneTarget Version3.0PR16Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned Toaferraz
Web browserGoogle Chrome, Mozilla Firefox
ModulesCore
Regression levelPackaging and release
Regression date2016-10-05
Regression introduced in releasemain
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/89f61788c100 [^]
Triggers an Emergency PackNo
Summary

0034229: Document no. sequence is no longer respected when Payment with "Amount = 0.00" is involved

DescriptionWhen a record is generated, it automatically sets the following number of the last record created. Now, when a Payment is created with "Amount = 0.00" the string "*Z*" is concatenated. This induces the Document no. does not set the following number and it is duplicated instead.
Steps To Reproduce1-Go to "Payment In" window.
2-Click "Create a new record in a form" button and memorize the "Document No.".
3-Changing no values (it is important Amount = 0.00, as it is by default), click again in "Create a new record in a form" and change the number that appears in "Document No." field by the number of the just saved record. (It is required, usually, only decrement a unit). Save the record.
4-Go to grid view and realise there are two records with the same document number (finished with *Z*). Sequential document numbers have not been created.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0034207 closedasiermartirena Document no. sequence is no longer respected when Payment with "Amount = 0.00" is involved 

-  Notes
(0090770)
hgbot (developer)
2016-10-21 14:02

Repository: erp/backports/3.0PR16Q4
Changeset: ab88529b8138d12db09602fe6a0c64f01c078c59
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Tue Oct 18 11:45:46 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/ab88529b8138d12db09602fe6a0c64f01c078c59 [^]

Fixed issue 34229: The sequence to create payments docNo was not correctly updated

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
---
(0090771)
hgbot (developer)
2016-10-21 14:03

Repository: erp/backports/3.0PR16Q4
Changeset: 82381c190c1b73761ae5a10e15d639a0abe1738e
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Oct 21 12:56:10 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/82381c190c1b73761ae5a10e15d639a0abe1738e [^]

Related to issue 34229: Code review improvements

Throw error only if we are not reactivating payment in APRM_FIN_PMT_CHECK_TRG trigger.
Remove onSave event in FIN_PaymentEventListener.
Zero payment sufix will only be added in case we are processing the payment and it will only be removed in case we are reactivating the payment.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_FIN_PMT_CHECK_TRG.xml
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
M src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
---
(0090773)
aferraz (manager)
2016-10-21 14:06

Code review + Testing OK

- Issue History
Date Modified Username Field Change
2016-10-18 11:26 aferraz Type defect => backport
2016-10-18 11:26 aferraz Target Version => 3.0PR16Q4
2016-10-21 14:02 hgbot Checkin
2016-10-21 14:02 hgbot Note Added: 0090770
2016-10-21 14:02 hgbot Status scheduled => resolved
2016-10-21 14:02 hgbot Resolution open => fixed
2016-10-21 14:02 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/ab88529b8138d12db09602fe6a0c64f01c078c59 [^]
2016-10-21 14:03 hgbot Checkin
2016-10-21 14:03 hgbot Note Added: 0090771
2016-10-21 14:06 aferraz Review Assigned To => aferraz
2016-10-21 14:06 aferraz Note Added: 0090773
2016-10-21 14:06 aferraz Status resolved => closed
2016-10-21 14:06 aferraz Fixed in Version => 3.0PR16Q4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker