Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018431Openbravo ERPZ. Otherspublic2011-09-05 12:582011-10-12 01:56
mirurita 
vmromanos 
normalmajoralways
closedfixed 
5
 
3.0MP5 
Advanced Payables and Receivables Mngmt
No
0018431: Void payment in/out with gl item lines does not work properly
When you void a payment containing GL Items the payment remains in a non stable status.
1) Configure new payment method as follows:
- Payment In Allowed: Yes
- Execution Type: Automatic
- Execution Process: Simple Execution Process
- Deferred: Yes
2) Create new Payment In and select in the header previously created payment method.
3) Click on Add Details button
4) Select GL Item transaction type
5) Add any GL Item and click on Process button
6) Try to void the payment.
 6.1) Click on Reactivate button
 6.2) Select Void option
7) Check the payment status
 7.1) Payment Line is removed
 7.2) Generated credit is updated.
The payment line should be canceled not removed.
The generated credit should not be affected when voiding a payment with gl items.

FIN_PaymentProcess.java line 544
GL Item payment line is taken as a credit payment:
else if (paymentScheduleDetail.getOrderPaymentSchedule() == null
                    && paymentScheduleDetail.getInvoicePaymentSchedule() == null)
No tags attached.
depends on backport 00184873.0MP5 closed vmromanos Void payment in/out with gl item lines does not work properly 
png Void payment with GL Items.png (33,538) 2011-09-05 12:58
https://issues.openbravo.com/file_download.php?file_id=4511&type=bug
png
Issue History
2011-09-05 12:58miruritaNew Issue
2011-09-05 12:58miruritaAssigned To => vmromanos
2011-09-05 12:58miruritaFile Added: Void payment with GL Items.png
2011-09-05 12:58miruritaModules => Advanced Payables and Receivables Mngmt
2011-09-09 13:57vmromanosStatusnew => scheduled
2011-09-09 13:57vmromanosfix_in_branch => pi
2011-09-09 14:11hgbotCheckin
2011-09-09 14:11hgbotNote Added: 0040846
2011-09-09 14:11hgbotStatusscheduled => resolved
2011-09-09 14:11hgbotResolutionopen => fixed
2011-09-09 14:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d2aab6bd1c3a08e9ac3f578ad94e2778363a2753 [^]
2011-09-12 13:39miruritaNote Added: 0040910
2011-09-12 13:39miruritaStatusresolved => closed
2011-10-12 01:56hudsonbotCheckin
2011-10-12 01:56hudsonbotNote Added: 0041610

Notes
(0040846)
hgbot   
2011-09-09 14:11   
Repository: erp/devel/pi
Changeset: d2aab6bd1c3a08e9ac3f578ad94e2778363a2753
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Fri Sep 09 14:11:18 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d2aab6bd1c3a08e9ac3f578ad94e2778363a2753 [^]

Fixed bug 18431: Void payment in/out with gl item lines does not work properly
The payment line should be canceled not removed.
The generated credit should not be affected when voiding a payment with gl items.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
(0040910)
mirurita   
2011-09-12 13:39   
Working fine.
(0041610)
hudsonbot   
2011-10-12 01:56   
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/9bd2b5c2d982 [^]

Maturity status: Test