|
|
|
@ -150,13 +150,12 @@ class ModuleAllOrders(orders.ModuleOrders):
|
|
|
|
|
|
|
|
|
|
def GetButtonNameAndKeyValueAndAccess(self, a_Item): |
|
|
|
|
user_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.USER_ID) |
|
|
|
|
key_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.KEY) |
|
|
|
|
n, k, a = super().GetButtonNameAndKeyValueAndAccess(a_Item) |
|
|
|
|
return str(a_Item[key_field_id]) + ":" + n + "," + str(a_Item[user_field_id]), k, a |
|
|
|
|
return n + "," + str(a_Item[user_field_id]), k, a |
|
|
|
|
|
|
|
|
|
def GetPayInlineKeyboardFunc(self, a_ItemID, a_Destiny): |
|
|
|
|
def PayInlineKeyboard(a_Message, a_UserGroups): |
|
|
|
|
print('PayInlineKeyboard', a_Message, a_UserGroups, a_ItemID) |
|
|
|
|
#print('PayInlineKeyboard', a_Message, a_UserGroups, a_ItemID) |
|
|
|
|
cur_buttons = [] |
|
|
|
|
|
|
|
|
|
orders_mod = self.GetModule(orders.module_name) |
|
|
|
@ -169,7 +168,7 @@ class ModuleAllOrders(orders.ModuleOrders):
|
|
|
|
|
keyboard.InlineButtonWithAccess(orders_mod.GetButton(mod_table_operate.EditButton(dst)), prefix, a_ItemID, orders_mod.GetAccess(), access), |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
print('cur_buttons', cur_buttons, a_Message, a_UserGroups, a_ItemID) |
|
|
|
|
#print('cur_buttons', cur_buttons, a_Message, a_UserGroups, a_ItemID) |
|
|
|
|
return keyboard.MakeInlineKeyboardButtons(self.m_Bot, cur_buttons, a_UserGroups) |
|
|
|
|
return PayInlineKeyboard |
|
|
|
|
|
|
|
|
@ -204,7 +203,7 @@ class ModuleAllOrders(orders.ModuleOrders):
|
|
|
|
|
return |
|
|
|
|
msg = self.UpdateMessage(msg, None, item) |
|
|
|
|
inline_keyboard = None |
|
|
|
|
print('new_status', str(orders.OrderStatus.PAY), new_status) |
|
|
|
|
#print('new_status', str(orders.OrderStatus.PAY), new_status) |
|
|
|
|
if new_status == str(orders.OrderStatus.PAY): |
|
|
|
|
inline_keyboard = self.GetPayInlineKeyboardFunc(a_ItemID, bd_table.TableFieldDestiny.PHOTO_PAY) |
|
|
|
|
elif new_status == str(orders.OrderStatus.ADDRESS): |
|
|
|
|