This will calculate the total cost for this PO
if (orderList == null) {
return 0;
}
float totalPrice = 0;
for (Iterator i = orderList.iterator(); i.hasNext(); ) {
Order order = (Order)i.next();
totalPrice += order.getStock().getQuantity() * order.getPurchasePrice();
}
return totalPrice;