# `Sp_beforeSave_sStl` (procedure)

> 前反写数量


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sGuid` | `varchar(2000)` |
| 2 | IN | `sBrId` | `varchar(100)` |
| 3 | IN | `sSuId` | `varchar(100)` |
| 4 | OUT | `sCode` | `int` |
| 5 | OUT | `sReturn` | `varchar(4000)` |

## Body

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

## Narrative

**Business context:** Unknown document — header comment is just `前反写数量` (before-save backwriter) with no document name, and the `sStl` suffix does not appear in any module's `sChinese`. From the body's delegation pattern and 5-arg signature it is structurally identical to the rest of the `Sp_beforeSave_s*` wrapper family (likely intended for some `Stl` / stocktake-like document).

**What it does:** Normalises `sGuid` to a quoted-CSV form, then `CALL Sp_saveReturn_sStl(sGuid, sBrId, sSuId, 1, @sCode, @sReturn)`. `Sp_saveReturn_sStl` exists in the DB but is itself unreferenced.

**Invocation:** Status: appears orphaned. No caller in any channel — no `gdsmodule` hook, no form-master reference, no entry in `Sp_Invalid_backwriting` / `Sp_delete_backwriting`, no xly-src hit, no dynamic-dispatch site. Candidate for maintainer audit; could be a placeholder for an unimplemented module.
