public static ERP_AccountsService.accountsInfo getAccountInfo(int accountID)
        {
            using (ERP_AccountsService.AccountsServiceClient client = new ERP_AccountsService.AccountsServiceClient())
            {
                ERP_AccountsService.accountsInfo AccountsInfo = null;
                AccountsInfo = client.getAccountBudgetInfo(accountID);


                return(AccountsInfo);
            }
        }
        public static List <SelectListItem> getAllAccounts()
        {
            using (ERP_AccountsService.AccountsServiceClient client = new ERP_AccountsService.AccountsServiceClient())
            {
                ERP_AccountsService.accounts[] AllAccounts = null;
                AllAccounts = client.findAllAccounts();

                List <SelectListItem> returnedData = new List <SelectListItem>();

                foreach (ERP_AccountsService.accounts acc in AllAccounts)
                {
                    returnedData.Add(new SelectListItem {
                        Text = acc.account_code + " " + acc.account_name, Value = acc.id.ToString()
                    });
                }

                return(returnedData);
            }
        }