File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ async def head_transaction_detail_view(
150150{ transaction .created_at .strftime ("%d.%m.%Y в %H:%M" )} """
151151
152152 if transaction .use :
153- message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .user_comment } </blockquote>"
153+ message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .comment } </blockquote>"
154154
155155 await callback .message .edit_text (
156156 message_text , reply_markup = head_transaction_detail_kb (page )
Original file line number Diff line number Diff line change @@ -909,8 +909,8 @@ async def view_member_transaction_detail(
909909<b>📅 Дата создания</b>
910910{ transaction .created_at .strftime ("%d.%m.%Y в %H:%M" )} """
911911
912- if transaction .user_comment :
913- message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .user_comment } </blockquote>"
912+ if transaction .comment :
913+ message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .comment } </blockquote>"
914914
915915 await callback .message .edit_text (
916916 message_text ,
Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ async def transaction_detail_view(
156156<b>📅 Дата создания</b>
157157{ transaction .created_at .strftime ("%d.%m.%Y в %H:%M" )} """
158158
159- if transaction .user_comment :
160- message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .user_comment } </blockquote>"
159+ if transaction .comment :
160+ message_text += f"\n \n <b>💬 Комментарий</b>\n <blockquote expandable>{ transaction .comment } </blockquote>"
161161
162162 await callback .message .edit_text (
163163 message_text , reply_markup = transaction_detail_kb (page )
Original file line number Diff line number Diff line change @@ -194,9 +194,6 @@ async def product_detail_view(
194194<blockquote expandable><b>📅 Дата покупки</b>
195195{ user_product .bought_at .strftime ("%d.%m.%Y в %H:%M" )} </blockquote>"""
196196
197- if user_product .user_comment :
198- message_text += f"\n \n <b>💬 Комментарий</b>\n └ { user_product .user_comment } "
199-
200197 if user_product .updated_by_user_id :
201198 manager = await stp_repo .employee .get_user (
202199 user_id = user_product .updated_by_user_id
@@ -289,9 +286,6 @@ async def product_detail_view_from_shop(
289286<blockquote expandable><b>📅 Дата покупки</b>
290287{ user_product .bought_at .strftime ("%d.%m.%Y в %H:%M" )} </blockquote>"""
291288
292- if user_product .user_comment :
293- message_text += f"\n \n <b>💬 Комментарий</b>\n └ { user_product .user_comment } "
294-
295289 if user_product .updated_by_user_id :
296290 manager = await stp_repo .employee .get_user (
297291 user_id = user_product .updated_by_user_id
You can’t perform that action at this time.
0 commit comments