| Line 244... |
Line 244... |
| 244 |
cartSheet.setColumnWidth(1, 256 * addrColWidth); // set width of address column to 35 characters
|
244 |
cartSheet.setColumnWidth(1, 256 * addrColWidth); // set width of address column to 35 characters
|
| 245 |
for(Cart cart : orderedCarts) {
|
245 |
for(Cart cart : orderedCarts) {
|
| 246 |
cartSerialNo ++;
|
246 |
cartSerialNo ++;
|
| 247 |
Row contentRow = cartSheet.createRow(cartSerialNo);
|
247 |
Row contentRow = cartSheet.createRow(cartSerialNo);
|
| 248 |
Transaction transaction = cartToTransactionMap.get(cart.getId());
|
248 |
Transaction transaction = cartToTransactionMap.get(cart.getId());
|
| 249 |
User user = userClient.getUserById(cart.getUserId());
|
249 |
User user = userClient.getUserByCartId(cart.getId());
|
| 250 |
List<Line> cartLines = cart.getLines();
|
250 |
List<Line> cartLines = cart.getLines();
|
| 251 |
String cartItems = "";
|
251 |
String cartItems = "";
|
| 252 |
for (Line line : cartLines) {
|
252 |
for (Line line : cartLines) {
|
| 253 |
Item item = catalogClient.getItem(line.getItemId());
|
253 |
Item item = catalogClient.getItem(line.getItemId());
|
| 254 |
if (!cartItems.isEmpty()) {
|
254 |
if (!cartItems.isEmpty()) {
|