Part of extension spree_print_invoice