feat: split bills for one deal
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user