WinglGlobalPost_Invoice Method

Takes the InvoiceKey of one invoice and does all of the posting: GL, Check Register, etc.

Definition

Namespace: MbcsCentral.WinGL
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public static short Post_Invoice(
	int inv,
	short postflag,
	int Batch,
	int CashAcct,
	string desc,
	WinglGlobalPostInvoice_type Invoice,
	bool docOpen,
	bool scan,
	bool batchProcess = false
)

Parameters

inv  Int32
postflag  Int16
Batch  Int32
CashAcct  Int32
desc  String
Invoice  WinglGlobalPostInvoice_type
docOpen  Boolean
scan  Boolean
batchProcess  Boolean  (Optional)
 

Return Value

Int16
0 if good, -1 means no distribution records were found, and -2 means another error occured

See Also