public void ReleaseItem(ItemLine line) { foreach (ItemLine itemline in listItemsCurrent) { if (itemline.getName().Equals(line.getName())) { int currentQuantity = itemline.getQuantiy(); itemline.setQuantity(currentQuantity + line.getQuantiy()); } } }
public BillLine(ItemLine itemLine) { this.itemLine = itemLine; subtotal = itemLine.getQuantiy() * itemLine.getUnitPrice(); }