﻿---
title: "SQL-088: Update paymentplan"
summary: Update paymentplan
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Premium
reference_type: package
---

# SQL-088: Update paymentplan

Update paymentplan in the context of `clsPaymentPlan`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:PolicyPeriodEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:DefaultPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:RenewalPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:Installments` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:PercentDown` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:BillingDefaultCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |
| `:PremiumHistorySetID` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlan.UpdateSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BILLING_MASTER](../database-tables.md#billing_master) | UPDATE | See sample SQL |

## Sample SQL

```sql
Update BILLING_MASTER
SET
  POLICY_NUM = :PolicyNumber,
  POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffectiveDate,
  DEFAULT_PLAN_CODE = :DefaultPlanCode,
  RENEWAL_PLAN_CODE = :RenewalPlanCode,
  INSTALLMENTS = :Installments,
  PERCENT_DOWN = :PercentDown,
  BILLING_DEFAULT_CODE = :BillingDefaultCode,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser,
  PREM_HIST_SET_ID = :PremiumHistorySetID
WHERE
  BILLING_MASTER.POLICY_NUM = :PolicyNumber
  AND BILLING_MASTER.POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffectiveDate
```


> **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.Premium/clsPaymentPlan.vb`
