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"> <section id="bank-eu">
<div class="is-row"> <div class="is-row">
<div class="is-col"> <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>
<div class="is-col"> <div class="is-col">
</div> </div>
@ -91,7 +91,7 @@
<section id="bank-noneu"> <section id="bank-noneu">
<div class="is-row"> <div class="is-row">
<div class="is-col"> <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>
<div class="is-col"> <div class="is-col">
<input type="input" size="32" id="n_bic" name="n_bic" placeholder="<?=_("BIC/SWIFT*")?>" /> <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']); $bankaddress = str_replace("\n","<BR>",$_POST['n_bankaddress']);
$address = str_replace("\n","<BR>",$_POST['n_address']); $address = str_replace("\n","<BR>",$_POST['n_address']);
$account_owner = $_POST['owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
# $aval = $_POST['advance']; # $aval = $_POST['advance'];
# $advance = floatval(str_replace(",",".",$aval)); # $advance = floatval(str_replace(",",".",$aval));
@ -98,6 +95,9 @@ function mkFrontPDF(){
switch ($_POST['banktype']){ switch ($_POST['banktype']){
case "bank-eu": case "bank-eu":
$account_owner = $_POST['sepa_owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
$aw = "EU-Bank&uuml;berweisung"; $aw = "EU-Bank&uuml;berweisung";
$aw_details = " $aw_details = "
Kontoinhaber: $account_owner<br> Kontoinhaber: $account_owner<br>
@ -107,6 +107,8 @@ function mkFrontPDF(){
"; ";
break; break;
case "bank-noneu": case "bank-noneu":
$account_owner = $_POST['non_sepa_owner'];
if (!$account_owner) $account_owner = $_POST['realname'];
$aw = "Non-EU-Bank&uuml;berweisung"; $aw = "Non-EU-Bank&uuml;berweisung";
$aw_details = " $aw_details = "
Kontoinhaber: $account_owner<br> Kontoinhaber: $account_owner<br>