Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031006 | Openbravo ERP | Z. Others | public | 2015-10-01 13:40 | 2015-11-23 21:16 |
|
Reporter | maite | |
Assigned To | aferraz | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR16Q1 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | vmromanos |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0031006: Credit consumed although payment is not completed due to "payment currency should map business partner currency" error |
Description | Credit consumed although payment is not completed due to "payment currency should map business partner currency" error |
Steps To Reproduce | 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 |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0031023 | 3.0PR15Q3.2 | closed | aferraz | Credit consumed although payment is not completed due to "payment currency should map business partner currency" error | depends on | backport | 0031024 | 3.0PR15Q2.6 | closed | aferraz | Credit consumed although payment is not completed due to "payment currency should map business partner currency" error | depends on | backport | 0031031 | 3.0PR15Q4 | closed | aferraz | Credit consumed although payment is not completed due to "payment currency should map business partner currency" error |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-10-01 13:40 | maite | New Issue | |
2015-10-01 13:40 | maite | Assigned To | => Triage Finance |
2015-10-01 13:40 | maite | Modules | => Core |
2015-10-01 13:40 | maite | Resolution time | => 1446505200 |
2015-10-01 13:40 | maite | Triggers an Emergency Pack | => No |
2015-10-01 13:40 | maite | Issue Monitored: networkb | |
2015-10-02 12:17 | aferraz | Assigned To | Triage Finance => aferraz |
2015-10-02 12:18 | aferraz | Status | new => scheduled |
2015-10-02 12:38 | aferraz | Note Added: 0080803 | |
2015-10-02 13:30 | vmromanos | Status | scheduled => acknowledged |
2015-10-02 13:31 | vmromanos | Status | acknowledged => scheduled |
2015-10-05 11:28 | hgbot | Checkin | |
2015-10-05 11:28 | hgbot | Note Added: 0080815 | |
2015-10-05 11:28 | hgbot | Status | scheduled => resolved |
2015-10-05 11:28 | hgbot | Resolution | open => fixed |
2015-10-05 11:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/2671931ccb1ae3a0908e2eac9d6bb7ebf4ee2138 [^] |
2015-10-05 11:32 | vmromanos | Review Assigned To | => vmromanos |
2015-10-05 11:32 | vmromanos | Note Added: 0080821 | |
2015-10-05 11:32 | vmromanos | Status | resolved => closed |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082109 | |
Notes |
|
|
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" process again and realize that available credit is still being 150 |
|
|
(0080815)
|
hgbot
|
2015-10-05 11:28
|
|
Repository: erp/devel/pi
Changeset: 2671931ccb1ae3a0908e2eac9d6bb7ebf4ee2138
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Oct 02 12:24:48 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2671931ccb1ae3a0908e2eac9d6bb7ebf4ee2138 [^]
Fixes issue 31006: 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
---
|
|
|
|
|
|
|
|