QuickBooks Integrator 2020 C++ Edition

Questions / Feedback?

Update Method

Updates the invoice in QuickBooks.

Syntax

ANSI (Cross Platform)
int Update();

Unicode (Windows)
INT Update();
- (void)update;
#define MID_INVOICE_UPDATE 14

INQB_EXTERNAL int INQB_CALL InQB_Invoice_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method will update the invoice in QuickBooks.

When the method is called, an Update request will be submitted to QuickBooks. The invoice will have its information updated based on the various property values.

If QuickBooks is able to update the object, it will return a copy of the object, and the values of all properties will be reset from the QuickBooks response. The QBResponseAggregate property will also be set to the entire QBXML aggregate received from QuickBooks.

QBXMLVersion must be set to "2.1" or greater to update an invoice. Moreover, QBXMLVersion should be set to the same value when retrieving the invoice from QuickBooks (either through ObjSearch or through the Get method).

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 C++ Edition - Version 20.0 [Build 7941]