created a before save prebooking function

Need to create an assignment to _POST  variable
little change
Merge branch 'prebooked-function' into Interface