RefNumber Property
Reference number for the transaction.
Syntax
ANSI (Cross Platform) char* GetRefNumber();
int SetRefNumber(const char* lpszRefNumber); Unicode (Windows) LPWSTR GetRefNumber();
INT SetRefNumber(LPCWSTR lpszRefNumber);
@property (nonatomic,readwrite,assign,getter=refNumber,setter=setRefNumber:) NSString* refNumber; - (NSString*)refNumber; - (void)setRefNumber:(NSString*)newRefNumber;
#define PID_INVOICE_REFNUMBER 59 INQB_EXTERNAL void* INQB_CALL InQB_Invoice_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INQB_EXTERNAL int INQB_CALL InQB_Invoice_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
This is the reference number assigned to a transaction. Depending on the type of transaction, it appears in the QuickBooks user interface as Bill Number, Invoice Number, etc.
Reference numbers are alphanumeric strings and are not limited to actually being numbers.
For some types of transactions, if RefNumber is not assigned, QuickBooks will automatically assign a unique one. Reference numbers should generally be unique, but are not guaranteed to be so. It is recommended that applications generating their own reference numbers take steps to ensure their uniqueness.
Data Type
String