added booking types + working on overtime
This commit is contained in:
@@ -86,10 +86,10 @@ func (u *User) CheckAnwesenheit() bool {
|
||||
|
||||
// Creates a new booking for the user -> check_in_out will be 254 for automatic check out
|
||||
func (u *User) CheckOut() error {
|
||||
booking := (*Booking).New(nil, u.CardUID, 0, 254)
|
||||
booking := (*Booking).New(nil, u.CardUID, 0, 254, 1)
|
||||
err := booking.Insert()
|
||||
if err != nil {
|
||||
fmt.Printf("Error inserting booking %v\n", err)
|
||||
fmt.Printf("Error inserting booking %v -> %v\n", booking, err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user