Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031024Openbravo ERPZ. Otherspublic2015-10-01 13:402015-10-05 11:31
maite 
aferraz 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q2.6 
vmromanos
Core
No
0031024: Credit consumed although payment is not completed due to "payment currency should map business partner currency" error
Credit consumed although payment is not completed due to "payment currency should map business partner currency" error
1. Register Payment Out for bebidas alegres and set generated credit=150. Process payment
2. Register Purchase Invoice for bebidas alegres, add any line and process. Do NOT consume credit when processing invoice
3. Access Business Partner window and run "Set new currency" process. Select MXN currency, check "set amount" option and set 200
4. Register Payment Out for bebidas alegres, run "Add details", select credit to be consumed and pending invoice
5. Process payment and error "For credit generation and/or credit consumption payment currency should map business partner currency: MXN" will be raised
6. Run "add details" rocess again and realize that available credit is not 150 but invoice amount has been substracted
Approved
blocks defect 00310063.0PR16Q1 closed aferraz Credit consumed although payment is not completed due to "payment currency should map business partner currency" error 
Issue History
2015-10-02 12:18aferrazTypedefect => backport
2015-10-02 12:18aferrazTarget Version3.0PR16Q1 => 3.0PR15Q2.6
2015-10-02 12:19aferrazTag Attached: Approved
2015-10-05 11:29hgbotCheckin
2015-10-05 11:29hgbotNote Added: 0080817
2015-10-05 11:29hgbotStatusscheduled => resolved
2015-10-05 11:29hgbotResolutionopen => fixed
2015-10-05 11:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.6/rev/189d99a30959fe0c135c8b22f62fd3306be08003 [^]
2015-10-05 11:31vmromanosReview Assigned To => vmromanos
2015-10-05 11:31vmromanosNote Added: 0080819
2015-10-05 11:31vmromanosStatusresolved => closed

Notes
(0080817)
hgbot   
2015-10-05 11:29   
Repository: erp/backports/3.0PR15Q2.6
Changeset: 189d99a30959fe0c135c8b22f62fd3306be08003
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Oct 02 12:24:48 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.6/rev/189d99a30959fe0c135c8b22f62fd3306be08003 [^]

Fixes issue 31024: Credit consumed although payment not completed

When consuming a credit with a currency different than Business Partner's currency, an error is shown but credit was also consumed, which was wrong.
Now, this check will be also done before consuming credit in AddPaymentActionHandler addCredit method, as it was done in FIN_PaymentProcess doProcessPayment method.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
(0080819)
vmromanos   
2015-10-05 11:31   
Code review + testing OK