Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

[PC-7746] Stock.dnBookedQuantity for get_active_bookings_quantity_for_venue #2374

Merged
merged 1 commit into from May 4, 2021

Conversation

rlecellier
Copy link
Contributor

This property isn't usable for this function.
A comment has been added.
Also, fixing the BookingFactory to générate the right amount of
dnBookedQuantity.

Copy link
Contributor

@xordoquy xordoquy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je changerai bien le message de commit pour ne garder que la partie des factories.

@@ -190,6 +190,7 @@ def find_expired_bookings_ordered_by_offerer(expired_on: date = None) -> Query:


def get_active_bookings_quantity_for_venue(venue_id: int) -> int:
# Stock.dnBookedQuantity cannot be used here cause it's only count "not cancelled" bookings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Stock.dnBookedQuantity cannot be used here cause it's only count "not cancelled" bookings.
# Stock.dnBookedQuantity cannot be used here because we exclude used/confirmed bookings.

@rlecellier rlecellier force-pushed the rlecellier/sherif_dnBookingQuantity branch from 64465d3 to f8d6f42 Compare May 4, 2021 08:50
@rlecellier rlecellier force-pushed the rlecellier/sherif_dnBookingQuantity branch from f8d6f42 to 9a35a1a Compare May 4, 2021 14:59
@rlecellier rlecellier merged commit d89cfa4 into master May 4, 2021
@rlecellier rlecellier deleted the rlecellier/sherif_dnBookingQuantity branch May 4, 2021 14:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants