[FIX] If not document_type_id defined, prevent ticket from being sent to printer

Merged Santiago Said requested to merge fixNoDocumentTypeIdDefined into 8.0

Merge request reports