Skip to content

SQL-032: Update group association discount row

SQL-032 update group association discount row in support of clsGroupAssociationDiscount.

Classification

Field Value
SQL ID SQL-032
Operation type Update
Execution method Inline SQL via BOF data portal
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsGroupAssociationDiscount
Criteria property UpdateSQL
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 UPDATE GROUP_ASSOCIATION_CODE, EFFECTIVE_DATE, EXPIRATION_DATE, PCNT_DISCOUNT, CREATE_DATE, CREATE_USER_NAME, UPDATE_DATE, UPDATE_USER_NAME, PENDING_FLAG

Sample SQL

Update GROUP_ASSOCIATION_DETAIL
Set
  GROUP_ASSOCIATION_CODE = :GroupAssociationCode,
  EFFECTIVE_DATE = :EffectiveDate,
  EXPIRATION_DATE = :ExpirationDate,
  PCNT_DISCOUNT = :GroupDiscount,
  CREATE_DATE = :CreateDate,
  CREATE_USER_NAME = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER_NAME = :UpdateUser,
  PENDING_FLAG = :TentativeFlag
Where
  GROUP_ASSOCIATION_DETAIL.GROUP_ASSOCIATION_CODE = :GroupAssociationCode
  AND GROUP_ASSOCIATION_DETAIL.EFFECTIVE_DATE = :EffectiveDate

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