|
|
@ -153,13 +153,13 @@ class ModuleAllOrders(orders.ModuleOrders): |
|
|
|
n, k, a = super().GetButtonNameAndKeyValueAndAccess(a_Item) |
|
|
|
n, k, a = super().GetButtonNameAndKeyValueAndAccess(a_Item) |
|
|
|
return str(a_Item[key_field_id]) + ":" + n + "," + str(a_Item[user_field_id]), k, a |
|
|
|
return str(a_Item[key_field_id]) + ":" + n + "," + str(a_Item[user_field_id]), k, a |
|
|
|
|
|
|
|
|
|
|
|
def GetPayInlineKeyboardFunc(self, a_ItemID): |
|
|
|
def GetPayInlineKeyboardFunc(self, a_ItemID, a_Destiny): |
|
|
|
def PayInlineKeyboard(a_Message, a_UserGroups): |
|
|
|
def PayInlineKeyboard(a_Message, a_UserGroups): |
|
|
|
print('PayInlineKeyboard', a_Message, a_UserGroups, a_ItemID) |
|
|
|
print('PayInlineKeyboard', a_Message, a_UserGroups, a_ItemID) |
|
|
|
cur_buttons = [] |
|
|
|
cur_buttons = [] |
|
|
|
|
|
|
|
|
|
|
|
orders_mod = self.GetModule(orders.module_name) |
|
|
|
orders_mod = self.GetModule(orders.module_name) |
|
|
|
dst = bd_table.TableFieldDestiny.PHOTO_PAY |
|
|
|
dst = a_Destiny |
|
|
|
if orders_mod: |
|
|
|
if orders_mod: |
|
|
|
prefix = orders_mod.m_EditPrefix.get(dst, None) |
|
|
|
prefix = orders_mod.m_EditPrefix.get(dst, None) |
|
|
|
if prefix: |
|
|
|
if prefix: |
|
|
@ -205,7 +205,9 @@ class ModuleAllOrders(orders.ModuleOrders): |
|
|
|
inline_keyboard = None |
|
|
|
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): |
|
|
|
if new_status == str(orders.OrderStatus.PAY): |
|
|
|
inline_keyboard = self.GetPayInlineKeyboardFunc(a_ItemID) |
|
|
|
inline_keyboard = self.GetPayInlineKeyboardFunc(a_ItemID, bd_table.TableFieldDestiny.PHOTO_PAY) |
|
|
|
|
|
|
|
elif new_status == str(orders.OrderStatus.ADDRESS): |
|
|
|
|
|
|
|
inline_keyboard = self.GetPayInlineKeyboardFunc(a_ItemID, bd_table.TableFieldDestiny.ADDRESS) |
|
|
|
|
|
|
|
|
|
|
|
await self.SendMessageToUser(msg, owner_id, a_GetInlineButtonsFunc = inline_keyboard) |
|
|
|
await self.SendMessageToUser(msg, owner_id, a_GetInlineButtonsFunc = inline_keyboard) |
|
|
|
|
|
|
|
|
|
|
|