Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025156Openbravo ERPZ. Otherspublic2013-11-14 12:532013-11-24 16:24
Google Chrome
0025156: Error when reversing payment in closed period.
When we are going to reverse a payment, we must select the payment and click "Reverse Payment" button. This action opens a pop up in which we should fill "Payment date" field. The problem is that, if we select a date from a closed period for the reversed payment, an error is shown (look at attached file).
- Create a payment (for example in Payment Out window).

- Once the payment is created, click "Reverse Payment" button.

- Fill Pop up´s "Payment date" field with a date of a closed period.

- When clicking on "OK" button, the following error appears: (see attached file)
ERROR: insert or update on table "fin_payment" violates foreign key constraint "fin_payment_reversed" Detail: Key (fin_rev_payment_id)=(5D1D55E4E6094B5EAC230D3F7404A90D) is not present in table "fin_payment".
No tags attached.
png ERRReversePayment.png (486,666) 2013-11-14 12:53
Issue History
2013-11-14 12:53daniOpenbravoNew Issue
2013-11-14 12:53daniOpenbravoAssigned To => dmiguelez
2013-11-14 12:53daniOpenbravoFile Added: ERRReversePayment.png
2013-11-14 12:53daniOpenbravoWeb browser => Google Chrome
2013-11-14 12:53daniOpenbravoModules => Core
2013-11-14 12:53daniOpenbravoTriggers an Emergency Pack => No
2013-11-21 12:33gauravdeshmukhNote Added: 0062320
2013-11-24 08:48hgbotCheckin
2013-11-24 08:48hgbotNote Added: 0062353
2013-11-24 08:48hgbotStatusnew => resolved
2013-11-24 08:48hgbotResolutionopen => fixed
2013-11-24 08:48hgbotFixed in SCM revision => [^]
2013-11-24 08:50pramakrishnanReview Assigned To => pramakrishnan
2013-11-24 08:50pramakrishnanNote Added: 0062354
2013-11-24 08:50pramakrishnanStatusresolved => closed
2013-11-24 16:24hudsonbotCheckin
2013-11-24 16:24hudsonbotNote Added: 0062358

2013-11-21 12:33   
Login with group admin role

 1.GoTo Payment Out window
 2.Click on Reverse Payment window
 3.Fill Pop up´s "Payment date" field with a date of a closed period.
 4.When clicking on "OK" button ,It Shows error message as"The Period does not
   exist or it is not opened".
2013-11-24 08:48   
Repository: erp/devel/pi
Changeset: 95c10342f5db9599b7f17f4e8b02cdbf9138abd0
Author: Gaurav Deshmukh <gaurav.deshmukh <at>>
Date: Thu Nov 21 16:55:01 2013 +0530
URL: [^]

Fixes Issue 25156:Error when reversing payment in closed period

M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/
2013-11-24 08:50   
Code Review + Testing - OK.
2013-11-24 16:24   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]

Maturity status: Test