SQL-012: Insert group association discount row
SQL-012 insert group association discount row in support of clsGroupAssociationDiscount.
Classification
Field
Value
SQL ID
SQL-012
Operation type
Insert
Execution method
Inline SQL via BOF data portal
Database
Oracle
Schema
[unqualified]**
Command type
Text
Business object
clsGroupAssociationDiscount
Criteria property
InsertSQL
Lifecycle method
none (framework default binding)
Parameters
Parameter
Direction
Type
Max length
Description
:GroupAssociationCode
In
String
not specified
Owning group association code (BR-013 : must be non-empty).
:EffectiveDate
In
Date
not specified
Start of the discount period.
:ExpirationDate
In
Date
not specified
End of the discount period; null while open.
:GroupDiscount
In
Decimal
not specified
Percent discount stored in PCNT_DISCOUNT (BR-014 ).
:CreateDate
In
Date
not specified
Audit — row creation timestamp.
:CreateUser
In
String
not specified
Audit — creating user (CREATE_USER_NAME).
:UpdateDate
In
Date
not specified
Audit — last update timestamp.
:UpdateUser
In
String
30 (BR-021 )
Audit — last updating user (UPDATE_USER_NAME).
:TentativeFlag
In
String
not specified
Maps to PENDING_FLAG; set means the discount is tentative (BR-015 ).
Tables
Table
Access
Columns used
GROUP_ASSOCIATION_DETAIL
INSERT
GROUP_ASSOCIATION_CODE, EFFECTIVE_DATE, EXPIRATION_DATE, PCNT_DISCOUNT, CREATE_DATE, CREATE_USER_NAME, UPDATE_DATE, UPDATE_USER_NAME, PENDING_FLAG
Sample SQL
Insert into GROUP_ASSOCIATION_DETAIL
(
GROUP_ASSOCIATION_CODE ,
EFFECTIVE_DATE ,
EXPIRATION_DATE ,
PCNT_DISCOUNT ,
CREATE_DATE ,
CREATE_USER_NAME ,
UPDATE_DATE ,
UPDATE_USER_NAME ,
PENDING_FLAG
)
Values
(
: GroupAssociationCode ,
: EffectiveDate ,
: ExpirationDate ,
: GroupDiscount ,
: CreateDate ,
: CreateUser ,
: UpdateDate ,
: UpdateUser ,
: TentativeFlag
)
Operations and processes
Note: Statements marked with * were inferred from code structure, naming conventions, or
contextual evidence where direct confirmation was not available in source artifacts. Statements
marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.Policy.Group\clsGroupAssociationDiscount.vb