#IF(#AutoSettleFlag AND NOT #Parent.Parent.PaidOn) {CompleteBooking} #ENDIF