diff --git a/api/__pycache__/settings.cpython-312.pyc b/api/__pycache__/settings.cpython-312.pyc index 20b47a20..d1ea22b9 100644 Binary files a/api/__pycache__/settings.cpython-312.pyc and b/api/__pycache__/settings.cpython-312.pyc differ diff --git a/app/__pycache__/payment.cpython-312.pyc b/app/__pycache__/payment.cpython-312.pyc index deb0feaa..d3cf6285 100644 Binary files a/app/__pycache__/payment.cpython-312.pyc and b/app/__pycache__/payment.cpython-312.pyc differ diff --git a/app/payment.py b/app/payment.py index 1bcdd304..5699991a 100644 --- a/app/payment.py +++ b/app/payment.py @@ -26,7 +26,7 @@ def account_entry_api(code, amount, content, type, category, userid, ref=None, p user = User.objects.get(id=userid) entry_type = Entry_Type.objects.get(code=type) entry_category = Entry_Category.objects.get(id=category) - system_date = date if date else datetime.now.strftime("%Y-%m-%d") + system_date = date if date else datetime.now().strftime("%Y-%m-%d") with transaction.atomic(): account = Internal_Account.objects.select_for_update().get(code=code) @@ -79,6 +79,7 @@ def account_entry_api(code, amount, content, type, category, userid, ref=None, p #========================================================================================== @api_view(['POST']) def account_entry(request): + print(request.data.get('date')) ref = request.data.get('ref') data = account_entry_api( code=request.data['code'], diff --git a/static/files/20260104101131-entry.xlsx b/static/files/20260104101131-entry.xlsx new file mode 100644 index 00000000..c2cbb80d Binary files /dev/null and b/static/files/20260104101131-entry.xlsx differ diff --git a/static/files/20260104102310-entry.xlsx b/static/files/20260104102310-entry.xlsx new file mode 100644 index 00000000..0a07ca0c Binary files /dev/null and b/static/files/20260104102310-entry.xlsx differ diff --git a/static/files/20260104102947-number-2.png b/static/files/20260104102947-number-2.png new file mode 100644 index 00000000..b7e2393a Binary files /dev/null and b/static/files/20260104102947-number-2.png differ