private void SetCustomerInfo(LayawayReportObject rptObj, LayawayVO layaway) { if (GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer != null) { rptObj.CustomerName = GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.LastName + ", " + GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.FirstName; rptObj.CustomerFirstName = GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.FirstName; rptObj.CustomerLastName = GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.LastName; ContactVO cVo = GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.getPrimaryContact(); if (cVo != null) { rptObj.ContactNumber = Commons.Format10And11CharacterPhoneNumberForUI(cVo.ContactAreaCode + cVo.ContactPhoneNumber); } else { rptObj.ContactNumber = ""; } } else { CustomerVO customerObject = CustomerProcedures.getCustomerDataByCustomerNumber(GlobalDataAccessor.Instance.DesktopSession, layaway.CustomerNumber); rptObj.CustomerFirstName = customerObject.FirstName; rptObj.CustomerLastName = customerObject.LastName; ContactVO cVo = customerObject.getPrimaryContact(); if (cVo != null) { rptObj.ContactNumber = Commons.Format10And11CharacterPhoneNumberForUI(cVo.ContactAreaCode + cVo.ContactPhoneNumber); } else { rptObj.ContactNumber = ""; } } }