Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022358Openbravo ERP09. Financial managementpublic2012-11-20 19:032013-01-22 15:33
sureshbabu 
pramakrishnan 
normalmajoralways
closedfixed 
30Professional Appliance
3.0MP17 
 
dmiguelez
Google Chrome
Advanced Payables and Receivables Mngmt
QA functional test
No
0022358: Not able to create payment document using Add Payment option from sales invoice for Zero Amount
Not able to create payment document using Add Payment option from sales invoice for Zero Amount

Note: In Add payment window, when i select the option "Leave this as an Underpayment", then i am getting this error. But when i select the "Write off the difference" then system allows the user to complete the payment for zero amount.


Create and complete a Sales invoice
BP: any Business partner
In lines tab,select any product
Then click Add Payment button,
In the Add payment window, enter Actual payment as 0 and select the above created sales invoice line.
And select the option "Leave this as an Underpayment" and click Process button.


System shows the below error Message:

Error:
The value is not in a valid range




No tags attached.
png System not allows the user to complete the payment with zero amount.png (122,000) 2012-12-05 14:19
https://issues.openbravo.com/file_download.php?file_id=5789&type=bug
png
Issue History
2012-11-20 19:03sureshbabuNew Issue
2012-11-20 19:03sureshbabuAssigned To => dmiguelez
2012-11-20 19:03sureshbabuWeb browser => Google Chrome
2012-11-20 19:03sureshbabuModules => Advanced Payables and Receivables Mngmt
2012-12-05 14:17sureshbabuTriggers an Emergency Pack => No
2012-12-05 14:17sureshbabuWeb browserGoogle Chrome => Google Chrome
2012-12-05 14:17sureshbabuRegression level => QA functional test
2012-12-05 14:17sureshbabuDescription Updatedbug_revision_view_page.php?rev_id=4122#r4122
2012-12-05 14:19sureshbabuFile Added: System not allows the user to complete the payment with zero amount.png
2013-01-11 13:37dmiguelezNote Added: 0055487
2013-01-18 12:32pramakrishnanAssigned Todmiguelez => pramakrishnan
2013-01-18 12:32pramakrishnanStatusnew => scheduled
2013-01-18 12:32pramakrishnanfix_in_branch => pi
2013-01-21 09:30pramakrishnanNote Added: 0055649
2013-01-21 17:13hgbotCheckin
2013-01-21 17:13hgbotNote Added: 0055694
2013-01-21 17:13hgbotStatusscheduled => resolved
2013-01-21 17:13hgbotResolutionopen => fixed
2013-01-21 17:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d2f356404b3fb6e65e4764636cf079ffe5ccb14c [^]
2013-01-21 17:14dmiguelezReview Assigned To => dmiguelez
2013-01-21 17:14dmiguelezNote Added: 0055696
2013-01-21 17:14dmiguelezStatusresolved => closed
2013-01-22 15:33hudsonbotCheckin
2013-01-22 15:33hudsonbotNote Added: 0055738

Notes
(0055487)
dmiguelez   
2013-01-11 13:37   
This is the expected behaviour.
Improve the message shown in this case.
(0055649)
pramakrishnan   
2013-01-21 09:30   
Test Plan:
Login as Openbravo/openbravo
Create a Sales invoice and complete the document
Then click Add Payment button
In the Add payment window, enter Actual payment as 0 and select the above created sales invoice line.
Choose the option "Leave this as an Underpayment" and click Process button
Notice that the system throws the error message as "You cannot leave as an underpayment a zero amount Payment"
(0055694)
hgbot   
2013-01-21 17:13   
Repository: erp/devel/pi
Changeset: d2f356404b3fb6e65e4764636cf079ffe5ccb14c
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Mon Jan 21 14:07:35 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/d2f356404b3fb6e65e4764636cf079ffe5ccb14c [^]

Fixes Issue 22358: Not able to create payment for Zero Amount

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
(0055696)
dmiguelez   
2013-01-21 17:14   
Code Review + Testing OK
(0055738)
hudsonbot   
2013-01-22 15:33   
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/449aae8be624 [^]

Maturity status: Test