Subversion Repositories SmartDukaan

Rev

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

Rev 26003 Rev 26908
Line 159... Line 159...
159
				for (LineItem li : lineItems) {
159
				for (LineItem li : lineItems) {
160
					ItemPriceQuantity ipq = new ItemPriceQuantity();
160
					ItemPriceQuantity ipq = new ItemPriceQuantity();
161
					ipq.setQty((long) li.getQuantity());
161
					ipq.setQty((long) li.getQuantity());
162
					ipq.setItemId(li.getItem_id());
162
					ipq.setItemId(li.getItem_id());
163
					log.info("Item ID ----------- " + li.getItem_id());
163
					log.info("Item ID ----------- " + li.getItem_id());
-
 
164
					if(li.getUnit_price() == 0) {
-
 
165
						addActionError("Unit price should not be zero for any items");
-
 
166
					}
164
					ipq.setPrice(li.getUnit_price());
167
					ipq.setPrice(li.getUnit_price());
165
					ipqList.add(ipq);
168
					ipqList.add(ipq);
166
					totalAmount += li.getUnit_price() * li.getQuantity();
169
					totalAmount += li.getUnit_price() * li.getQuantity();
167
				}
170
				}
168
				if (totalAmount > walletAmount) {
171
				if (totalAmount > walletAmount) {