Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029471Openbravo ERP03. Procurement managementpublic2015-03-25 13:082015-04-01 10:02
maite 
vmromanos 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q2 
umartirena
Core
Production - Confirmed Stable
2014-06-02
3.0PR14Q3
https://code.openbravo.com/erp/devel/pi/rev/3e75e4d92c649e3293c1b6830771b0fba009b2da [^]
No
0029471: Invoice's entry generated against Currency Balancing account instead of Vendor Prepayment account
Invoice's entry generated against Currency Balancing account instead of Vendor Prepayment account
1. Define Conversion Rate for today between MXN - EUR and MXN - USD
2. Create Price List in MXN currency, for purchase transactions
3. Define Financial Account payment to use different currencies
4. Register Purchase Order using MXN price list, add any line and process
5. Register multicurrency payment using Add Payment process from order's header
6. Register receipt using Pending Goods Receipt form
7. Register Purchase Invoice using Create Lines from process. Post invoice and realize that accounting entry is generated against Currency balancing account instead of Vendor Prepayment account
Approved
blocks defect 00294033.0PR15Q3 closed vmromanos Invoice's entry generated against Currency Balancing account instead of Vendor Prepayment account 
Issue History
2015-03-31 12:32umartirenaTypedefect => backport
2015-03-31 12:32umartirenaTarget Version3.0PR15Q3 => 3.0PR15Q2
2015-04-01 09:51umartirenaTag Attached: Approved
2015-04-01 10:00hgbotCheckin
2015-04-01 10:00hgbotNote Added: 0076286
2015-04-01 10:00hgbotStatusscheduled => resolved
2015-04-01 10:00hgbotResolutionopen => fixed
2015-04-01 10:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/30bf98d9525d1cfbd32d42b1cc6b7d5b1301770a [^]
2015-04-01 10:02umartirenaReview Assigned To => umartirena
2015-04-01 10:02umartirenaNote Added: 0076287
2015-04-01 10:02umartirenaStatusresolved => closed
2015-04-01 10:02umartirenaFixed in Version => 3.0PR15Q2

Notes
(0076286)
hgbot   
2015-04-01 10:00   
Repository: erp/backports/3.0PR15Q2
Changeset: 30bf98d9525d1cfbd32d42b1cc6b7d5b1301770a
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Mar 31 13:11:57 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/30bf98d9525d1cfbd32d42b1cc6b7d5b1301770a [^]

Fixed bug 29471: Invoice's entry Currency Balancing instead of Vendor Prepayment


The selectPrepayments method now searches by FIN_PAYMENT_SCHEDULEDETAIL.FIN_PAYMENT_SCHEDULE_ORDER instead of FIN_PAYMENT_SCHEDULEDETAIL.FIN_PAYMENT_SCHEDULE_INVOICE, because a prepayment is linked to an order.

---
M src/org/openbravo/erpCommon/ad_forms/DocInvoice_data.xsql
---
(0076287)
umartirena   
2015-04-01 10:02   
Code Review + Testing OK