Fix selling ordering bug that created "not enough money" errors

* Add tests
* Add tests for cons/dcons
This commit is contained in:
2025-01-10 16:35:42 +01:00
parent 6ee2e8c5da
commit a4c6439981
3 changed files with 95 additions and 2 deletions

View File

@ -460,6 +460,7 @@ Welcome to the wiki page!
limit_age=18,
)
cons = Product.objects.create(
id=settings.SITH_ECOCUP_CONS,
name="Consigne Eco-cup",
code="CONS",
product_type=verre,
@ -469,6 +470,7 @@ Welcome to the wiki page!
club=main_club,
)
dcons = Product.objects.create(
id=settings.SITH_ECOCUP_DECO,
name="Déconsigne Eco-cup",
code="DECO",
product_type=verre,