Sp_quoquotation_CustomerAgreeAgain (procedure)
@author:zhucx @date: @describe:
- Type: PROCEDURE
- Deterministic: NO
- SQL data access: CONTAINS SQL
Parameters
| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | sProInParam |
varchar(10000) |
| 2 | IN | sMakePerson |
varchar(100) |
| 3 | IN | sBrId |
varchar(100) |
| 4 | IN | sSuId |
varchar(100) |
| 5 | OUT | sReturn |
varchar(1000) |
| 6 | OUT | sCode |
int |
Body
Body is not pre-cached. To inspect: mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURESpquoquotation_CustomerAgreeAgain'._
Narrative
Business context: 销售管理 → 报价&估计管理 → 报价单 (quoquotationmaster) — toolbar button "客户重新同意" that walks the quote back from a rejected/withdrawn state to the active baseline (sStatus='1'). Reverse leg of Sp_quoquotation_CustomerUnagree, mirroring Sp_quoquotation_customeragreeWithdraw's body.
What it does: Validates sProInParam length, then iterates $.params[*].value[*].sId and runs UPDATE quoquotationmaster SET sStatus='1', tStatus=SYSDATE() WHERE sId=p_sId AND sBrandsId=sBrId AND sSubsidiaryId=sSuId. No further side-effects.
Invocation: Standard generic-dispatch button handler dispatched by GenericProcedureCallServiceImpl.doGenericProcedureCall() (POST /procedureCall/doGenericProcedureCall) when the 报价单 grid's 客户重新同意 button is clicked. No gdsmodule hook or DB-side binding.