[Erp5-dev] source/destination conversion and transaction view in accounting module
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Tue Oct 2 11:01:38 CEST 2007
Hello,
On 2007-09-28, 17:09:09
Jérome Perrin <jerome at nexedi.com> wrote:
> > 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).
Ok - good to know.
> > 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.
Understood.
> 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.
Shall I provide unit test to confirm it is a bug? It's quite hard for
me, because I'm still not sure, what *shall* happens.
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
More information about the Erp5-dev
mailing list