[CLAUDE] PurchaseEvaluation: ô "Cấp này KẾT THÚC quy trình" → opt-out bỏ-tick-được (anh Kiệt FDC)
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m12s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m12s
anh Kiệt UAT "cái này option thôi chứ e" — cấp cấu hình AllowApproverFinalize (Mig 58, S89 auto-finalize im lặng) NAY là ô-tích BỎ được: - Default checked = giữ hành vi cũ (duyệt xong KẾT THÚC, không lên CEO) — backward-compat. - BỎ tick (applyLevelFinalize=false) → KHÔNG finalize, trình tiếp CEO/cấp sau; giá chốt ẩn (CEO chọn sau). BE: +param applyLevelFinalize (default true) xuyên interface → service (finalize guard `&& applyLevelFinalize`) → command → handler → controller body. FE: ô xanh static → checkbox 2 app (fe-admin+fe-user SHA-mirror) + hint động + sendPrice/shouldPickPrice gate theo cờ. Test: +test #6 opt-out→advance-to-CEO (spec change; #1-5 backward-compat giữ). Build slnx + 2 FE PASS 0-err; test 434→435. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -138,7 +138,7 @@ public class PurchaseEvaluationsController(IMediator mediator) : ControllerBase
|
||||
await mediator.Send(new TransitionPurchaseEvaluationCommand(
|
||||
id, body.TargetPhase, body.Decision, body.Comment,
|
||||
body.ReturnMode, body.ReturnTargetUserId, body.SkipToFinal,
|
||||
body.FinalizeByCcmDelegation, body.ApprovedPriceAmount, body.ApprovedPriceSource), ct);
|
||||
body.FinalizeByCcmDelegation, body.ApprovedPriceAmount, body.ApprovedPriceSource, body.ApplyLevelFinalize), ct);
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
@ -350,7 +350,9 @@ public record TransitionPeBody(
|
||||
// [Mig 54 2026-06-18 — anh Kiệt FDC] ③ CCM duyệt done miễn CEO + ① giá chốt.
|
||||
bool FinalizeByCcmDelegation = false,
|
||||
decimal? ApprovedPriceAmount = null,
|
||||
string? ApprovedPriceSource = null);
|
||||
string? ApprovedPriceSource = null,
|
||||
// [S96 2026-07-01 — anh Kiệt FDC] false = BỎ tick "Cấp này KẾT THÚC" → vẫn trình CEO.
|
||||
bool ApplyLevelFinalize = true);
|
||||
|
||||
public record AddSupplierBody(
|
||||
Guid SupplierId,
|
||||
|
||||
Reference in New Issue
Block a user