From 95c68a02be3f7e4e510e6909d72c5ab8dce62c4f Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 7 Oct 2021 22:45:31 +0200 Subject: [PATCH] Fixed some fields in sync to ivt --- application/IvtCustomer/IvtCustomerController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/IvtCustomer/IvtCustomerController.php b/application/IvtCustomer/IvtCustomerController.php index f3527e22b..0870d3c4f 100644 --- a/application/IvtCustomer/IvtCustomerController.php +++ b/application/IvtCustomer/IvtCustomerController.php @@ -85,11 +85,11 @@ class IvtCustomerController extends mfBaseController { $ivtc->paper_invoice = 1; } - $ivtc->MandatID = ($contract->spin) ? $contract->spin : 1; + $ivtc->MandatID = ($contact->spin) ? $contract->spin : 1; $ivtc->egn = 0; // 0=keine;1=pdf;2=cdr - $ivtc->accept_adver = $order->allow_contact; - $ivtc->accept_info = $order->allow_spin; + $ivtc->accept_adver = ($order->allow_contact) ? 2 : 1; + $ivtc->accept_info = ($order->allow_spin) ? 2 : 1; $ivtc->telephony_pricelist = 2; $ivtc->extrainfo = $order->note;