mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-07 10:35:17 +00:00
Fix bug where the promotion isn't shown in stats
This commit is contained in:
parent
abe98ace07
commit
13067c8529
@ -557,7 +557,7 @@ class Counter(models.Model):
|
|||||||
)
|
)
|
||||||
.annotate(nickname=F("customer__user__nick_name"))
|
.annotate(nickname=F("customer__user__nick_name"))
|
||||||
.annotate(promo=F("customer__user__promo"))
|
.annotate(promo=F("customer__user__promo"))
|
||||||
.values("customer__user", "name", "nickname")
|
.values("customer__user", "promo", "name", "nickname")
|
||||||
.annotate(
|
.annotate(
|
||||||
selling_sum=Sum(
|
selling_sum=Sum(
|
||||||
F("unit_price") * F("quantity"), output_field=CurrencyField()
|
F("unit_price") * F("quantity"), output_field=CurrencyField()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user