✨ Show details about purchase

🐛 Update user balance
This commit is contained in:
nikolark committed 2021-12-04 23:30:44 +01:00
1 parent 3d93a645ad
commit 2bcc993aaa
8 files changed
+87 -24

No files matched your search

+11
View File
@@ -51,6 +51,17 @@ class Order:
customer: "User"
order_sum: auto
created: auto
orderlines: list["OrderLine"]
is_external: bool
@strawberry_django.type(models.OrderLine)
class OrderLine:
id: auto
order: "Order"
product: "Product"
amount: auto
unit_price: auto
@strawberry_django.type(models.Transaction)