Views [dbo].[CustomerInformationArcReport_XLedger]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created7:47:19 PM Saturday, February 7, 2026
Last Modified7:48:55 PM Saturday, February 7, 2026
Columns
Name
CustomerNumber
CustomerName
OnHold
NoCreditFlag
CreditLimit
Inactive
CustomerClass
Address
City
State
CustomerId
CustomerJoinField
Hold
Permissions
TypeActionOwning Principal
GrantInsertMssExec
GrantDeleteMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
--CustomerInformationArcReport_XLedger
/**
* Do NOT access this view by this view name.  Instead, use the CustomerInformation_Synonym which will either
* point to this view or to the CustomerInformation_Legacy as appropriate for that system.
*/

create view [dbo].[CustomerInformationArcReport_XLedger]
(
    CustomerNumber,
    CustomerName,
    OnHold,
    NoCreditFlag,
    CreditLimit,
    Inactive,
    CustomerClass,
    [Address],
    City,
    [State],
    CustomerId,
    CustomerJoinField,
    Hold
)
as
select
    CustomerNumber = AccountingCustomer.CustomerNumber,
    CustomerName = AccountingCustomer.[Name],
    OnHold = case
        when AccountingCustomer.OnHold = 1 and AccountingCustomer.Hidden = 1 then 'On Hold, Inactive'
        when AccountingCustomer.OnHold = 1 then 'On Hold'
        when AccountingCustomer.Hidden = 1 then 'Inactive'
        else ''
    end,
    NoCreditFlag = AccountingCustomer.NoCreditFlag,
    CreditLimit = AccountingCustomer.CreditLimit,
    Inactive = AccountingCustomer.Hidden,
    CustomerClass = AccountingCustomerClass.ClassCode,
    [Address] = AccountingCustomerAddress.[Address1],
    City = AccountingCustomerAddress.City,
    [State] = AccountingCustomerAddress.[State],
    CustomerId = AccountingCustomer.AccountingCustomerId,
    CustomerJoinField = AccountingCustomer.AccountingCustomerId,
    Hold = AccountingCustomer.OnHold
from AccountingCustomer
inner join AccountingCustomerAddressType on AccountingCustomerAddressType.TypeName = dbo.GetDefaultAccountingCustomerAddressTypeName()
left outer join AccountingCustomerAddress on AccountingCustomerAddress.AccountingCustomerFid = AccountingCustomer.AccountingCustomerId and
    AccountingCustomerAddress.AccountingCustomerAddressTypeFid = AccountingCustomerAddressType.AccountingCustomerAddressTypeId
left outer join CountryCodeStandard on CountryCodeStandard.CountryCodeStandardID = AccountingCustomerAddress.CountryCodeStandardFID
left outer join AccountingCustomerClass on AccountingCustomerClass.AccountingCustomerClassId = AccountingCustomer.AccountingCustomerClassFid
GO
GRANT SELECT ON  [dbo].[CustomerInformationArcReport_XLedger] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerInformationArcReport_XLedger] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerInformationArcReport_XLedger] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerInformationArcReport_XLedger] TO [MssExec]
GO
Uses