Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021371Openbravo ERP09. Financial managementpublic2012-08-16 13:052012-09-28 14:39
jtarbal 
dmiguelez 
immediatemajoralways
closedfixed 
5
3.0MP9 
3.0MP16 
Core
Production - Confirmed Stable
2012-03-14
https://code.openbravo.com/erp/devel/pi/rev/ba9872fbd663 [^]
yes
0021371: Cannot write-off a whole payment
The write-off feature only works when the amount to write-off is a partial amount from the payment. When writing-off a whole payment, the system does not allow doing it.
1.- Login in Openbravo as Client Admin
2.- Go to "Sales Invoice"
3.- Create a new invoice with some lines and complete the invoice.
4.- Click on "Add Payment"
5.- Select the invoice you created in step 3
6.- In "Actual Payment" put 0 and select "Write-off the difference"
7.- Click Process and realize that the Payment In document was not created.
8.- Repeat steps 2 to 7 with an "Actual Payment" amount of 0.01.
9.- Notice that in this case the Payment In document was created correctly.
No tags attached.
Issue History
2012-08-16 13:05jtarbalNew Issue
2012-08-16 13:05jtarbalAssigned To => mirurita
2012-08-16 13:05jtarbalModules => Core
2012-09-20 12:19ngarciaRegression level => Production - Confirmed Stable
2012-09-20 12:19ngarciaRegression date => 2012-03-14
2012-09-20 12:19ngarciaRegression introduced by commit => ba9872fbd663
2012-09-20 12:19ngarciaPrioritynormal => immediate
2012-09-20 12:19ngarciaversion => 3.0MP9
2012-09-20 12:20ngarciaIssue Monitored: networkb
2012-09-20 12:30jonalegriaesarteAssigned Tomirurita => dmiguelez
2012-09-20 12:47jonalegriaesarteTarget Version => 3.0MP16
2012-09-21 10:54ngarciaRegression introduced by commitba9872fbd663 => https://code.openbravo.com/erp/devel/pi/rev/ba9872fbd663 [^]
2012-09-24 19:49dmiguelezStatusnew => scheduled
2012-09-24 19:49dmiguelezfix_in_branch => pi
2012-09-25 13:38dmiguelezNote Added: 0052572
2012-09-27 11:01hgbotCheckin
2012-09-27 11:01hgbotNote Added: 0052825
2012-09-27 11:01hgbotStatusscheduled => resolved
2012-09-27 11:01hgbotResolutionopen => fixed
2012-09-27 11:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f11aaaf1781e30b59715113a6a79f9a835283f03 [^]
2012-09-27 12:34pramakrishnanClosed by => pramakrishnan
2012-09-27 12:34pramakrishnanNote Added: 0052829
2012-09-27 12:34pramakrishnanStatusresolved => closed
2012-09-28 14:39hudsonbotCheckin
2012-09-28 14:39hudsonbotNote Added: 0052919

Notes
(0052572)
dmiguelez   
2012-09-25 13:38   
Test Plan:

Login as Openbravo/openbravo
Chane Rol to QAAdmin

Create a new Sales Invoice:
- Organization: Spain
- Business Partner: Customer A
- Payment Method: 2.1 (Spain)
Create a new Line for the Invoice.
Complete it.
Add a Payment with 0 amount and check Write off the difference.
Check that it is possible to process the Payment.

Move to Payment In Window and select the previous Payment.
Click on Reactivate and select Void.

Move back to the Invoice.
Create on Add Payment and check that it is possible to add a Payment for all the amount of the Invoice.
(0052825)
hgbot   
2012-09-27 11:01   
Repository: erp/devel/pi
Changeset: f11aaaf1781e30b59715113a6a79f9a835283f03
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 25 13:12:50 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f11aaaf1781e30b59715113a6a79f9a835283f03 [^]

Fixes issue 21371: Allows to WriteOff the whole Payment and fixes
an Issue when voiding a Payment with all amount writeoff.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
(0052829)
pramakrishnan   
2012-09-27 12:34   
Code Review + Testing OK
(0052919)
hudsonbot   
2012-09-28 14:39   
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/6d2f8cffd4b1 [^]

Maturity status: Test