diff --git a/Seyounth.Hyosung.Runtime/HyosungRuntime.cs b/Seyounth.Hyosung.Runtime/HyosungRuntime.cs index 6c54b4b..5b31baa 100644 --- a/Seyounth.Hyosung.Runtime/HyosungRuntime.cs +++ b/Seyounth.Hyosung.Runtime/HyosungRuntime.cs @@ -312,6 +312,8 @@ public class HyosungRuntime( control = await hyosungWmsService.GetControlNo(variety, grade); else control = control + 1; + if (control == 1000) + control = 1; var isEven = control % 2 == 0; await varietyService.SetLastNo(variety.Id, control.Value); await trayService.SetControlNoAsync(arg, control.Value);