[Inventory Receipt] GL entries for FX rated IR are wrong

Issue No: LG-2275
Created 8/19/2019 11:18:09 PM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.2
Description Steps:   # {color:#333333}create purchase contract :{color} ## {color:#333333}type = purchase{color} ## {color:#333333}ABC trucking{color} ## {color:#333333}commodity - coffee{color} ## {color:#333333}Quantity = 100 60 kg bags{color} ## {color:#333333}Position - Shipment{color} ## {color:#333333}INCO= FOB{color} ## {color:#333333}Pricing type = Priced{color} ## {color:#333333}Term - Net 15{color} ## {color:#333333}Salesperson = Alyssa Gowing{color} ## {color:#333333}Weight = ½ shipped wt%{color} # {color:#333333}Click insert button {color} # {color:#333333}On the contract sequence {color} ## {color:#333333}Item = Raw Grn Robusta{color} ## {color:#333333}Future market = ICE Arabica{color} ## {color:#333333}Futures = 10{color} ## {color:#333333}Basis = 10{color} # {color:#333333}FX tab{color} ## {color:#333333}Invoice currency = EUR{color} # {color:#333333}create new Inbound load shipment{color} ## {color:#333333}shipment type = shipment{color} ## {color:#333333}transaction type= inbound{color} ## {color:#333333}source type = contract{color} ## {color:#333333}Freight term = FOB{color} ## {color:#333333}transport mode = ocean vessel{color} ## {color:#333333}currency = USD{color} ## {color:#333333}Position = shipment{color} ## {color:#333333}Weight unit = Metric Ton{color} ## {color:#333333}Trans. Used By= None{color} # {color:#333333}Enter Order Detail{color} ## {color:#333333}Vendor = ABC trucking{color} ## {color:#333333}Purchase Contract = created purchase cont.{color} ## *{color:#333333}Verify Amount and Fx amount is correct{color}* !pastedImage_d123057_0.png|height=89,width=954! # {color:#333333}Enter Container Details:{color} ## {color:#333333}Cont Number = KWAN-01{color} ## {color:#333333}Quantity = 100{color} ## {color:#333333}Packing Unit = 60 kg bags{color} ## *{color:#333333}CLICK LINK BUTTON on linked container and orders Grid{color}* # {color:#333333}Enter warehouse details{color} ## {color:#333333}Notice date = date today{color} ## {color:#333333}Warehouse = raw station {color} ## {color:#333333}Storage Unit = RM storage{color} ## *{color:#333333}Click Add containers button{color}* # *{color:#333333}Save and post{color}* # {color:#333333}click Create Receipt{color} # Open IR and add Lot Number = Lt-777 # save and click Post Preview:     Issue: GL entries for IR is wrong and cannot be posted     !pastedImage_d123057_1.png|height=266,width=1458!     Should have correct foreign credit and Correct debit amount