Skip to content

Commit

Permalink
Add property_of to invoice report (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
matyldv authored Nov 15, 2024
1 parent 530cac3 commit 06abac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ralph/assets/invoice_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class InvoiceReportMixin(object):

_invoice_report_select_related = []
_invoice_report_common_fields = [
'invoice_no', 'invoice_date', 'provider', 'price_currency'
'invoice_no', 'invoice_date', 'provider', 'price_currency', 'property_of__name'
]
_price_field = 'price'
_invoice_report_name = 'invoice'
Expand Down Expand Up @@ -122,6 +122,7 @@ def _get_report_data(self, request, queryset):
'datetime': datetime.datetime.now().strftime(
self._invoice_report_datetime_format
),
'property_of': first_item.property_of.name,
},
'items': list(map(self._parse_item, queryset)),
'sum_price': str(
Expand Down

0 comments on commit 06abac1

Please sign in to comment.