Added the balance-before record and the sum record to the cash account report. Moved the SqlQuery utility from the accounting application to the Mia core application.

This commit is contained in:
2020-07-13 19:54:27 +08:00
parent fa7416d0f3
commit 39c75f772a
4 changed files with 150 additions and 41 deletions

View File

@ -394,3 +394,21 @@ class PaginationException(Exception):
def __init__(self, url):
self.url = url
class SqlQuery:
"""A SQL query statement with its parameters.
Args:
sql (str): The SQL statement.
params (list[str]): the parameters.
Attributes:
sql (str): The SQL statement.
params (list[str]): the parameters.
"""
sql = ""
params = []
def __init__(self, sql, params):
self.sql = sql
self.params = params