public void approveAdjustmentByVoucherNumber(int vouchernumber, int userNo)
    {
        try
        {
            AdjustmentVoucher av = StoreSupplierDAO.findUnapprovedAdjByVoucherNumber(vouchernumber);
            foreach (AdjustmentItem i in av.AdjustmentItems)
            {
                i.Item.quantityonhand = i.Item.quantityonhand + i.quantity;

                if (i.Item.quantityonhand < i.Item.reorderlevel && !StoreSupplierDAO.hasUndeliveredOrders(i.itemcode))
                {
                    raiseReorder(i.Item, 1031);
                }
            }
            StoreSupplierDAO.approveAdjVoucher(vouchernumber, userNo);
        }
        catch (Exception e)
        {
            throw new SSexception("approve adjustment voucher failed because adjustment voucher not found :" + e.Message);
        }
    }