Skip to content

Commit

Permalink
transaction_date in orderline export
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainFayolle committed Nov 3, 2023
1 parent f35fe85 commit 24f5c1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions store/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class OrderLineResource(resources.ModelResource):
attribute='content_type__model',
)

transaction_date = fields.Field(
column_name='transaction_date',
attribute='order__transaction_date',
)

item_name = fields.Field()

item_id = fields.Field()
Expand All @@ -120,6 +125,7 @@ class Meta:
'item_id',
'quantity',
'order',
'transaction_date',
'coupon',
'coupon_real_value',
'cost',
Expand All @@ -132,6 +138,7 @@ class Meta:
'item_id',
'quantity',
'order',
'transaction_date',
'coupon',
'coupon_real_value',
'cost',
Expand Down

0 comments on commit 24f5c1d

Please sign in to comment.