changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -42,6 +42,7 @@ urlpatterns = [
|
|||||||
re_path('password/(?P<text>.+)/$', views.get_password),
|
re_path('password/(?P<text>.+)/$', views.get_password),
|
||||||
re_path('exportcsv/(?P<name>.+)/$', views.export_csv),
|
re_path('exportcsv/(?P<name>.+)/$', views.export_csv),
|
||||||
re_path('account-entry/$', payment.account_entry),
|
re_path('account-entry/$', payment.account_entry),
|
||||||
|
re_path('account-multi-entry/$', payment.account_multi_entry),
|
||||||
re_path('close-of-business/$', cob.close_of_business),
|
re_path('close-of-business/$', cob.close_of_business),
|
||||||
re_path('create-contract/', contract.create_contract),
|
re_path('create-contract/', contract.create_contract),
|
||||||
re_path('data-deletion/', cleardata.data_deletion),
|
re_path('data-deletion/', cleardata.data_deletion),
|
||||||
|
|||||||
Binary file not shown.
@@ -99,4 +99,31 @@ def account_entry(request):
|
|||||||
if 'error' in data:
|
if 'error' in data:
|
||||||
return Response(data, status=400)
|
return Response(data, status=400)
|
||||||
|
|
||||||
return Response(data)
|
return Response(data)
|
||||||
|
|
||||||
|
|
||||||
|
#==========================================================================================
|
||||||
|
@api_view(['POST'])
|
||||||
|
def account_multi_entry(request):
|
||||||
|
try:
|
||||||
|
result = []
|
||||||
|
data = request.data.get('data')
|
||||||
|
for obj in data:
|
||||||
|
row = account_entry_api(
|
||||||
|
code=obj['Tài khoản'],
|
||||||
|
amount=obj['amount'],
|
||||||
|
content=obj['content'],
|
||||||
|
type='CR',
|
||||||
|
category=obj['category'],
|
||||||
|
userid=request.data.get('user'),
|
||||||
|
ref=obj['ref'],
|
||||||
|
product=obj['product'],
|
||||||
|
customer=obj['customer']
|
||||||
|
)
|
||||||
|
result.append(row)
|
||||||
|
|
||||||
|
return Response(result)
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
print({'error': f"Đã xảy ra lỗi không mong muốn: {str(e)}"})
|
||||||
|
return Response(data, status=400)
|
||||||
BIN
static/files/20260103061030-entry.xlsx
Normal file
BIN
static/files/20260103061030-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103061529-entry.xlsx
Normal file
BIN
static/files/20260103061529-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103061642-entry.xlsx
Normal file
BIN
static/files/20260103061642-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103061746-entry.xlsx
Normal file
BIN
static/files/20260103061746-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103061956-entry.xlsx
Normal file
BIN
static/files/20260103061956-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103062121-entry.xlsx
Normal file
BIN
static/files/20260103062121-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103062455-entry.xlsx
Normal file
BIN
static/files/20260103062455-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103062658-entry.xlsx
Normal file
BIN
static/files/20260103062658-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103063334-entry.xlsx
Normal file
BIN
static/files/20260103063334-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103063504-entry.xlsx
Normal file
BIN
static/files/20260103063504-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103063614-entry.xlsx
Normal file
BIN
static/files/20260103063614-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103063714-entry.xlsx
Normal file
BIN
static/files/20260103063714-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103063913-entry.xlsx
Normal file
BIN
static/files/20260103063913-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103064318-entry.xlsx
Normal file
BIN
static/files/20260103064318-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103064416-entry.xlsx
Normal file
BIN
static/files/20260103064416-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103064558-entry.xlsx
Normal file
BIN
static/files/20260103064558-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103064653-entry.xlsx
Normal file
BIN
static/files/20260103064653-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103064915-entry.xlsx
Normal file
BIN
static/files/20260103064915-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103065009-entry.xlsx
Normal file
BIN
static/files/20260103065009-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103065140-entry.xlsx
Normal file
BIN
static/files/20260103065140-entry.xlsx
Normal file
Binary file not shown.
BIN
static/files/20260103065246-entry.xlsx
Normal file
BIN
static/files/20260103065246-entry.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user