Enabled
$outputTourarticle = "";
if ($constJbpBookingEnabled == "1" && $job_id != "") :
$outputTourarticle = getOutputJobTratArticleData($job_id);
endif;
// Display jobcalculator entries
// ATTENTION: Presently same parameter MASK_JOBDETAILS_JBP_BOOKING_ENABLED like for payment !!!!
$constJbpBookingEnabled = getParameterValue("0", "MASK_JOBDETAILS_JBP_BOOKING_ENABLED", $hq_id); // [= "1"] <=> Enabled
$outputJobcalculator = "";
if ($constJbpBookingEnabled == "1" && $job_id != "") :
$outputJobcalculator = getOutputJobCalculatorData($job_id);
endif;
// --- INVOICE TEXT ---------------
/*
if ($job_id != "") :
if ($f_act == "changeInvoiceText") :
updateStmt($dbh_jb, "jb_id", $job_id, array("jb_invtext", $f_jb_invtext_new), "(hq_id = '" . $hq_id . "')");
endif;
endif;
*/
$f_jb_invtext = getFieldValueFromId($dbh_jb, "jb_id", $job_id, "jb_invtext");
$jbStatus = getFieldValueFromId($dbh_jb, "jb_id", $job_id, "jb_status");
$jobinvoicetext = "
" . getLngt("(Vorläufiger) Rechnungstext") . ":
";
$jobinvoicetext .= "
\n";
// $jobinvoicetext .= "\n";
// --- DISPLAY PHOTOS FROM MOBILE ---------------
$outputPhotos = "";
if ($globalParUseRelatedCustomer == "1" && $job_id != "") :
// [1] B2B
$filenameArray = getImagesFromB2bObjects($job_id, "../temp/photos/", "jb");
$filenameArrayLen = count($filenameArray);
// [2] GDC
$tmpPhotoFilenames = getFieldValueFromClause("genericdatacontainer", "gdc_content", "gdc_obj_type = 'jb' AND gdc_obj_id = '" . $job_id . "' AND gdc_gen_fieldname = 'mobile_photos'");
// Display photos
if ($tmpPhotoFilenames != "" || $filenameArrayLen > 0) :
$tmpArrayLen = 0;
if ($tmpPhotoFilenames != "") :
$tmpPhotoFilenames = str_replace("|", "-,-", $tmpPhotoFilenames);
if (!(strpos($tmpPhotoFilenames, "-,-") === FALSE)) :
$tmpArray = spliti("-,-",$tmpPhotoFilenames);
else :
$tmpArray = array($tmpPhotoFilenames);
endif;
$tmpArrayLen = count($tmpArray);
endif;
if ($tmpArrayLen > 0 || $filenameArrayLen > 0) :
$systemPath = "..";
$tmpImgHeight = 100;
$tmpImgWidth = 133;
$outputPhotos .= "