From 2b7bc988f959e38c3879ce41e2863458f6892f34 Mon Sep 17 00:00:00 2001 From: t0is Date: Tue, 4 Mar 2025 15:33:16 +0100 Subject: [PATCH] aviza paynl auto --- aviza/paynl_auto.py | 10 +++++----- templates/index.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aviza/paynl_auto.py b/aviza/paynl_auto.py index e788e2b..5837194 100644 --- a/aviza/paynl_auto.py +++ b/aviza/paynl_auto.py @@ -115,7 +115,7 @@ def convert_csv_to_gpc_paynl_auto(csv_file_path, bank_statement_file_path, gpc_f constant_symbol=0, bank_code=0, specific_symbol=0, - client_name="CG ABCD-EFGH-IJKL" if transaction_code == TransactionCode.DEBET else "CG refundace", + client_name="CG ABCD-EFGH-IJKL" if transaction_code == TransactionCode.CREDIT else "CG refundace", currency=currency_code, date=created_on ) @@ -159,7 +159,7 @@ def convert_csv_to_gpc_paynl_auto(csv_file_path, bank_statement_file_path, gpc_f constant_symbol=0, bank_code=0, specific_symbol=0, - client_name="CG vyuctovani", + client_name="CG vyúčtování", currency="1001", date=parse_date(corresponding_transaction['Datum']) ) @@ -178,9 +178,9 @@ def convert_csv_to_gpc_paynl_auto(csv_file_path, bank_statement_file_path, gpc_f old_sign='+', new_balance=0, new_sign='+', - turnover_debet=total_payout_debet, + turnover_debet=total_payout, turnover_debet_sign='+', - turnover_credit=total_payout_credit, + turnover_credit=total_payout, turnover_credit_sign='+', transaction_list_no=3, date=datetime.now() @@ -194,7 +194,7 @@ def convert_csv_to_gpc_paynl_auto(csv_file_path, bank_statement_file_path, gpc_f file_content = "".join(gpc_lines) print(f"GPC file content successfully created for: {gpc_file_path}") - return file_content.encode("utf-8") + return file_content.encode("windows-1250") # Example mappings mapping_paynl_avizo = { diff --git a/templates/index.html b/templates/index.html index 04ccd91..9a0198f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -76,7 +76,7 @@
-

Paynl .gpc

Pouzijte .zip se vsemi zip soubory z exportu