mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
GiftCard: Add more information to transactions (#3308)
This commit is contained in:
@@ -44,7 +44,7 @@ def organizer2():
|
||||
@pytest.fixture
|
||||
def gift_card(organizer):
|
||||
gc = organizer.issued_gift_cards.create(currency="EUR")
|
||||
gc.transactions.create(value=42)
|
||||
gc.transactions.create(value=42, acceptor=organizer)
|
||||
return gc
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ def test_card_detail_view_transact_revert_refund(organizer, admin_user, gift_car
|
||||
r = o.refunds.create(
|
||||
amount=o.total, provider='giftcard', state=OrderRefund.REFUND_STATE_DONE
|
||||
)
|
||||
t = gift_card.transactions.create(value=14, order=o, refund=r)
|
||||
t = gift_card.transactions.create(value=14, order=o, refund=r, acceptor=organizer)
|
||||
|
||||
client.login(email='dummy@dummy.dummy', password='dummy')
|
||||
r = client.post('/control/organizer/dummy/giftcard/{}/'.format(gift_card.pk), {
|
||||
|
||||
@@ -44,7 +44,7 @@ def medium(organizer):
|
||||
@pytest.fixture
|
||||
def gift_card(organizer):
|
||||
gc = organizer.issued_gift_cards.create(currency="EUR")
|
||||
gc.transactions.create(value=42)
|
||||
gc.transactions.create(value=42, acceptor=organizer)
|
||||
return gc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user