feat: split bills for one deal

This commit is contained in:
2025-05-09 13:32:30 +04:00
parent 42ce73dd6a
commit be13c77164
12 changed files with 154 additions and 90 deletions

View File

@@ -52,8 +52,13 @@ class ClientService(BaseService):
async def get_all(self) -> ClientGetAllResponse:
clients_query = await self.session.scalars(
select(Client)
.options(joinedload(Client.details))
.order_by(Client.id.desc())
.options(
joinedload(Client.details),
noload(Client.products),
noload(Client.pallets),
noload(Client.boxes),
noload(Client.chat)
)
)
clients = clients_query.all()
result = []