Browse Source

Fixed bank account owner

master 1.0.0
Tobias Herre 2 years ago
parent
commit
6ece293ae7
2 changed files with 7 additions and 5 deletions
  1. +2
    -2
      form.php
  2. +5
    -3
      submit.php

+ 2
- 2
form.php 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*")?>" />

+ 5
- 3
submit.php 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>

Loading…
Cancel
Save