forked from CGM_Public/pretix_original
Allow to use invoice address city in PDFs
This commit is contained in:
@@ -201,6 +201,11 @@ DEFAULT_VARIABLES = OrderedDict((
|
|||||||
"editor_sample": _("Sample company"),
|
"editor_sample": _("Sample company"),
|
||||||
"evaluate": lambda op, order, ev: escape(order.invoice_address.company if getattr(order, 'invoice_address', None) else '')
|
"evaluate": lambda op, order, ev: escape(order.invoice_address.company if getattr(order, 'invoice_address', None) else '')
|
||||||
}),
|
}),
|
||||||
|
("invoice_city", {
|
||||||
|
"label": _("Invoice address city"),
|
||||||
|
"editor_sample": _("Sample city"),
|
||||||
|
"evaluate": lambda op, order, ev: escape(order.invoice_address.city if getattr(order, 'invoice_address', None) else '')
|
||||||
|
}),
|
||||||
("addons", {
|
("addons", {
|
||||||
"label": _("List of Add-Ons"),
|
"label": _("List of Add-Ons"),
|
||||||
"editor_sample": _("Addon 1\nAddon 2"),
|
"editor_sample": _("Addon 1\nAddon 2"),
|
||||||
|
|||||||
Reference in New Issue
Block a user