public static VoucherTemplateDto GetlVoucherTemplateByCode(string shortCode, int companyId)
        {
            try
            {
                var voucherTemplate = AccountingDataProvider.GetVoucherTemplateByCode(shortCode, companyId);

                var viewModel = new VoucherTemplateDto
                {
                    CompanyId         = voucherTemplate.CompanyId,
                    CompanyName       = "",
                    CreditAccountCode = voucherTemplate.CreditAccount,
                    CreditAccountName = AccountingDataProvider.GetAccountByCode(voucherTemplate.CompanyId, voucherTemplate.CreditAccount).AccountName,
                    DebitAccountCode  = voucherTemplate.DebitAccount,
                    DebitAccountName  = AccountingDataProvider.GetAccountByCode(voucherTemplate.CompanyId, voucherTemplate.DebitAccount).AccountName,
                    Narration         = voucherTemplate.Narration,
                    ShortCode         = voucherTemplate.ShortCode,
                };

                return(viewModel);
            }

            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }
        }