You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pranay Pandey (JIRA)" <ji...@apache.org> on 2014/11/15 10:10:34 UTC

[jira] [Updated] (OFBIZ-5630) service updateFxConversion doesn't set thruDate properly

     [ https://issues.apache.org/jira/browse/OFBIZ-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pranay Pandey updated OFBIZ-5630:
---------------------------------
    Attachment: OFBIZ-5630.patch

Patch for the issue.

Test scenarios -

Go to ACCOUNTING > Global GL_Settings > Foreign Exchange Rates

CASE 1: fromDate is provided by user

I. under section 'Update Foreign Exchange Rates' provide the details for an existing exchange rate record

    a. for example consider  EUR to USD conversion (demo record exists already)

    b. let us update this exchange rate by following steps :

        -choose EUR as 'From Currency' and USD as 'To Currency'

        -provide conversion rate, fromDate & thruDate(optional)

        -submit the form

II. Expected Results:

    A new record should be created with above details & old record should have thruDate set same as fromDate of new record.

CASE 2 : fromDate is not provided by user

I. under section 'Update Foreign Exchange Rates' provide the details for an existing exchange rate record

    a. for example consider  EUR to USD conversion (demo record exists already)

    b. let us update this exchange rate by following steps :

        -choose EUR as 'From Currency' and USD as 'To Currency'

        -provide conversion rate, thruDate(optional) &  leave fromDate empty

        -submit the form

II. Expected Results:

    A new record should be created with fromDate of new record & thruDate of old one set as 'current date time'.



> service updateFxConversion doesn't set thruDate properly
> --------------------------------------------------------
>
>                 Key: OFBIZ-5630
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5630
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 11.04, Release Branch 12.04, Release Branch 13.07, Trunk
>            Reporter: Pierre Smits
>         Attachments: OFBIZ-5630.patch
>
>
> When updating an existing  foreign currency exchange rate in accounting the service creates a new exchange rate and sets the thruDate of the old rate.
> But in stead of taking the fromDate of the new exchange rate as a starting point for the thruDate of the expired exchange rate it uses nowTimeStamp.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)