1
0
Fork 0

Fixed bank account owner

This commit is contained in:
Tobias Herre 2022-03-15 10:16:32 +01:00
parent 44aeeae0db
commit 6ece293ae7
2 changed files with 7 additions and 5 deletions

View File

@ -68,7 +68,7 @@
<section id="bank-eu">
<div class="is-row">
<div class="is-col">
<input type="input" size="32" name="Owner" placeholder="<?=_("Kontoinhabende Person")?>" />
<input type="input" size="32" name="sepa_owner" placeholder="<?=_("Kontoinhabende Person")?>" />
</div>
<div class="is-col">
</div>
@ -91,7 +91,7 @@
<section id="bank-noneu">
<div class="is-row">
<div class="is-col">
<input type="input" size="32" name="Owner" placeholder="<?=_("Kontoinhabende Person")?>" />
<input type="input" size="32" name="non_sepa_owner" placeholder="<?=_("Kontoinhabende Person")?>" />
</div>
<div class="is-col">
<input type="input" size="32" id="n_bic" name="n_bic" placeholder="<?=_("BIC/SWIFT*")?>" />

View File

@ -87,9 +87,6 @@ function mkFrontPDF(){
$bankaddress = str_replace("\n","<BR>",$_POST['n_bankaddress']);
$address = str_replace("\n","<BR>",$_POST['n_address']);
$account_owner = $_POST['owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
# $aval = $_POST['advance'];
# $advance = floatval(str_replace(",",".",$aval));
@ -98,6 +95,9 @@ function mkFrontPDF(){
switch ($_POST['banktype']){
case "bank-eu":
$account_owner = $_POST['sepa_owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
$aw = "EU-Bank&uuml;berweisung";
$aw_details = "
Kontoinhaber: $account_owner<br>
@ -107,6 +107,8 @@ function mkFrontPDF(){
";
break;
case "bank-noneu":
$account_owner = $_POST['non_sepa_owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
$aw = "Non-EU-Bank&uuml;berweisung";
$aw_details = "
Kontoinhaber: $account_owner<br>