Views [dbo].[vCustomerInformation_Legacy]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created3:09:13 PM Tuesday, June 24, 2025
Last Modified3:09:13 PM Tuesday, June 24, 2025
Columns
Name
CustomerNumber
CustomerName
OnHold
NoCreditFlag
CreditLimit
Inactive
CustomerClass
Address
City
State
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
/**
* Don't use this view directly but instead use the synonym vCustomerInformation.
* vCustomerInformation will either point to this view or to
* vCustomerInformation_XLedger if that is active.
*
* IMPORTANT -- READ ON
* ====================
* The vCustomerInformation view is used in many ProServ custom reports. Don't
* remove/rename any columns from this view without confirmation from ProServ.
* Additionally, this view MUST return the same named columns and in the same
* order as the vCustomerInformation_XLedger view, which is why they can be hot
* swapped when XLedger is activated/deactivated.

*/

create view [dbo].[vCustomerInformation_Legacy]
(
    CustomerNumber,
    CustomerName,
    OnHold,
    NoCreditFlag,
    CreditLimit,
    Inactive,
    CustomerClass,
    [Address],
    City,
    [State]
)
as
select
    CustomerNumber = Customer.CUSTNMBR,
    CustomerName = ltrim( rtrim( Customer.CUSTNAME ) ),
    OnHold = case
        when Customer.HOLD = 1 and Customer.INACTIVE = 1 then 'On Hold, Inactive'
        when Customer.HOLD = 1 then 'On Hold'
        when Customer.INACTIVE = 1 then 'Inactive'
        else ''
    end,
    NoCreditFlag = convert( bit, case when Customer.CRLMTTYP = 0 then 1 else 0 end ),
    CreditLimit = convert( money, Customer.CRLMTAMT ),
    Inactive = convert( bit, Customer.INACTIVE ),
    CustomerClass = Customer.CUSTCLAS,
    [Address] = Customer.[Address1],
    City = Customer.City,
    [State] = Customer.[State]
from RM00101_Synonym as Customer
GO
GRANT SELECT ON  [dbo].[vCustomerInformation_Legacy] TO [MssExec]
GRANT INSERT ON  [dbo].[vCustomerInformation_Legacy] TO [MssExec]
GRANT DELETE ON  [dbo].[vCustomerInformation_Legacy] TO [MssExec]
GRANT UPDATE ON  [dbo].[vCustomerInformation_Legacy] TO [MssExec]
GO
Uses
Used By