Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0020773 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 09. Financial management | major | always | 2012-06-14 17:12 | 2012-06-27 05:28 | |||
| Reporter | dmiguelez | View Status | public | |||||
| Assigned To | eduardo_Argal | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | 3.0MP13 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 0175ac5c9460 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
| OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0020773: Reverse Payment is not working | |||||||
| Description | When trying to make a Reverse Payment, this message is shown: ERROR: inserción o actualización en la tabla «fin_payment» viola la llave foránea «fin_payment_reversed» Detail: La llave (fin_rev_payment_id)=(AB3F22346EAC496CB793117AD1850DE1) no está presente en la tabla «fin_payment». | |||||||
| Steps To Reproduce | Login as Openbravo/openbravo Create a new Sales Invoice. Complete it. Add a Payment to it. Go to Payment In window and select the previous Payment. Click on Reverse Payment (It may be hidden) This message is shown:ERROR: inserción o actualización en la tabla «fin_payment» viola la llave foránea «fin_payment_reversed» Detail: La llave (fin_rev_payment_id)=(AB3F22346EAC496CB793117AD1850DE1) no está presente en la tabla «fin_payment». | |||||||
| Proposed Solution | diff --git a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java --- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java +++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java @@ -521,19 +521,21 @@ OBDal.getInstance().save(reversedPayment); OBDal.getInstance().flush(); + + HashMap<String, Object> parameterMap = new HashMap<String, Object>(); + parameterMap.put("Fin_Payment_ID", reversedPayment.getId()); + parameterMap.put("action", "P"); + parameterMap.put("isReversedPayment", "Y"); + bundle.setParams(parameterMap); + execute(bundle); + payment.setReversedPayment(reversedPayment); + OBDal.getInstance().save(payment); + OBDal.getInstance().flush(); + return; + } finally { OBContext.restorePreviousMode(); } - HashMap<String, Object> parameterMap = new HashMap<String, Object>(); - parameterMap.put("Fin_Payment_ID", reversedPayment.getId()); - parameterMap.put("action", "P"); - parameterMap.put("isReversedPayment", "Y"); - bundle.setParams(parameterMap); - execute(bundle); - payment.setReversedPayment(reversedPayment); - OBDal.getInstance().save(payment); - OBDal.getInstance().flush(); - return; // *********************** // Reactivate Payment | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0049889) hgbot (developer) 2012-06-18 14:10 |
Repository: erp/devel/pi Changeset: 0175ac5c9460c3bac64e25274db24bf018a8c296 Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com> Date: Mon Jun 18 14:09:45 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/0175ac5c9460c3bac64e25274db24bf018a8c296 [^] Fixes bug 20773 --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java --- |
|
(0049980) mirurita (viewer) 2012-06-21 12:23 |
code review + testing OK Testing Plan: 1) Display "Reverse Payment" field on Payment In window 2) ant compile.development -Dtab=Payment -Dtr=no 3) Create a new sales invoice 4) Create a new payment in for previous invoice 5) Reverse the payment |
|
(0050112) hudsonbot (viewer) 2012-06-27 05:28 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf3a7135839f [^] Maturity status: Test |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-06-14 17:12 | dmiguelez | New Issue | |
| 2012-06-14 17:12 | dmiguelez | Assigned To | => eduardo_Argal |
| 2012-06-14 17:12 | dmiguelez | Modules | => Core |
| 2012-06-14 17:12 | dmiguelez | OBNetwork customer | => No |
| 2012-06-18 14:10 | hgbot | Checkin | |
| 2012-06-18 14:10 | hgbot | Note Added: 0049889 | |
| 2012-06-18 14:10 | hgbot | Status | new => resolved |
| 2012-06-18 14:10 | hgbot | Resolution | open => fixed |
| 2012-06-18 14:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0175ac5c9460c3bac64e25274db24bf018a8c296 [^] |
| 2012-06-21 12:23 | mirurita | Note Added: 0049980 | |
| 2012-06-21 12:23 | mirurita | Status | resolved => closed |
| 2012-06-21 12:23 | mirurita | Fixed in Version | => 3.0MP13 |
| 2012-06-27 05:28 | hudsonbot | Checkin | |
| 2012-06-27 05:28 | hudsonbot | Note Added: 0050112 | |
| Copyright © 2000 - 2009 MantisBT Group |