pdf: Track files by entity ID and entity type, not just 'scope'.
Standardise command for generating tickets for order, line item, or ticket entities.
Clean-up.
Add 'completed' to the default valid order statuses.