Subversion Repositories SmartDukaan

Rev

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

Rev 22633 Rev 22635
Line 150... Line 150...
150
					ipq.setQty((long) li.getQuantity());
150
					ipq.setQty((long) li.getQuantity());
151
					ipq.setItemId(li.getItem_id());
151
					ipq.setItemId(li.getItem_id());
152
					log.info("Item ID ----------- " + li.getItem_id());
152
					log.info("Item ID ----------- " + li.getItem_id());
153
					ipq.setPrice(li.getUnit_price());
153
					ipq.setPrice(li.getUnit_price());
154
					ipqList.add(ipq);
154
					ipqList.add(ipq);
155
					totalAmount = li.getUnit_price() * li.getQuantity();
155
					totalAmount += li.getUnit_price() * li.getQuantity();
156
				}
156
				}
157
				if (totalAmount > walletAmount) {
157
				if (totalAmount > walletAmount) {
158
					addActionError("Total Amount not be greater than wallet amount");
158
					addActionError("Total Amount not be greater than wallet amount");
159
				} else if (!this.userClient.addItemPricingToCart(user.getActiveCartId(), ipqList)) {
159
				} else if (!this.userClient.addItemPricingToCart(user.getActiveCartId(), ipqList)) {
160
					addActionError("Failed to add pricing to cart, please try again");
160
					addActionError("Failed to add pricing to cart, please try again");