public void InitializeCommit(int userId, int warehouseID)
        {
            var user = new User();

            user.LoadByPrimaryKey(userId);
            InventoryCommitMemberInstance.User = user;

            // open transaction
            InventoryCommitMemberInstance.Transaction = TransactionMgr.ThreadTransactionMgr();


            // create the order here
            InventoryCommitMemberInstance.Order = Order.GenerateOrder(null, OrderType.CONSTANTS.INVENTORY,
                                                                      OrderStatus.Constant.ISSUED, ActivityID,
                                                                      PaymentType.Constants.INVENTORY, user.FullName,
                                                                      GeneralInfo.Current.InstitutionID, user.ID, 0);


            // create the picklist here
            InventoryCommitMemberInstance.PickList = PickList.GeneratePickList(InventoryCommitMemberInstance.Order.ID);


            // create the issue header
            IssueService issueService = new IssueService();

            InventoryCommitMemberInstance.Issue = issueService.CreateSTVLog(null, false
                                                                            , InventoryCommitMemberInstance.PickList
                                                                            , InventoryCommitMemberInstance.Order
                                                                            , null, ActivityID, false, user.ID);


            // create the reciept header
            ReceiveService receiveService = new ReceiveService();

            InventoryCommitMemberInstance.Receipt = receiveService.CreateFakeReceiptWithInvoicePO(OrderType.CONSTANTS.INVENTORY
                                                                                                  , ActivityID, GeneralInfo.Current.SupplierID, "Inventory"
                                                                                                  , InventoryCommitMemberInstance.Issue.IDPrinted
                                                                                                  , ReceiptType.CONSTANTS.BEGINNING_BALANCE, user.ID, ReceiptConfirmationStatus.Constants.RECEIVE_QUANTITY_CONFIRMED, warehouseID);
        }