---
title: "SQL-024: clsPaymentTotalManager"
summary: Create statement for clsPaymentTotalManager.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Payment
reference_type: package
---

# SQL-024: clsPaymentTotalManager

This statement supports `clsPaymentTotalManager` by executing a Create operation through inline.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-024 |
| **Operation type** | Create |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPaymentTotalManager` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ClaimCostCategoryCode` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:CategoryPaymentAmount` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:TimelossDayQuantity` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:PaymentTotalID` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:ClaimID` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:EffectiveDate` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |
| `:UpdateUser` | Input | Unknown | — | Passed from clsPaymentTotalManager via BeforeInsert. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_PAYMENT_TOTAL](../database-tables.md#cl_payment_total) | Create | Not enumerated directly in the stage findings.** |

## Sample SQL

```sql
Insert into CL_PAYMENT_TOTAL (
    CL_PAYMENT_TOTAL_SEQ_NUM,
    CLAIM_ID,
    PAYMENT_TOTAL_EFFECTIVE_DATE,
    CLAIM_COST_CATEGORY_CODE,
    PAYMENT_TOTAL_SUB_NUMBER,
    BASELINE_AMOUNT_FLAG,
    CATEGORY_PAYMENT_AMT,
    TIMELOSS_DAY_QTY,
    UPDATE_DATE,
    UPDATE_USER,
    UPDATE_NUM
) VALUES (
    :PaymentTotalID,
    :ClaimID,
    :EffectiveDate,
    :ClaimCostCategoryCode,
    (select nvl(max(payment_total_sub_number) + 1, 0) from(cl_payment_total) where claim_id = :ClaimID and payment_total_effective_date = :EffectiveDate and claim_cost_category_code = :ClaimCostCategoryCode),
    'N',
    :CategoryPaymentAmount,
    :TimelossDayQuantity,
    SYSDATE,
    :UpdateUser,
    0
)
```

## Operations and processes

- [clsPaymentTotalManager BeforeInsert](../operations/payment-posting-and-totals-management.md)

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

## Sources

- `Business/SAIF.Business.Claim.Payment/FinancialTransaction/clsPaymentTotalManager.vb`
