C General Ledger Accounts

From Sage Evolution SDK | Documentation Portal
Revision as of 11:57, 23 October 2015 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The supplier class is used to create General Ledger Accounts which can be used on Ledger related processes.

The following code displays how a new GL Account is created with the basic necessary properties like Code and Account Type specified.

//Assign variable gl to GLAccount class
GLAccount gl = new GLAccount();
//Specify Account properties like code and Account Type
gl.Code = "SDKAccount";
gl.Type = GLAccount.AccountType.CurrentAsset;
//Use the save method to Save the Account
gl.Save();