Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0020773 | Openbravo ERP | 09. Financial management | public | 2012-06-14 17:12 | 2012-06-27 05:28 |
Reporter | dmiguelez | ||||
Assigned To | eduardo_Argal | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | |||||
Target Version | Fixed in Version | 3.0MP13 | |||
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 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|