Skip to content

Commit

Permalink
Fixed error with Terminal service
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Nov 1, 2021
1 parent f0ecf8f commit 99d8e05
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3261,10 +3261,9 @@ private ListPointOfSalesResponse.Builder convertPointOfSalesList(ListPointOfSale
boolean isListWithSharedPOS = M_Element.get(Env.getCtx(), "IsSharedPOS") != null;
String whereClause = "(AD_Org_ID = ? OR SalesRep_ID = ?)";
List<Object> parameters = new ArrayList<>();
parameters.add(Env.getAD_Org_ID(Env.getCtx()));
parameters.add(salesRepresentativeId);
if(isListWithSharedPOS) {
whereClause = "AD_Org_ID = ? OR SalesRep_ID = ? OR EXISTS(SELECT 1 FROM AD_User u WHERE u.AD_User_ID = ? AND IsPOSManager = 'Y') OR (AD_Org_ID = ? AND IsSharedPOS = 'Y')";
whereClause = "SalesRep_ID = ? OR EXISTS(SELECT 1 FROM AD_User u WHERE u.AD_User_ID = ? AND IsPOSManager = 'Y') OR (AD_Org_ID = ? AND IsSharedPOS = 'Y')";
parameters.add(salesRepresentativeId);
parameters.add(Env.getAD_Org_ID(Env.getCtx()));
}
Expand Down

0 comments on commit 99d8e05

Please sign in to comment.