feat: add party-size queueing and call modes
This commit is contained in:
16
server/internal/domain/experienced_people.go
Normal file
16
server/internal/domain/experienced_people.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package domain
|
||||
|
||||
// DisplayExperiencedPeople applies the project's configured display floor to
|
||||
// the actual number of tickets issued for the current business day.
|
||||
func DisplayExperiencedPeople(start int, actual int64) int64 {
|
||||
if start < 0 {
|
||||
start = 0
|
||||
}
|
||||
if actual < 0 {
|
||||
actual = 0
|
||||
}
|
||||
if displayedStart := int64(start); displayedStart > actual {
|
||||
return displayedStart
|
||||
}
|
||||
return actual
|
||||
}
|
||||
Reference in New Issue
Block a user