Subversion Repositories SmartDukaan

Rev

Rev 22568 | Rev 22931 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22568 Rev 22812
Line 103... Line 103...
103
			return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
103
			return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
104
		}
104
		}
105
		String cartString=null;
105
		String cartString=null;
106
		//Use source id temporarily for purpose of tag id as it is just one lets hardcode the tag id
106
		//Use source id temporarily for purpose of tag id as it is just one lets hardcode the tag id
107
		int source = -1;
107
		int source = -1;
108
		if(userRoleRepository.selectRoleTypesByUserId(userId).contains(RoleType.FOFO)) {
-
 
109
			source = 53;
-
 
110
		}
-
 
111
		cartString = userClient.validateCartNew(Integer.valueOf(userAccount.getAccount_key()), pincode, source);
108
		cartString = userClient.validateCartNew(Integer.valueOf(userAccount.getAccount_key()), pincode, source);
112
		JSONObject cartObj = new JSONObject(cartString);
109
		JSONObject cartObj = new JSONObject(cartString);
113
		JSONArray arr = cartObj.getJSONArray("cartItems");
110
		JSONArray arr = cartObj.getJSONArray("cartItems");
114
		int maxEstimate=-2;
111
		int maxEstimate=-2;
115
		boolean allSame=true;
112
		boolean allSame=true;