InventoryAdjustments

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment Record Count. Returns number of records in QuickBooks
    ''' In case of error returns: will return -1
    ''' </summary>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentRecordCount(Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As Integer

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get All InventoryAdjustment. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET InventoryAdjustment BY DATERANGE
    ''' </summary>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetAllInventoryAdjustment(Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By RefNumbers. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET InventoryAdjustment BY DATERANGE
    ''' </summary>
    ''' <param name="RefNumbers">RefNumbers of the InventoryAdjustment. If it is one RefNumbers, just add one RefNumbers to the List(Of String)</param>
    ''' <param name="RefNumberCaseSensitive">set to true to check for Case Sensitive spelling</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByRefNumbers(ByVal RefNumbers As List(Of String), Optional ByVal RefNumberCaseSensitive As Boolean = False, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment Modified Date Range. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' </summary>
    ''' <param name="FromModifiedDate">FromDate</param>
    ''' <param name="ToModifiedDate">ToDate</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentModifiedDateRange(ByVal FromModifiedDate As DateTime, ByVal ToModifiedDate As DateTime, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment Txn Date Range. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' </summary>
    ''' <param name="FromTxnDate">FromDate</param>
    ''' <param name="ToTxnDate">ToDate</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentTxnDateRange(ByVal FromTxnDate As DateTime, ByVal ToTxnDate As DateTime, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment Txn Date Macro. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' </summary>
    ''' <param name="DateMacro">qbDateMacro enum. Values(All, Today, ThisWeek, ThisWeekToDate, ThisMonth, ThisMonthToDate, ThisCalendarQuarter, ThisCalendarQuarterToDate, ThisFiscalQuarter, ThisFiscalQuarterToDate, ThisCalendarYear, ThisCalendarYearToDate, ThisFiscalYear, ThisFiscalYearToDate, Yesterday, LastWeek, LastWeekToDate, LastMonth, LastMonthToDate, LastCalendarQuarter, LastCalendarQuarterToDate, LastFiscalQuarter, LastFiscalQuarterToDate, LastCalendarYear, LastCalendarYearToDate, LastFiscalYear, LastFiscalYearToDate, NextWeek, NextFourWeeks, NextMonth, NextCalendarQuarter, NextCalendarYear, NextFiscalQuarter, NextFiscalYear)</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentTxnDateMacro(ByVal DateMacro As qbDateMacro, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By Entity ListIDs. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list
    ''' In an InventoryAdjustment query, this must be a customer/customer job.
    ''' </summary>
    ''' <param name="ListIDs">Entities ListIDs</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByEntityListIDs(ByVal ListIDs As List(Of String), Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By Entity FullNames. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list
    ''' In an InventoryAdjustment query, this must be a customer/customer job.
    ''' </summary>
    ''' <param name="FullNames">Entities FullNames</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByEntityFullNames(ByVal FullNames As List(Of String), Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By Entity ListIDWithChildren. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list
    ''' In an InventoryAdjustment query, this must be a customer/customer job.
    ''' </summary>
    ''' <param name="ListIDWithChildren">Entity ListIDWithChildren</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByEntityListIDWithChildren(ByVal ListIDWithChildren As String, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By Entity FullNameWithChildren. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list
    ''' In an InventoryAdjustment query, this must be a customer/customer job.
    ''' </summary>
    ''' <param name="FullNameWithChildren">Entity FullNameWithChildren</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByEntityFullNameWithChildren(ByVal FullNameWithChildren As String, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By Account ListIDs. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' Filters according to the account name or ListID. If the "Use account numbers" preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for FullName and get the account you're looking for.
    ''' But if numbers have been used as account names, confusion could arise. For example, if you queried for an account named 2050, and 2050 happened to be the account number of a totally different account, the query would not return what you asked for (the account named 2050), but instead would return the account with the account number 2050.
    ''' This problem will not happen if the "Use account numbers" preference Is turned off in the QuickBooks file, Or the account name exactly matches the account number. (In this Case, query would Return the correct account either way.)
    ''' To avoid this problem:
    ''' Do not name an account using a number unless the number exactly matches the account’s account number.
    ''' If an account name must contain a number that does not match its own account number, have the QuickBooks user change the account’s name slightly, for example to 2050a.
    ''' </summary>
    ''' <param name="ListIDs">Entities ListIDs</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByAccountListIDs(ByVal ListIDs As List(Of String), Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustmentBy Account ListIDs. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' Filters according to the account name or ListID. If the "Use account numbers" preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for FullName and get the account you're looking for.
    ''' But if numbers have been used as account names, confusion could arise. For example, if you queried for an account named 2050, and 2050 happened to be the account number of a totally different account, the query would not return what you asked for (the account named 2050), but instead would return the account with the account number 2050.
    ''' This problem will not happen if the "Use account numbers" preference Is turned off in the QuickBooks file, Or the account name exactly matches the account number. (In this Case, query would Return the correct account either way.)
    ''' To avoid this problem:
    ''' Do not name an account using a number unless the number exactly matches the account’s account number.
    ''' If an account name must contain a number that does not match its own account number, have the QuickBooks user change the account’s name slightly, for example to 2050a.
    ''' </summary>
    ''' <param name="FullNames">Entities FullNames</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByAccountFullNames(ByVal FullNames As List(Of String), Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustmentBy Account ListIDs. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' Filters according to the account name or ListID. If the "Use account numbers" preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for FullName and get the account you're looking for.
    ''' But if numbers have been used as account names, confusion could arise. For example, if you queried for an account named 2050, and 2050 happened to be the account number of a totally different account, the query would not return what you asked for (the account named 2050), but instead would return the account with the account number 2050.
    ''' This problem will not happen if the "Use account numbers" preference Is turned off in the QuickBooks file, Or the account name exactly matches the account number. (In this Case, query would Return the correct account either way.)
    ''' To avoid this problem:
    ''' Do not name an account using a number unless the number exactly matches the account’s account number.
    ''' If an account name must contain a number that does not match its own account number, have the QuickBooks user change the account’s name slightly, for example to 2050a.
    ''' </summary>
    ''' <param name="ListIDWithChildren">Account ListIDWithChildren</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByAccountListIDWithChildren(ByVal ListIDWithChildren As String, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustmentBy Account ListIDs. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' Filters according to the account name or ListID. If the "Use account numbers" preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for FullName and get the account you're looking for.
    ''' But if numbers have been used as account names, confusion could arise. For example, if you queried for an account named 2050, and 2050 happened to be the account number of a totally different account, the query would not return what you asked for (the account named 2050), but instead would return the account with the account number 2050.
    ''' This problem will not happen if the "Use account numbers" preference Is turned off in the QuickBooks file, Or the account name exactly matches the account number. (In this Case, query would Return the correct account either way.)
    ''' To avoid this problem:
    ''' Do not name an account using a number unless the number exactly matches the account’s account number.
    ''' If an account name must contain a number that does not match its own account number, have the QuickBooks user change the account’s name slightly, for example to 2050a.
    ''' </summary>
    ''' <param name="FullNameWithChildren">Account FullNameWithChildren</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByAccountFullNameWithChildren(ByVal FullNameWithChildren As String, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By RefNumber Match. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET InventoryAdjustment BY DATERANGE
    ''' </summary>
    ''' <param name="RefNumber">RefNumber of the InventoryAdjustment. If it is one RefNumbers, just add one RefNumbers to the List(Of String)</param>
    ''' <param name="MatchCriterion">qbMatchCriterion enum. Values(StartsWith, Contains, EndsWith)</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByRefNumberMatch(ByVal RefNumber As String, ByVal MatchCriterion As qbMatchCriterion, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get InventoryAdjustment By RefNumber Range. Returns List(Of InventoryAdjustment)
    ''' In case of error returns: new List(Of InventoryAdjustment)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET InventoryAdjustment BY DATERANGE
    ''' </summary>
    ''' <param name="FromRefNumber">FromRefNumber</param>
    ''' <param name="ToRefNumber">ToRefNumber</param>
    ''' <param name="IncludeLineItems">includes line items</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetInventoryAdjustmentByRefNumberRange(ByVal FromRefNumber As String, ByVal ToRefNumber As String, Optional ByVal IncludeLineItems As Boolean = False, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of InventoryAdjustment)

   ''' <summary>
    ''' It will delete the record from QuickBooks.
    ''' Once deleted, there is no way to retrieve
    ''' </summary>
    ''' <param name="TxnID">to add new records to QB set TxnID to a temporal one</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function DeleteInventoryAdjustmentFromQuickBooksByTxnID(ByVal TxnID As String, Optional ByRef errorMsg As String = "") As Boolean

    ''' <summary>
    ''' It will add a new InventoryAdjustment to InventoryAdjustmentList.
    ''' </summary>
    ''' <param name="_TxnID">to add new records to QB set TxnID to a temporal one</param>
    ''' <param name="_Operation">set to empty, update, add, or delete</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function AddToInventoryAdjustmentList(_TxnID As String, _AccountRef_ListID As String, _AccountRef_FullName As String, Optional ByVal _TimeCreated As String = "", Optional ByVal _TimeModified As String = "", Optional ByVal _EditSequence As String = "", Optional ByVal _TxnNumber As String = "", Optional ByVal _InvSiteRef_ListID As String = "", Optional ByVal _InvSiteRef_FullName As String = "", Optional ByVal _TxnDate As String = "", Optional ByVal _RefNumber As String = "", Optional ByVal _CustomerRef_ListID As String = "", Optional ByVal _CustomerRef_FullName As String = "", Optional ByVal _ClassRef_ListID As String = "", Optional ByVal _ClassRef_FullName As String = "", Optional ByVal _Memo As String = "", Optional ByVal _ExternalGUID As String = "", Optional ByVal _UserData As String = "", Optional ByVal _Operation As String = "", Optional ByRef errorMsg As String = "") As InventoryAdjustment

Powered by BetterDocs