fix(inventory): audit action «InvCancelResults» ≤ 20 символов (varchar(20))
Some checks are pending
Auto-tag / Create date-tag (push) Waiting to run
CI / Backend (.NET 8) (push) Waiting to run
CI / Web (React + Vite) (push) Waiting to run
CI / POS (WPF, Windows) (push) Waiting to run
Docker API / Build + push API (push) Waiting to run
Docker API / Deploy API on stage (push) Blocked by required conditions

«InventoryCancelResults» (22) не влезал в OrgAuditLog.Action varchar(20) →
SqlState 22001 → cancel-results возвращал 500. Укоротил до «InvCancelResults».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nns 2026-10-09 01:14:42 +05:00
parent a77e0c59da
commit 99e10fa365

View file

@ -761,7 +761,7 @@ public async Task<IActionResult> CancelResults(Guid id, CancellationToken ct)
{
await _db.SaveChangesAsync(ct);
// Аудит в той же транзакции: кто/когда/из какой инвентаризации снял проведение.
await _audit.LogAsync("InventoryCancelResults", "inventory", doc.Id, new
await _audit.LogAsync("InvCancelResults", "inventory", doc.Id, new
{
inventoryNumber = doc.Number,
enters = enters.Select(e => new { e.Id, e.Number }).ToList(),