Discussion:
[Erp5-dev] convertCurrency() question
Jacek Medrzycki
2009-12-15 12:18:03 UTC
Permalink
Hi.

There is a method in Products/ERP5/Documents/Currency.py:

def convertCurrency(self, quantity, to_currency):
if to_currency is self:
return quantity
return quantity

What is the purpose of the method? Should it be overwritten?

How one should carry currency conversion?


TIA.
Jacek
Jean-Paul Smets
2009-12-15 12:32:05 UTC
Permalink
Hi,

Please have a look at erp5_accounting business template. You will find
the answer there.
(sorry, no time to provide a longer reply).

Regards,

JPS.
Post by Jacek Medrzycki
Hi.
return quantity
return quantity
What is the purpose of the method? Should it be overwritten?
How one should carry currency conversion?
TIA.
Jacek
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 29 02 44 25
ERP5 Enterprise: Open Source ERP/CRM for Mission Critical Applications
http://www.erp5.com
TioLive SaaS: run your business online, with more freedom
http://www.tiolive.com
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
Jacek Medrzycki
2009-12-15 12:46:15 UTC
Permalink
Post by Jean-Paul Smets
Hi,
Please have a look at erp5_accounting business template. You will find
the answer there.
(sorry, no time to provide a longer reply).
Thank you very much.

So convertCurrency is now obsolete and is not intended to be used?

Perhaps it would be better to remove it from the code? (it shows up in
the Inspection Report in ERP5 web interface and it is slightly confusing).
Or it it still there for backward compatibility issues?

Regards
Jacek

Loading...