# `Sp_Calc_sMaterials` (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_sMaterials`'`._ ## Narrative **Business context:** 物料信息审核 — material-master (`elematerials`) audit / un-audit. The proc is part of the `Sp_Calc_s` audit-button family but is **not currently bound** to any `gdsmodule.sProcName` slot; status appears orphaned. **What it does:** Standard audit-button skeleton: defaults the IN params, validates `sGuid`, refuses re-audit / re-un-audit based on `bCheck`, then on `iFlag=1` flips `elematerials.bCheck=1` (plus `sCheckPerson`, `tCheckDate`); on `iFlag=0` clears those columns. No slave table, no KPI logging, no `Sp_System_CheckFlow` workflow call. **Invocation:** Status: appears orphaned. No `gdsmodule.sProcName` binding (the in-use material-master audit goes through `Sp_Check_smt` / similar), no `gdsconfigformmaster` reference, no other routine calls it, no xly-src grep hits — candidate for maintainer audit. The companion `Sp_Calc_sMaterialsBgd` (材料变更单) is the actively-bound variant.