Back
Create GL Account
GLAMF, GLAIS, GLAVC, GLCAS, GLAMFO, GLAMFTO, GLACHD, GLPACHD, GLAMF, GLAIS, GLAVC, GLCAS, GLAMFO, GLAMFTO, GLACHD, GLPACHD, GLAIS, GLAMF, GLAVC, GLAMF, GLCAS, GLAMF, GLAMFO, GLAMF, GLAMFTO, GLAMF, GLACHD, GLAMF, GLPACHD, GLAMF, GLAMF, GLAMF, GLAIS, GLAVC, GLCAS, GLACHD, GLAMF, GLAMF, GLAMF, GLAIS, GLAVC, GLCAS, GLACHD, GLAMF, GLAMF, GLAMF, GLAMF, GLAVC, GLCAS, GLACHD, GLAIS, GLAMF, GLAMF, GLAMF, GLAMF, GLAMF, GLAMF, GLAMF, GLAIS, GLAVC, GLCAS, GLACHD, GLAVC, GLCAS, GLACHD, GLAIS, GLAMF, GLAIS, GLAVC, GLCAS, GLACHD, GLAVC, GLCAS, GLACHD, GLAIS, GLAMF, GLAIS, GLAVC, GLCAS, GLACHD
using(HuAPConnection Connection = new HuAPConnection())
using(HuView GLAMF = Connection.GetView("GL0001"))
using(HuView GLAIS = Connection.GetView("GL0004"))
using(HuView GLAVC = Connection.GetView("GL0012"))
using(HuView GLCAS = Connection.GetView("GL0107"))
using(HuView GLAMFO = Connection.GetView("GL0400"))
using(HuView GLAMFTO = Connection.GetView("GL0401"))
using(HuView GLACHD = Connection.GetView("GL0057"))
using(HuView GLPACHD = Connection.GetView("GL0063"))
{
GLAMF.Compose(null,GLAIS,GLAVC,null,GLCAS,GLAMFO,GLAMFTO,GLACHD,GLPACHD);
GLAIS.Compose(GLAMF);
GLAVC.Compose(GLAMF,null);
GLCAS.Compose(GLAMF);
GLAMFO.Compose(GLAMF);
GLAMFTO.Compose(GLAMF);
GLACHD.Compose(GLAMF);
GLPACHD.Compose(GLAMF);
GLAMF.Init();
GLAMF["ACTIVESW"] = "1"; // Status
GLAIS.Init();
GLAVC.Init();
GLCAS.Init();
GLACHD.Init();
GLAMF["ALLOCSW"] = "0"; // Allocations Allowed
GLAMF["ROLLUPSW"] = "0"; // Rollup Switch
GLAMF.Init();
GLAIS.Init();
GLAVC.Init();
GLCAS.Init();
GLACHD.Init();
GLAMF["ACCTID"] = "800170000000"; // Unformatted Account
GLAMF["PROCESSCMD"] = "1"; // Process Switch
GLAMF["ACCTFMTTD"] = "800-1700-00000"; // Account Number
GLAMF.Process();
GLAVC.Browse("(ACCTID = ");
GLCAS.Browse("(ACCTID = ");
GLACHD.Browse("(PARENT = ");
GLAIS.Browse("(ACCTID = ");
GLAMF["ACCTGRPCOD"] = "02"; // Account Group Code
GLAMF["PROCESSCMD"] = "7"; // Process Switch
GLAMF["ACCTTYPE"] = "B"; // Type
GLAMF["ACCTBAL"] = "1"; // Normal Balance DR/CR
GLAMF.Process();
GLAMF.Insert();
GLAMF.Read();
GLAIS.Init();
GLAVC.Init();
GLCAS.Init();
GLACHD.Init();
GLAVC.Browse("(ACCTID = ");
GLCAS.Browse("(ACCTID = ");
GLACHD.Browse("(PARENT = ");
GLAIS.Browse("(ACCTID = ");
GLAMF.Read();
GLAIS.Init();
GLAVC.Init();
GLCAS.Init();
GLACHD.Init();
GLAVC.Browse("(ACCTID = ");
GLCAS.Browse("(ACCTID = ");
GLACHD.Browse("(PARENT = ");
GLAIS.Browse("(ACCTID = ");
GLAMF.Init();
GLAIS.Init();
GLAVC.Init();
GLCAS.Init();
GLACHD.Init();
}