Files
kjh2064 c41e5063b7 chore: remove kbx-foundation-v36 reference (superseded by v4 implementation)
Removed entire kbx-foundation-v36 directory as it's been replaced by
the new KBX Foundation v4 patterns implemented in this session:
- Registry-driven screen definitions
- Density-aware UI adapter components
- Feature module templates (ShadowRun, Models)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-08-12 01:39:58 +09:00

30 lines
928 B
C#

using Dapper;
using Npgsql;
namespace Modules.WMS.Picking.Shared;
public static class PickingTransitions
{
public static async Task AutoConfirmNextSameLocationAsync(
NpgsqlConnection connection,
NpgsqlTransaction transaction,
Guid taskId,
string completedLocation,
CancellationToken ct)
{
await connection.ExecuteAsync(new CommandDefinition("""
update wms.picking_lines
set location_confirmed=true, updated_at=now()
where id = (
select id
from wms.picking_lines
where task_id=@TaskId
and status <> 'COMPLETED'
order by line_no
limit 1
)
and location_code=@LocationCode;
""", new { TaskId = taskId, LocationCode = completedLocation }, transaction, cancellationToken: ct));
}
}