Skip to Content
0
Dec 28, 2018 at 09:58 AM

Update AdminInfo throw exception but no reason

73 Views Last edit Dec 28, 2018 at 10:33 AM 2 rev

Hi all,

Code is following,

AdminInfo oadmin = b1Company.GetCompanyService().GetAdminInfo();

Console.WriteLine(string.Format("Local currency => {0}",oadmin.LocalCurrency));

//oadmin.EnableApprovalProcedureInDI = BoYesNoEnum.tYES;

//oadmin.DocConfirmation = BoYesNoEnum.tYES; oadmin.CompanyName = "mY cOMPANY";

try {

b1Company.GetCompanyService().UpdateAdminInfo(oadmin); //--------error throw exception

}

catch (Exception ex) {

log.Info(ex.StackTrace.ToString());

log.Info(b1Company.GetLastErrorDescription());

return;

}