Order change manager: Set new expiry date if splitted order is pending (#3509)

This commit is contained in:
Raphael Michel
2023-08-07 14:13:44 +02:00
committed by GitHub
parent e208a79c32
commit 0365f6d9fc
2 changed files with 8 additions and 0 deletions

View File

@@ -2476,6 +2476,11 @@ class OrderChangeManager:
split_order.status = Order.STATUS_PAID
else:
split_order.status = Order.STATUS_PENDING
if self.order.status == Order.STATUS_PAID:
split_order.set_expires(
now(),
list(set(p.subevent_id for p in split_positions))
)
split_order.save()
if offset_amount > Decimal('0.00'):