Fixed some fields in sync to ivt

This commit is contained in:
Frank Schubert
2021-10-07 22:45:31 +02:00
parent 87d2f032c1
commit 95c68a02be

View File

@@ -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;