bank account data will be saved to owner or billingaddress when adding
them to an order
This commit is contained in:
@@ -318,17 +318,27 @@
|
||||
<h4>Verrechnung</h4>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="billing_type">Verrechnungsart</label>
|
||||
<div class="col-lg-10">
|
||||
<select class="form-control" name="billing_type" id="billing_type">
|
||||
<option value="invoice" <?=($order->billing_type == "invoice") ? "selected='selected'" : ""?>>Rechnung</option>
|
||||
<option value="sepa" <?=($order->billing_type == "sepa") ? "selected='selected'" : ""?>>SEPA Bankeinzug</option>
|
||||
<option value="invoice">Rechnung</option>
|
||||
<option value="sepa">SEPA Bankeinzug</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="billing_delivery">Rechnungsversand</label>
|
||||
<div class="col-lg-10">
|
||||
<select class="form-control" name="billing_delivery" id="billing_delivery">
|
||||
<option value="email">Email</option>
|
||||
<option value="paper">Post</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="bank_account_bank">Kreditinstitut</label>
|
||||
<div class="col-lg-10">
|
||||
@@ -852,20 +862,26 @@
|
||||
$('#owner_new').change(function() {
|
||||
if($('#owner_new').prop('checked')) {
|
||||
$('#owner-form').show();
|
||||
$('#billing_block').show();
|
||||
$('#accept_block').show();
|
||||
$('#billing_block').show();
|
||||
} else {
|
||||
$('#owner-form').hide();
|
||||
$('#billing_block').hide();
|
||||
$('#accept_block').hide();
|
||||
if(!$('#billingaddress_new').prop('checked')) {
|
||||
$('#billing_block').hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#billingaddress_new').change(function() {
|
||||
if($('#billingaddress_new').prop('checked')) {
|
||||
$('#billingaddress-form').show();
|
||||
$('#billing_block').show();
|
||||
} else {
|
||||
$('#billingaddress-form').hide();
|
||||
if(!$('#owner_new').prop('checked')) {
|
||||
$('#billing_block').hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user