Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020275Openbravo ERP09. Financial managementpublic2012-04-16 13:502012-04-21 14:24
maite 
eduardo_Argal 
immediatemajoralways
closedfixed 
5
 
3.0MP11 
Advanced Payables and Receivables Mngmt
No
0020275: Not possible to Post payment which uses credit and has total amount zero
Not possible to Post payment which uses credit and has total amount zero
1. Create Payment Out for any BP. Generate Credit=500. Process
2. Create Purchase Invoice for same BP. Add any line with total invoice amount=500. Process. Use previous Generated Credit to pay this invoice. Process.
3. Go to Created Payment which has Amount=0 and Used Credit=500 and try to post. You will obtain error message.

Payment with amount=0 should be posted although associated PM is not configured to allow payment's accounting
attached diff solves the problem
Regression
related to design defect 0018818 closed eduardo_Argal Modules The error message is not clear when you want to post one reconciliation 
related to defect 0019363pi closed eduardo_Argal Openbravo ERP Credit consumption accounting is wrong with multicurrency 
patch issuePostPaymentZeroAmount.patch (1,400) 2012-04-16 13:51
https://issues.openbravo.com/file_download.php?file_id=5134&type=bug
Issue History
2012-04-16 13:50maiteNew Issue
2012-04-16 13:50maiteAssigned To => vmromanos
2012-04-16 13:50maiteModules => Advanced Payables and Receivables Mngmt
2012-04-16 13:50maiteAssigned Tovmromanos => jonalegriaesarte
2012-04-16 13:51maiteTag Attached: Regression
2012-04-16 13:51maiteIssue Monitored: networkb
2012-04-16 13:51maiteFile Added: issuePostPaymentZeroAmount.patch
2012-04-16 14:01maiteTarget Version => 3.0MP11
2012-04-16 16:32jonalegriaesarteRelationship addedrelated to 0018818
2012-04-16 16:33jonalegriaesarteRelationship addedrelated to 0019363
2012-04-16 17:34shuehnerIssue Monitored: shuehner
2012-04-17 11:10eduardo_ArgalAssigned Tojonalegriaesarte => eduardo_Argal
2012-04-17 11:10eduardo_ArgalStatusnew => scheduled
2012-04-17 11:10eduardo_Argalfix_in_branch => pi
2012-04-17 19:35hgbotCheckin
2012-04-17 19:35hgbotNote Added: 0047682
2012-04-17 19:35hgbotStatusscheduled => resolved
2012-04-17 19:35hgbotResolutionopen => fixed
2012-04-17 19:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a673138d34c7f985528e3f4be5f4555d3fa2b13f [^]
2012-04-18 12:51miruritaNote Added: 0047693
2012-04-18 12:51miruritaStatusresolved => closed
2012-04-18 13:29hgbotCheckin
2012-04-18 13:29hgbotNote Added: 0047696
2012-04-21 14:24hudsonbotCheckin
2012-04-21 14:24hudsonbotNote Added: 0047826
2012-04-21 14:24hudsonbotCheckin
2012-04-21 14:24hudsonbotNote Added: 0047829

Notes
(0047682)
hgbot   
2012-04-17 19:35   
Repository: erp/devel/pi
Changeset: a673138d34c7f985528e3f4be5f4555d3fa2b13f
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Tue Apr 17 19:34:56 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a673138d34c7f985528e3f4be5f4555d3fa2b13f [^]

Fixes bug 20275

---
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
A src-util/modulescript/build/classes/org/openbravo/modulescript/PaymentZeroAmount.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/PaymentZeroAmountData.class
A src-util/modulescript/src/org/openbravo/modulescript/PaymentZeroAmount.java
A src-util/modulescript/src/org/openbravo/modulescript/PaymentZeroAmount_data.xsql
---
(0047693)
mirurita   
2012-04-18 12:51   
Testing Plan:

Before applying this fix:

1. Create Payment Out for any BP. Generate Credit=500. Process
2. Create Purchase Invoice for same BP. Add any line with total invoice amount=500. Process. Use previous Generated Credit to pay this invoice. Process.
3. Go to Created Payment which has Amount=0 and Used Credit=500 and try to post. You will obtain error message.

4. Create Payment In for any BP. Generate Credit=200. Process
5. Create Sales Invoice for same BP. Add any line with total invoice amount=200. Process. Use previous Generated Credit to pay this invoice. Process.
6. Go to Created Payment which has Amount=0 and Used Credit=200 and try to post. You will obtain error message.

7. Apply the fix

8. Run ant smartbuild -Dlocal=no

9. Go to payments created in step 3) and 6) and they should appear unposted. If you run the posting process manually you should be able to post them successfully.
(0047696)
hgbot   
2012-04-18 13:29   
Repository: erp/devel/pi
Changeset: b0dec74a9b39fc5d69a4bedd15bd2c5edf50e910
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Wed Apr 18 13:06:17 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b0dec74a9b39fc5d69a4bedd15bd2c5edf50e910 [^]

Related to issue 20275: license text year updated to 2012

---
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
---
(0047826)
hudsonbot   
2012-04-21 14:24   
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/2eb57286c1fc [^]

Maturity status: Test
(0047829)
hudsonbot   
2012-04-21 14:24   
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/2eb57286c1fc [^]

Maturity status: Test