++notes
This commit is contained in:
parent
5ceaaf7c90
commit
f693dd3d18
2 changed files with 2 additions and 2 deletions
|
|
@ -666,10 +666,11 @@ class Product(UncloudModel):
|
|||
self.orders.add(recurring_order)
|
||||
|
||||
|
||||
def create_or_update_order(self, when_to_start=None, recurring_period=None):
|
||||
def create_or_update_recurring_order(self, when_to_start=None, recurring_period=None):
|
||||
if not when_to_start:
|
||||
when_to_start = timezone.now()
|
||||
|
||||
current_recurring_order = Order.objects.filter(
|
||||
# NEXT: find the latest order, use that one...
|
||||
# Update order = create new order
|
||||
if self.order:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue