Subversion Repositories SmartDukaan

Rev

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

Rev 8866 Rev 8871
Line 783... Line 783...
783
		try{
783
		try{
784
			TransactionClient transactionServiceClient = new TransactionClient();
784
			TransactionClient transactionServiceClient = new TransactionClient();
785
			in.shop2020.model.v1.order.TransactionService.Client transactionClient
785
			in.shop2020.model.v1.order.TransactionService.Client transactionClient
786
		    = transactionServiceClient.getClient();
786
		    = transactionServiceClient.getClient();
787
			in.shop2020.model.v1.order.Order t_order = transactionClient.getOrder(orderId);
787
			in.shop2020.model.v1.order.Order t_order = transactionClient.getOrder(orderId);
-
 
788
			if(OrderSource.WEBSITE.getValue()==t_order.getSource()){
-
 
789
				return 1;
-
 
790
			}
788
			String refundOption=transactionClient.getOrderAttributeValue(orderId, "Refund_Option");
791
			String refundOption=transactionClient.getOrderAttributeValue(orderId, "Refund_Option");
789
			String refundAmount=transactionClient.getOrderAttributeValue(orderId, "Refund_Amount");
792
			String refundAmount=transactionClient.getOrderAttributeValue(orderId, "Refund_Amount");
790
			String refundTimeStamp = transactionClient.getOrderAttributeValue(orderId, "Refund_TimeStamp");
793
			String refundTimeStamp = transactionClient.getOrderAttributeValue(orderId, "Refund_TimeStamp");
791
			List<String> details = new ArrayList<String>();
794
			List<String> details = new ArrayList<String>();
792
			if(refundOption!=null && !("").equalsIgnoreCase(refundOption)){
795
			if(refundOption!=null && !("").equalsIgnoreCase(refundOption)){
Line 804... Line 807...
804
			
807
			
805
			if((refundOption!=null && refundAmount!=null) && (!("").equalsIgnoreCase(refundOption)) && !("").equalsIgnoreCase(refundAmount)){
808
			if((refundOption!=null && refundAmount!=null) && (!("").equalsIgnoreCase(refundOption)) && !("").equalsIgnoreCase(refundAmount)){
806
				System.out.println("Into the Refund Condition");
809
				System.out.println("Into the Refund Condition");
807
				return 0;
810
				return 0;
808
			}
811
			}
-
 
812
			
809
			else if(t_order.isCod()){
813
			else if(t_order.isCod()){
810
				if(setOfrefundableStates.contains(t_order.getStatus()) && SecurityUtils.getSubject().hasRole("TeamLead")){
814
				if(setOfrefundableStates.contains(t_order.getStatus()) && SecurityUtils.getSubject().hasRole("TeamLead")){
811
					System.out.println("Into the COD Status Condition");
815
					System.out.println("Into the COD Status Condition");
812
					return 2;
816
					return 2;
813
				}
817
				}