Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026121Openbravo ERPZ. Otherspublic2014-03-28 13:462015-01-13 18:32
maite 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
pramakrishnan
Advanced Payables and Receivables Mngmt
No
0026121: Wrong payment schedule detail generated when running Reverse Payment process from Write-off payment
New pending schedule detail related with invoice is not correctly created so invoice can not be paid again
1. Register sales invoice for any BP and Organization. Add any line and process.
2. Register Payment In for that invoice, setting payment amount =0.00 and writeoff amount= total invoice amount. Process
3. Run "Reverse Payment" process from previously created payment and realize that counter payment is correctly created.
However, if you access again to sales invoice and try to pay it you can verify that pending amount is 0.00

fin_payment_scheduledetail has been created in database for zero amoun, when it should have total invoice's amount.

Note: if you follow same process over an standard payment (not writeoff payment) you will be able to correctly paid invoice again

Modulescript is needed in order to correct already generated scheduledetails
No tags attached.
causes defect 0028591 closed AtulOpenbravo Reversing a payment is creating wrong invoice payment plan details 
Issue History
2014-03-28 13:46maiteNew Issue
2014-03-28 13:46maiteAssigned To => dmiguelez
2014-03-28 13:46maiteModules => Advanced Payables and Receivables Mngmt
2014-03-28 13:46maiteResolution time => 1397426400
2014-03-28 13:46maiteTriggers an Emergency Pack => No
2014-03-28 13:47maiteIssue Monitored: networkb
2014-03-28 13:47maiteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5637#r5637
2014-04-02 11:17mmarquezIssue Monitored: mmarquez
2014-04-10 09:52AtulOpenbravoAssigned Todmiguelez => AtulOpenbravo
2014-04-10 10:06AtulOpenbravoStatusnew => scheduled
2014-04-10 10:06AtulOpenbravofix_in_branch => pi
2014-04-22 15:34hgbotCheckin
2014-04-22 15:34hgbotNote Added: 0066530
2014-04-22 15:34hgbotStatusscheduled => resolved
2014-04-22 15:34hgbotResolutionopen => fixed
2014-04-22 15:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/51d72e493b90896a089dca36e1a362347c15761a [^]
2014-04-22 15:40pramakrishnanReview Assigned To => pramakrishnan
2014-04-22 15:40pramakrishnanNote Added: 0066531
2014-04-22 15:40pramakrishnanStatusresolved => closed
2014-05-07 18:12hudsonbotCheckin
2014-05-07 18:12hudsonbotNote Added: 0066959
2015-01-13 18:32ngarciaRelationship addedcauses 0028591

Notes
(0066530)
hgbot   
2014-04-22 15:34   
Repository: erp/devel/pi
Changeset: 51d72e493b90896a089dca36e1a362347c15761a
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Apr 22 16:52:22 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/51d72e493b90896a089dca36e1a362347c15761a [^]

Fixes Issue 26121 Wrong Payment Schedule Detail amount when reversing payment

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
A modules/org.openbravo.advpaymentmngt/build/classes/org/openbravo/advpaymentmngt/modulescript/UpdatePaymentScheduledetail.class
A modules/org.openbravo.advpaymentmngt/build/classes/org/openbravo/advpaymentmngt/modulescript/UpdatePaymentScheduledetailData.class
A modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/org/openbravo/advpaymentmngt/modulescript/UpdatePaymentScheduledetail.java
A modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/org/openbravo/advpaymentmngt/modulescript/UpdatePaymentScheduledetail_data.xsql
A modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdatePaymentScheduledetailData.java
---
(0066531)
pramakrishnan   
2014-04-22 15:40   
Code review + Testing - OK.
(0066959)
hudsonbot   
2014-05-07 18:12   
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/02ca2648bcdc [^]
Maturity status: Test