Menu

#732 new method MConversionRate.setRate

closed-fixed
Currency (2)
5
2009-06-16
2009-05-28
Daniel Tamm
No

Currently there's no easy way in the API to set system currency rate. This is good to have in the API since setting the currency rate programmatically is probably what most Adempiere system owners need. It's also a step to perhaps create a central server based solution where all adempiere system's can update their currency rates automatically.

I've created and tested a new function in MConversionRate for this purpose. It uses ISO currency codes as parameters so it will be easy to call externally without having to convert to Adempiere ID:s first.

I've added static fields in MConversionType for the existing conversion types. I don't really see a situation where these ID:s would change, hence the simple hard coded values.

Please review the changes in attached patch.

Discussion

  • Daniel Tamm

    Daniel Tamm - 2009-05-28
     
  • Daniel Tamm

    Daniel Tamm - 2009-05-31
    • status: open --> open-fixed
     
  • Daniel Tamm

    Daniel Tamm - 2009-05-31

    Code committed 2009-05-31.

     
  • Daniel Tamm

    Daniel Tamm - 2009-06-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB