# `Sp_Calc_sSuBJ` (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(4000)` | | 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_sSuBJ`'`._ ## Narrative **Business context:** Has the `Sp_Calc_s*` audit/un-audit signature against `PurPurchasesuppinquirymaster` (采购询价单 = supplier inquiry/quote sheet). COMMENT says 供应商报价单 — the master table comment confirms this is the procurement-side inquiry/quote bill. **What it does:** Validates `sGuid`. With `iFlag=1` checks the master is not already `bCheck=1`, then flips `bCheck=1` and stamps `sCheckPerson`/`tCheckDate`. With `iFlag=0` mirrors as un-audit. Honours the `iDefineCheck`/`CkxDefineCheck` system setting (custom approval flow) — would route through `Sp_System_CheckFlow` rather than directly flipping the flag. **Invocation:** Status: appears orphaned. No `gdsmodule.sProcName` row binds this name (采购询价单 uses `Sp_Calc_sMsy`). xly-src has no occurrence anywhere. No Java caller, no other-routine caller, no form-master reference. Candidate for maintainer audit — either a legacy duplicate of `Sp_Calc_sMsy` or a stub for a feature that was never wired up.