(20250225)
This commit is contained in:
@@ -343,7 +343,7 @@ class PaymentsController(CoreAuthTokenController, ABC):
|
||||
payment.metadata.inAccount, # ................................... p_in_account
|
||||
payment.metadata.idUser, # ...................................... p_user_id
|
||||
payment.metadata.documentUrl, # ................................. p_document_url
|
||||
payment.metadata.againstReference # ............................. p_notes
|
||||
json.to_string(payment.metadata.againstReference) # ............. p_notes
|
||||
),
|
||||
retry_count = 1,
|
||||
backoff_seconds = 0.5,
|
||||
@@ -356,6 +356,25 @@ class PaymentsController(CoreAuthTokenController, ABC):
|
||||
if sql_json["status"] == 1: return True
|
||||
else: return False
|
||||
|
||||
async def add_sales_transaction(
|
||||
self,
|
||||
sql_conn: AsyncMySQL,
|
||||
mongo_data_conn: AsyncMongo,
|
||||
payment: CorePaymentModel,
|
||||
session_token: str = None
|
||||
) -> bool:
|
||||
|
||||
"""
|
||||
???
|
||||
:param sql_conn: The database connection to use to perform this activity.
|
||||
:param mongo_data_conn: The database connection to use to perform this activity.
|
||||
:param payment: The record of the payment whose details need to be added as a receipt.
|
||||
:param session_token: The session token of the user to identify whose request caused this receipt update.
|
||||
:return: True is the receipt was added, else False.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
async def add_event_by_payment_id(
|
||||
self,
|
||||
mongo_data_conn: AsyncMongo,
|
||||
|
||||
Reference in New Issue
Block a user