Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
534 stars 262 forks source link

Extend order info to all transactions #125

Closed valentino-sm closed 3 years ago

valentino-sm commented 3 years ago
  1. Fix brief order view from user.
  2. Save order_info to worker.
  3. Save worker.order_info in __order_transaction to db instead of empty row.
  4. Show order_info in full order view for admin.
  5. Hide notes if empty.

Don't use if you are not sure what you are doing.

valentino-sm commented 3 years ago
  1. Probably we should extend db.users for order_info. Another option is loading from last transaction when worker starts. There is shipping_address in addition =D
valentino-sm commented 3 years ago

I know this is some kind of hack but I just need the way to view order_info in-app admin-orders directly without looking into transactions.

Steffo99 commented 3 years ago

I think I won't merge this, as it's a bit of an hack, but I'll keep your branch, since it's a good reference for implementing that feature :)

Thanks for the contribution anyways!