Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parkstay: Update utils.py to ensure new_invoice = internal_create_boo… #347

Merged
merged 1 commit into from
Jul 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions parkstay/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,8 @@ def create_temp_bookingupdate(request,arrival,departure,booking_details,old_book
invoice = h.url.split('invoice=', 1)[1]
break

internal_create_booking_invoice(booking, invoice)

# Get the new invoice
new_invoice = booking.invoices.first()
# create the new invoice
new_invoice = internal_create_booking_invoice(booking, invoice)

# Check if the booking is a legacy booking and doesn't have an invoice
if old_booking.legacy_id and old_booking.invoices.count() < 1:
Expand Down