Skip to content

SQL-068: clsCustomer

This statement supports clsCustomer by executing a update operation against COMPANY.

Classification

Field Value
SQL ID SQL-068
Operation type Update
Execution method Inline
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsCustomer
Criteria property UpdateSQL
Lifecycle method BeforeUpdate

Parameters

Parameter Direction Type Max length Description
:CustomerName Input String 100 Customer display name
:CustomerTypeCode Input String 5 Customer type code
:EffectiveDate Input Date N/A Effective date
:ExpirationDate Input Date N/A Expiration date
:IsActive Input String (Y/N) 1 Active flag
:IsPrimary Input String (Y/N) 1 Primary flag
:IsPerson Input String (Y/N) 1 Person/company flag
:CustomerShortDescription Input Unknown 10 Short customer description
:TaxID Input Decimal 11 Federal tax identifier
:ContactName Input String 80 Customer contact name
:InternalReferenceID Input Decimal 100 Internal reference identifier
:ExternalReferenceID Input Decimal 100 External reference identifier
:NoteText Input String 100 Free-form note text
:CustomerID Input Decimal N/A Customer primary key
:UpdateDate Input Date N/A Audit update timestamp
:UpdateUser Input Date 30 Audit update user

Tables

Table Access Columns used
COMPANY UPDATE ACTIVE_FLAG, COMPANY_CODE, COMPANY_NAME, COMPANY_SEQ_NUM, COMPANY_SHORT_DESCR, CONTACT_NAME, EFF_DT, EXP_DT, EXTERNAL_REFERENCE_ID, INTERNAL_REFERENCE_ID, NOTE_TEXT, PERSON_FLAG, PRIMARY_FLAG, TAX_ID, UPDATE_DATE, UPDATE_USER

Sample SQL

Update COMPANY Set COMPANY_NAME = :CustomerName, EFF_DT = :EffectiveDate, EXP_DT = :ExpirationDate, COMPANY_SHORT_DESCR = :CustomerShortDescription, TAX_ID = :TaxID, CONTACT_NAME = :ContactName, COMPANY_CODE = :CustomerTypeCode, ACTIVE_FLAG = :IsActive, PRIMARY_FLAG = :IsPrimary, PERSON_FLAG = :IsPerson, INTERNAL_REFERENCE_ID = :InternalReferenceID, EXTERNAL_REFERENCE_ID = :ExternalReferenceID, NOTE_TEXT = :NoteText, UPDATE_DATE = :UpdateDate, UPDATE_USER = :UpdateUser Where COMPANY.COMPANY_SEQ_NUM = :CustomerID

Operations and processes

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.CustomerContact\Customer\clsCustomer.vb