FX Conversion is not proper while Price check box is ticked

Issue No: LG-2461
Created 11/11/2019 7:31:24 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.2
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-238183 - FX Conversion is not proper while Price check box is ticked|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-238183]           *Reproduction Steps:*     1. Create a Contract with cash price 130 USC/LB.   !pastedImage_d126543_0.png|height=454,width=1109!   2. FX Tab - enter Invoice Currency = EUR.   Enter USD to EUR FX Rate = 0.85.   Keep the Price check box is ticked.   !pastedImage_d126543_1.png|height=389,width=1111!   3. Now create a Load with EUR currency with sthe same Contract.   !pastedImage_d126543_2.png|height=387,width=1330!   *Issue1:*   1. Unit Currency is showing 1.53 USD / LB wrongly.   *Expected Result:*   LS should have Unit currency = 130 USC/LB and after applying USD/EUR FX = 0.85, Unit Price in FX should be = 1.3*0.85=1.11 EUR/LB and thus FX Amount = 46772.80 EUR   *Issue2:*   2. When created Voucher and IR from this load, it has below issues.   *Expected Result:*   Voucher Currency should have been created as EUR instead of USD.   !pastedImage_d126543_3.png|height=608,width=1106!   *Issue3:*   3. IR is created with USD and with wrong amount.   *Expected Result:*   Created IR should ve Currency = EUR and amount = 46772.8   !pastedImage_d126543_4.png|height=605,width=1098!   *Issue4:*   Try to post the IR - it throws below error.   !pastedImage_d126543_5.jpg! *Expected Result:*   It should not give such error and should be allowed to post successfully.