Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021461Openbravo ERP07. Sales managementpublic2012-08-27 14:422012-09-26 17:19
dmiguelez 
naiaramartinez 
normalmajoralways
closedfixed 
20Community Appliance
 
 
naiaramartinez
Core
No
0021461: In Sales Invoice Window, when adding a Payment, the Payment Method is not filtered
In Sales Invoice Window, when adding a Payment, the Payment Method list is not filtered by Financial Account and shows all the Payment Methods available.
Login as Openbravo/openbravo

Change rol to QAAdmin.

Create a Sales Invoice.
"Organization": USA
"Business Partner": Customer A
"Payment Method": 1 (USA)
Lines
"Product": Final Good A
"Quantity": 1
Complete the Invoice.

Click on "Add Payment"
Notice that the Payment Method is 1 (USA) and the "Deposit To" is USD-Accounting Documents DOLLAR. For this Financial Account the previous Payment Method is not available and when trying to complete the Payment it fails.

No tags attached.
Issue History
2012-08-27 14:42dmiguelezNew Issue
2012-08-27 14:42dmiguelezAssigned To => mirurita
2012-08-27 14:42dmiguelezModules => Core
2012-09-12 17:28naiaramartinezAssigned Tomirurita => naiaramartinez
2012-09-12 17:28naiaramartinezStatusnew => scheduled
2012-09-12 17:28naiaramartinezfix_in_branch => pi
2012-09-12 17:39naiaramartinezNote Added: 0052031
2012-09-12 17:41naiaramartinezNote Added: 0052032
2012-09-12 17:42naiaramartinezNote Edited: 0052032bug_revision_view_page.php?bugnote_id=0052032#r3836
2012-09-14 14:48hgbotCheckin
2012-09-14 14:48hgbotNote Added: 0052143
2012-09-14 14:48hgbotStatusscheduled => resolved
2012-09-14 14:48hgbotResolutionopen => fixed
2012-09-14 14:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/357149849277f62b3b2ed75f1c4c7599f5dbba88 [^]
2012-09-14 14:57naiaramartinezClosed by => naiaramartinez
2012-09-14 14:57naiaramartinezNote Added: 0052144
2012-09-14 14:57naiaramartinezStatusresolved => closed
2012-09-26 17:19hudsonbotCheckin
2012-09-26 17:19hudsonbotNote Added: 0052763

Notes
(0052031)
naiaramartinez   
2012-09-12 17:39   
This is happening when you are trying to pay an invoice in different currency from the financial account's currency and multicurrency is not allowed.
(0052032)
naiaramartinez   
2012-09-12 17:41   
(edited on: 2012-09-12 17:42)
Test Plan:
Login as Openbravo/openbravo

Change rol to QAAdmin.

Create a Sales Invoice.
"Organization": USA
"Business Partner": Customer A
"Payment Method": 1 (USA)
Lines
"Product": Final Good A
"Quantity": 1
Complete the Invoice.

Click on "Add Payment"
Notice that you get the following message: Error:It does not exist any Financial Account defined for this payment method and currency.

(0052143)
hgbot   
2012-09-14 14:48   
Repository: erp/devel/pi
Changeset: 357149849277f62b3b2ed75f1c4c7599f5dbba88
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Sep 14 14:47:39 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/357149849277f62b3b2ed75f1c4c7599f5dbba88 [^]

Fixes issue 21461: Filters Financial Accounts by selected
Payment Method.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0052144)
naiaramartinez   
2012-09-14 14:57   
Code Review + testing OK
(0052763)
hudsonbot   
2012-09-26 17:19   
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/b780e90c6452 [^]

Maturity status: Test