Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017972Openbravo ERP09. Financial managementpublic2011-07-12 17:412011-08-01 14:20
psanjuan 
mirurita 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
3.0MP2 
Advanced Payables and Receivables Mngmt
No
0017972: Add Payment Out window seems not to be working properly.
Add Payment Out window seems not to be working properly.
Create a payment method named "Pago automático" and get it assigned to a financial account.

See screen one.

Select a BP (vendor) and get that payment method and that financial account linked to it.

See screen two.

Create a purchase invoice for that BP and add a payment out. Realize that the payment method is not the one assigned to the BP, and even more it does not appear in the list of payment method.

See screen three

If the payment is processed is created with the payment method "Al contado".

See screen four.

No tags attached.
png 17972-1.png (77,018) 2011-07-12 17:49
https://issues.openbravo.com/file_download.php?file_id=4330&type=bug
png
Issue History
2011-07-12 17:41psanjuanNew Issue
2011-07-12 17:41psanjuanAssigned To => gorkaion
2011-07-12 17:41psanjuanModules => Advanced Payables and Receivables Mngmt
2011-07-12 17:45psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2398#r2398
2011-07-12 17:49psanjuanFile Added: 17972-1.png
2011-07-18 14:00psanjuanNote Added: 0039160
2011-07-18 18:45miruritaAssigned Togorkaion => mirurita
2011-07-18 18:46hgbotCheckin
2011-07-18 18:46hgbotNote Added: 0039194
2011-07-18 18:46hgbotStatusnew => resolved
2011-07-18 18:46hgbotResolutionopen => fixed
2011-07-18 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f4641337b96f3f5514953c174ba1ee5609b15afd [^]
2011-07-19 10:15psanjuanNote Added: 0039208
2011-07-19 10:15psanjuanStatusresolved => closed
2011-08-01 14:20hudsonbotCheckin
2011-08-01 14:20hudsonbotNote Added: 0039619

Notes
(0039160)
psanjuan   
2011-07-18 14:00   
This issue is cause by a mistake in the java below:

modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java

@@ -1006,7 +1001,7 @@
       if (paymentDirection == PaymentDirection.IN) {
         obc.add(Restrictions.eq(FIN_PaymentMethod.PROPERTY_PAYINALLOW, true));
       } else if (paymentDirection == PaymentDirection.OUT) {
- obc.add(Restrictions.eq(FIN_PaymentMethod.PROPERTY_PAYINALLOW, true));
+ obc.add(Restrictions.eq(FIN_PaymentMethod.PROPERTY_PAYOUTALLOW, true));
       }
     }
(0039194)
hgbot   
2011-07-18 18:46   
Repository: erp/devel/pi
Changeset: f4641337b96f3f5514953c174ba1ee5609b15afd
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Mon Jul 18 18:46:04 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f4641337b96f3f5514953c174ba1ee5609b15afd [^]

Fixes issue 17972: Add Payment Out window seems not to be working properly

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0039208)
psanjuan   
2011-07-19 10:15   
fixed and working
(0039619)
hudsonbot   
2011-08-01 14:20   
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/cf2afed6e8ef [^]

Maturity status: Test