Subversion Repositories SmartDukaan

Rev

Rev 517 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 517 Rev 536
Line 1499... Line 1499...
1499
					
1499
					
1500
					itemdetail.put("ITEM_NAME", itemName);
1500
					itemdetail.put("ITEM_NAME", itemName);
1501
					itemdetail.put("ITEM_ID", line.getItemId()+"");
1501
					itemdetail.put("ITEM_ID", line.getItemId()+"");
1502
					itemdetail.put("ITEM_QUANTITY", ((int)line.getQuantity())+"");
1502
					itemdetail.put("ITEM_QUANTITY", ((int)line.getQuantity())+"");
1503
					itemdetail.put("MRP", ((int)item.getMrp())+"");
1503
					itemdetail.put("MRP", ((int)item.getMrp())+"");
1504
					itemdetail.put("SELLING_PRICE", ((int)item.getSellingPrice())+"");
1504
					itemdetail.put("SELLING_PRICE", (int)item.getSellingPrice()+"");
1505
					itemdetail.put("TOTAL_PRICE", ((int)(item.getSellingPrice()*line.getQuantity()))+"");
1505
					itemdetail.put("TOTAL_PRICE", (int)(item.getSellingPrice()*line.getQuantity())+"");
1506
					itemdetail.put("SHIPPING_TIME", 48+"");
1506
					itemdetail.put("SHIPPING_TIME", 48+"");
1507
					totalamount = totalamount + ((int)(line.getQuantity()*item.getSellingPrice()));
1507
					totalamount = totalamount + line.getQuantity()*item.getSellingPrice();
1508
					items.add(itemdetail);				
1508
					items.add(itemdetail);				
1509
				}
1509
				}
1510
			}
1510
			}
1511
			
1511
			
1512
			UserPrimaryInfo primaryInfo = userClient.getPrimaryInfo(cart.getUserId(), false);
1512
			UserPrimaryInfo primaryInfo = userClient.getPrimaryInfo(cart.getUserId(), false);
Line 1516... Line 1516...
1516
		}catch (Exception e){
1516
		}catch (Exception e){
1517
			e.printStackTrace();
1517
			e.printStackTrace();
1518
		}
1518
		}
1519
		
1519
		
1520
		context.put("items", items);
1520
		context.put("items", items);
1521
		context.put("totalamount", totalamount+"");
1521
		context.put("totalamount", (int)totalamount+"");
1522
		context.put("addresses", addresses);
1522
		context.put("addresses", addresses);
1523
		context.put("defaultAddressId", defaultAddressId+"");
1523
		context.put("defaultAddressId", defaultAddressId+"");
1524
		htmlString = getHtmlFromVelocity(templateFile, context);
1524
		htmlString = getHtmlFromVelocity(templateFile, context);
1525
		return htmlString;
1525
		return htmlString;
1526
	}
1526
	}