Subversion Repositories SmartDukaan

Rev

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

Rev 6412 Rev 6415
Line 241... Line 241...
241
		}
241
		}
242
		in.shop2020.model.v1.order.TransactionService.Client tClient = transactionServiceClient.getClient();
242
		in.shop2020.model.v1.order.TransactionService.Client tClient = transactionServiceClient.getClient();
243
		Transaction transaction = tClient.getTransaction(txnId);
243
		Transaction transaction = tClient.getTransaction(txnId);
244
		Map<Long, Double> miscCharges = tClient.getMiscCharges(txnId);
244
		Map<Long, Double> miscCharges = tClient.getMiscCharges(txnId);
245
		System.out.println(miscCharges);
245
		System.out.println(miscCharges);
246
		if(!miscCharges.isEmpty()){
246
		if(miscCharges != null & !miscCharges.isEmpty()){
247
			totalAmount = totalAmount + miscCharges.get(1);
247
			totalAmount = totalAmount + miscCharges.get(1L);
248
		}
248
		}
249
		for(Order order: transaction.getOrders()){
249
		for(Order order: transaction.getOrders()){
250
			totalAmount = totalAmount + order.getTotal_amount();
250
			totalAmount = totalAmount + order.getTotal_amount();
251
			gvAmount = gvAmount + order.getGvAmount();
251
			gvAmount = gvAmount + order.getGvAmount();
252
		}
252
		}
Line 346... Line 346...
346
        }
346
        }
347
        
347
        
348
        return true;
348
        return true;
349
    
349
    
350
    }
350
    }
-
 
351
    public static void main(String[] args) {
-
 
352
    	Map<Long, Double> miscCharges = new HashMap<Long, Double>();
-
 
353
    	miscCharges.put(1L, 3.988);
-
 
354
    	System.out.println(miscCharges);
-
 
355
		if(miscCharges != null & !miscCharges.isEmpty()){
-
 
356
			System.out.println( miscCharges.get(1L));;
-
 
357
		}
-
 
358
	}
351
}
359
}