| Line 679... |
Line 679... |
| 679 |
address = addressRepository.selectById(user.getAddressId());
|
679 |
address = addressRepository.selectById(user.getAddressId());
|
| 680 |
} catch(Exception e) {
|
680 |
} catch(Exception e) {
|
| 681 |
LOGGER.info("Could not find address for Store", fofoStore.getCode());
|
681 |
LOGGER.info("Could not find address for Store", fofoStore.getCode());
|
| 682 |
address = new Address();
|
682 |
address = new Address();
|
| 683 |
}
|
683 |
}
|
| 684 |
int calculated = (int)userWalletHistoryRepository.selectSumByWallet(uw.getId());
|
684 |
double sum = userWalletHistoryRepository.selectSumByWallet(uw.getId());
|
| - |
|
685 |
int calculated = (int)sum;
|
| 685 |
System.out.println("Amount " + uw.getAmount());
|
686 |
System.out.println("Amount " + uw.getAmount());
|
| - |
|
687 |
System.out.println("Sum(double) " + sum);
|
| 686 |
System.out.println("Sum " + calculated);
|
688 |
System.out.println("Sum " + calculated);
|
| 687 |
System.out.printf("%d\t%s\t%b\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(),
|
689 |
System.out.printf("%d\t%s\t%b\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(),
|
| 688 |
fofoStore.isActive(), address.getName(), address.getCity(), address.getState(), uw.getAmount(), calculated,
|
690 |
fofoStore.isActive(), address.getName(), address.getCity(), address.getState(), uw.getAmount(), calculated,
|
| 689 |
uw.getAmount() - calculated);
|
691 |
uw.getAmount() - calculated);
|
| 690 |
}
|
692 |
}
|