# `Sp_Calc_sFixe` (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` | `longtext` |
| 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_sFixe`'`._

## Narrative

**Business context:** 设备管理 → 设备单据 — fixed-asset audit on `eptmachinefixedordermaster` (COMMENT `'固定资产审核过程'`). Approves a 固定资产 (fixed-asset order — purchase/transfer/disposal of a machine treated as a capital asset) so it can post into the asset register.

**What it does:** Validates `sGuid`, refuses when `bInvalid=1`. With `iFlag=1`: guards on already-`bCheck=1`, `UPDATE eptmachinefixedordermaster` setting `bCheck=1, sStatus=1, sCheckPerson, tCheckDate`. With `iFlag<>1`: symmetric uncheck. Standard thin `Sp_Calc_s<Code>` audit shape.

**Invocation:** Status: appears orphaned. No live `gdsmodule.sProcName` binding, no `sSaveProName` hook, no other-routine CALLs, no xly-src reference (no install script in `30100101/`, no Java caller) — candidate for maintainer audit. Likely a customer-specific or in-development module; verify whether the 固定资产 form is enabled per tenant.
