---
title: "SQL-084: clsPaymentAllocation update"
summary: Updates a payment allocation record in PAYMENT_ALLOCATION.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-084: clsPaymentAllocation update

Updates a payment allocation record in PAYMENT_ALLOCATION.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-084 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPaymentAllocation` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate / AfterUpdate` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :Amount | Input | Decimal | — | Binds `Amount` |
| :ApprovedPlanSeqNum | Input | Decimal | — | Binds `m_ApprovedPlanSeqNum`* |
| :OSCPolicyPeriodSeqNum | Input | Decimal | — | Binds `m_OSCPolicyPeriodSeqNum`* |
| :DynamicBalanceSeqNum | Input | Decimal | — | Binds `m_DynamicBalanceSeqNum`* |
| :PaymentAllocationSeqNum | Input | Decimal | — | Binds `PaymentAllocationSeqNum`* |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PAYMENT_ALLOCATION](../database-tables.md#payment_allocation) | Write | — |

## Sample SQL

```sql
Update PAYMENT_ALLOCATION
Set AMOUNT = :Amount,
  APPROVED_PLAN_SEQ_NUM = :ApprovedPlanSeqNum,
  OSC_POLICY_PERIOD_SEQ_NUM = :OSCPolicyPeriodSeqNum,
  DYNAMIC_BALANCE_SEQ_NUM = :DynamicBalanceSeqNum
Where PAYMENT_ALLOCATION.PAYMENT_ALLOCATION_SEQ_NUM = :PaymentAllocationSeqNum
```

## Operations and processes
- [Payment detail and allocation](../operations/payment-detail-and-allocation.md)*

> **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.

## Business rules
- [BR-EFT-05: Insert/update must affect exactly 1 row](../business-rules.md#br-eft-05-insertupdate-operations-require-exactly-one-affected-row)

## Sources
- `Business\SAIF.Business.Payment.EFT\clsPaymentAllocation.vb`
