Ivt Transfer uses banking data from contact first
This commit is contained in:
@@ -73,7 +73,12 @@ class IvtCustomerController extends mfBaseController {
|
||||
$ivtc->phone = $contact->phone;
|
||||
$ivtc->email = $contact->email;
|
||||
|
||||
if($order->billing_type == "sepa") {
|
||||
|
||||
if($contact->billing_type == "sepa") {
|
||||
$ivtc->payment = 0; // 0 = sepa / 1 = rechnung
|
||||
$ivtc->BIC = $contact->bank_account_bic;
|
||||
$ivtc->IBAN = $contact->bank_account_iban;
|
||||
} elseif($order->billing_type == "sepa") {
|
||||
$ivtc->payment = 0; // 0 = sepa / 1 = rechnung
|
||||
$ivtc->BIC = $order->bank_account_bic;
|
||||
$ivtc->IBAN = $order->bank_account_iban;
|
||||
@@ -84,7 +89,7 @@ class IvtCustomerController extends mfBaseController {
|
||||
}
|
||||
|
||||
$ivtc->paper_invoice = 0;
|
||||
if(!$contact->email) {
|
||||
if(!$contact->email || $contact->billing_delivery == "paper") {
|
||||
$ivtc->paper_invoice = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user