aviza paynl auto

This commit is contained in:
t0is 2025-03-04 15:33:16 +01:00
parent 2c32600817
commit 2b7bc988f9
2 changed files with 6 additions and 6 deletions

View File

@ -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 = {

View File

@ -76,7 +76,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="tile bg-white shadow-md rounded-lg p-4 cursor-pointer hover:bg-blue-50 opacity-25 pointer-events-none"
<div class="tile bg-white shadow-md rounded-lg p-4 cursor-pointer hover:bg-blue-50"
data-option="paynl_auto" data-section="aviza">
<h2 class="text-xl font-semibold mb-2">Paynl .gpc</h2>
<p class="text-gray-600 text-sm italic">Pouzijte .zip se vsemi zip soubory z exportu</p>