Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004546Openbravo ERP08. Project and service managementpublic2008-07-31 09:002009-04-21 11:07
rafaroda 
rafaroda 
highmajoralways
closedfixed 
20Ubuntu 7.10
pi 
2.40 
Core
No
0004546: Multicurrency issues in 'Expense Sheet' and in 'Create AP Expenses Invoices' and 'Create Sales Orders from Expenses' processes
Inside 'Expense Sheet' lines, one can register expenses with different currencies. But, when generating invoices and orders from these expense lines ('Create AP Expenses Invoices' and 'Create Sales Orders from Expenses' processes, respectively), there is no conversion of currencies to set to the orders and the invoices the currency according to the business partner price list.
1) Set a currency conversion rate inside 'General Setup || Application || Conversion Rates'
2) Create a new expense sheet inside 'Project & Service Management || Transactions || Expense Sheet'
3) Go to 'Lines' tab and register some lines with:
* Reinvoicing check-box selected
* A business partner
* Currency different to system one
* Some products with their invoice price
4) Go back to 'Header' tab and press 'Process Expenses' button.
5) Go to 'Create Sales Orders from Expenses', select the business partner and run the process.
6) Go the Sale Order created and check that the currency is according to the price list of the business partner and Sale Order lines are converted to this currency.
7) Go to 'Create AP Expenses Invoices', select the employee and run the process.
8) Go to the Purchase Invoice created and check that the currency is according to the price list of the employee and Purchase Invoice lines are converted to this currency.
No tags attached.
has duplicate defect 0048651pi closed adrianromero Retail Modules Qr code in hardware manager fails for big texts 
Issue History
2008-07-31 09:00rafarodaNew Issue
2008-07-31 09:00rafarodaAssigned To => rafaroda
2008-07-31 09:00rafarodasf_bug_id0 => 2033557
2008-07-31 09:43rafarodaStatusnew => scheduled
2008-07-31 09:43rafarodafix_in_branch => trunk
2008-07-31 11:36rafarodaNote Added: 0008450
2008-08-01 17:29svnbotCheckin
2008-08-01 17:29svnbotNote Added: 0008465
2008-08-01 17:29svnbotStatusscheduled => resolved
2008-08-01 17:29svnbotResolutionopen => fixed
2008-08-01 17:29svnbotsvn_revision => 6124
2008-12-13 20:43psarobeNote Added: 0011298
2009-04-21 11:07psarobeStatusresolved => closed
2022-03-02 13:15adrianromeroRelationship addedhas duplicate 0048651

Notes
(0008450)
rafaroda   
2008-07-31 11:36   
Take into account that the date taken for the currency conversion has to be the date of the expense sheet line (Expense Date), and, if it is null, take the date of the expense sheet header (Report Date).
(0008465)
svnbot   
2008-08-01 17:29   
Repository: openbravo
Revision: 6124
Author: rafaroda
Date: 2008-08-01 17:29:18 +0200 (Fri, 01 Aug 2008)

Fixes bug 0004546 Now 'Create AP Expenses Invoices' and 'Create Sales Orders from Expenses' processes respects multicurreny.

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java
U trunk/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder_data.xsql
U trunk/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java
U trunk/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount_data.xsql
U trunk/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
U trunk/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product_data.xsql
U trunk/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java
U trunk/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice_data.xsql
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=6124&sc=1 [^]
(0011298)
psarobe   
2008-12-13 20:43   
rafa,

I cannot verify the bug because it shows another error when trying to create the sales order. It says that c_order.m_warehouse_id missed