product management, unification of kb and so on.

This commit is contained in:
2026-02-24 20:47:52 +07:00
parent 36ffca460f
commit 035170e46f
23 changed files with 470 additions and 130 deletions

View File

@@ -52,7 +52,7 @@ class OrderService:
session, order_item.id, quantity=order_item.quantity + quantity
)
return order_item.quantity + quantity
return order_item.quantity
async def remove_from_cart(
self,
@@ -162,7 +162,9 @@ class OrderService:
return CartDTO(items=cart_items, total=total, order_id=order.id)
async def build_full_cart_dto(self, session: AsyncSession, customer: int):
async def build_full_cart_dto(
self, session: AsyncSession, customer: int
) -> CartDTO:
order = await self.order_repo.get_draft_order_by_user(session, customer)
cart_items = []