コード例 #1
0
        public async Task TestCreateAccountModel()
        {
            ChartOfAccountModule coaMod = new ChartOfAccountModule();
            bool result = await coaMod.ChartOfAccount.CreateChartOfAccountModel();

            Assert.True(result);
        }
コード例 #2
0
        public async Task TestGetAccountsByIds()
        {
            long [] acctIds = { 3, 4, 5 };
            ChartOfAccountModule       coaMod = new ChartOfAccountModule();
            IList <ChartOfAccountView> list   = await coaMod.ChartOfAccount.Query().GetViewsByIds(acctIds);

            if (list.Count > 0)
            {
                Assert.True(true);
            }
        }
コード例 #3
0
        public async Task TestGetExpenseCoa()
        {
            ChartOfAccountModule coaMod = new ChartOfAccountModule();
            string company                  = "1000";
            string busUnit                  = "1200";
            string objectNumber             = "502";
            IList <ChartOfAccountView> list = await coaMod.ChartOfAccount.Query().GetViewsByAccount(company, busUnit, objectNumber, "");

            if (list.Count == 0)
            {
                Assert.True(false);
            }
        }