return i;
}
private Lineorder addLineorder(Sale s, Item item, int quantity, int transactionConfirmation)
{
Lineorder lo = new Lineorder();
s.addLineorder(lo);
item.addLineorder(lo);
lo.setQuantity(quantity);
lo.setTotal(BigDecimal.valueOf(quantity * item.getPurchaseprice()));
lo.setTransactionConfirmation(BigInteger.valueOf(transactionConfirmation));
return lo;
}