# `Sp_ProductProcess_BtnEventProductProcess` (procedure)


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

## Parameters

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

## Body

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

## Narrative

**Business context:** 销售管理 — sales-side helper that marks every line of a 销售订单 as stock-up complete given the order's `sBillNo`. The `_BtnEvent_` naming suggests intent to wire it to a toolbar button, but the parameter signature (`sSrcNo, sBrId, sSuId, …`) keeps `sSrcNo` rather than the generic `sProInParam`/`sMakePerson` shape, so the standard `GenericProcedureCallServiceImpl` dispatch path does not apply.

**What it does:** `SELECT sId INTO p_sId FROM salsalesordermaster WHERE sBillNo=sSrcNo AND sBrandsId=sBrId AND sSubsidiaryId=sSuId; UPDATE salsalesorderslave SET bStockupComplete=1 WHERE sParentId=p_sId AND tenant matches`. Identical body to `Sp_ProductProcess`.

**Invocation:** Status: appears orphaned. No caller in `gdsmodule` hooks, `gdsconfigformmaster` form-master columns, other stored routines, or the xly-src tree. Companion: `Sp_ProductProcess` (identical body, no install script for this variant). Candidate for maintainer audit — looks like an aborted rename/refactor.
