[Erp5-dev] source/destination conversion and transaction view in accounting module

Jérome Perrin jerome at nexedi.com
Fri Sep 28 17:09:09 CEST 2007


Łukasz Nowak a écrit :
> Hello,
> 
> Let's say I've got some invoices:
> 
> SIT-1 in currency EUR, converted to PLN, confirmed, value 1000 PLN
> SIT-2 in currency EUR, not converted to PLN, confirmed 800 EUR
> 
> I set up PLN currency in site preferences.

This has no other effect than setting the resource automatically on 
transaction you create (using init script). Some "bad code" may remain 
assuming that currency is the one from preference, but the accounting 
currency is set on the organisation (with 'price_currency' category).

> In accounting module view both invoices are showed (same applies to
> Organisation - Transactions). But it is making wrong results - system
> is adding 800 EUR to 1000 PLN and shows 1800 PLN.

If you don't set the converted value ('asset price' in ERP5 technical 
vocabulary),  the system assumes that the converted value is equal to 
the non converted value ('quantity'). Accounting reports in "local" 
currency uses asset price.
So this default is fine for most of the cases where the asset price is 
the quantity, because the resource on the transaction is the accounting 
currency for the organisation.
But there are no constraint to force setting the asset price on a side 
when resource is different from accounting currency on this side. It's 
probably a bug.

Jérome



More information about the Erp5-dev mailing list