changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -26,7 +26,7 @@ def account_entry_api(code, amount, content, type, category, userid, ref=None, p
|
|||||||
user = User.objects.get(id=userid)
|
user = User.objects.get(id=userid)
|
||||||
entry_type = Entry_Type.objects.get(code=type)
|
entry_type = Entry_Type.objects.get(code=type)
|
||||||
entry_category = Entry_Category.objects.get(id=category)
|
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():
|
with transaction.atomic():
|
||||||
account = Internal_Account.objects.select_for_update().get(code=code)
|
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'])
|
@api_view(['POST'])
|
||||||
def account_entry(request):
|
def account_entry(request):
|
||||||
|
print(request.data.get('date'))
|
||||||
ref = request.data.get('ref')
|
ref = request.data.get('ref')
|
||||||
data = account_entry_api(
|
data = account_entry_api(
|
||||||
code=request.data['code'],
|
code=request.data['code'],
|
||||||
|
|||||||
BIN
static/files/20260104101131-entry.xlsx
Normal file
BIN
static/files/20260104101131-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260104102310-entry.xlsx
Normal file
BIN
static/files/20260104102310-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260104102947-number-2.png
Normal file
BIN
static/files/20260104102947-number-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Reference in New Issue
Block a user