# `Sp_Check_mftProductionReportValueTest` (procedure)


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sGuid` | `varchar(100)` |
| 2 | IN | `sBrId` | `varchar(100)` |
| 3 | IN | `sSuId` | `varchar(100)` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_Check_mftProductionReportValueTest`'`._

## Narrative

**Business context:** Test/sandbox copy of `Sp_Check_mftProductionReportValue` — the production-output-value calculator for a printing-press 产量上报 document. Same business intent (compute billable 产值 from press number, colours, full-plate flags, 色令, 开机费) but kept as a developer scratch variant.

**What it does:** Near-identical body to `Sp_Check_mftProductionReportValue`: cursors slave rows of the report, derives effective colour counts and prices per press, and recomputes `dTotalColorMoney` / `dTotalMoney` to write back. Differences are limited to minor reordering of variable declarations.

**Invocation:** Status: appears orphaned. No caller found in any channel — `Sp_Calc_sPpr` calls the non-`Test` variant. No module hook, no form embed, no other-routine call, no xly-src reference. Candidate for maintainer audit / deletion once the production variant is confirmed stable.
