Skip to content

Commit

Permalink
Fixed error with search currency rate
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Nov 9, 2021
1 parent 19df7d4 commit 7dc6552
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ private ListAvailableCurrenciesResponse.Builder listCurrencies(ListAvailableCurr
// Dynamic where clause
String whereClause = "EXISTS(SELECT 1 FROM C_Conversion_Rate cr "
+ "WHERE (cr.C_Currency_ID = C_Currency.C_Currency_ID OR cr.C_Currency_ID_To = C_Currency.C_Currency_ID) "
+ "AND cr.C_ConversionType_ID = ? AND cr.ValidFrom >= ? AND cr.ValidTo <= ?)";
+ "AND cr.C_ConversionType_ID = ? AND ? >= cr.ValidFrom AND ? <= cr.ValidTo)";
// Aisle Seller
int posId = RecordUtil.getIdFromUuid(I_C_POS.Table_Name, request.getPosUuid(), null);
MPOS pos = MPOS.get(Env.getCtx(), posId);
Expand Down

0 comments on commit 7dc6552

Please sign in to comment.