forked from tohe/wmdeit_kaform
Fixed bank account owner
This commit is contained in:
parent
44aeeae0db
commit
6ece293ae7
4
form.php
4
form.php
|
@ -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*")?>" />
|
||||
|
|
|
@ -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ü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überweisung";
|
||||
$aw_details = "
|
||||
Kontoinhaber: $account_owner<br>
|
||||
|
|
Loading…
Reference in New Issue