# `Sp_Calc_sYear` (procedure) > 年度单价 - **Type:** PROCEDURE - **Deterministic:** NO - **SQL data access:** CONTAINS SQL ## Parameters | # | Mode | Name | Type | |---|---|---|---| | 1 | IN | `iFlag` | `int` | | 2 | IN | `iTmpCheck` | `int` | | 3 | IN | `sFormGuid` | `varchar(100)` | | 4 | IN | `sGuid` | `varchar(100)` | | 5 | IN | `sLoginId` | `varchar(100)` | | 6 | OUT | `sReturn` | `varchar(5000)` | | 7 | IN | `sBrId` | `varchar(100)` | | 8 | IN | `sSuId` | `varchar(100)` | | 9 | OUT | `sCode` | `int` | ## Body _Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_Calc_sYear`'`._ ## Narrative **Business context:** Bears the `Sp_Calc_s*` audit/un-audit signature against `elematerialsyearmaster` (材料年度单价 — annual material-pricing master). COMMENT says 年度单价 — auditing a year's price list freezes it as the reference rate for the calendar year. **What it does:** Validates `sGuid`. With `iFlag=1`, refuses when already `bCheck=1`; on success `Update elematerialsyearmaster SET bCheck=1, sStatus=1, sCheckPerson, tCheckDate=NOW()`. With `iFlag=0` symmetric un-audit, refusing when already at `bCheck=0`. Localised messages via `Sp_Sis_GetConst`. **Invocation:** Status: appears orphaned. No `gdsmodule.sProcName` row binds this name; xly-src has no occurrence anywhere. No Java caller, no other-routine caller, no form-master reference. Candidate for maintainer audit — the 年度单价 maintenance flow exists in the UI but its audit handler must be named differently in the deployed gdsmodule row.