Changed to contractqueue and contract
This commit is contained in:
@@ -438,7 +438,15 @@
|
||||
},
|
||||
function(success) {
|
||||
if(success.status != "OK") return;
|
||||
|
||||
|
||||
var sla_id;
|
||||
if(p.sla_id) {
|
||||
sla_id = p.sla_id;
|
||||
} else {
|
||||
sla_id = 4;
|
||||
}
|
||||
|
||||
|
||||
p = success.result.product;
|
||||
$("#vatgroup_id").val(p.vatgroup_id);
|
||||
$("#price").val(p.price);
|
||||
|
||||
@@ -240,8 +240,8 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card border-top-warning">
|
||||
<div class="card-header">
|
||||
<h5>Journaleinträge</h5>
|
||||
@@ -267,7 +267,7 @@
|
||||
<?php if(strlen($j->text) > 120): ?>
|
||||
<td style="width: 100%" class="pointer" onclick="toggleTruncatedJournalText(<?=$j->id?>)">
|
||||
<span id="truncated-<?=$j->id?>"><i class="fas fa-caret-right"></i> <?=self::strtrim(str_replace(["\n", "\r", "\t"]," ", $j->text), 120)?></span>
|
||||
<span id="fulltext-<?=$j->id?>" class="hidden"><?=nl2br(htmlentities($j->text))?></span>
|
||||
<span id="fulltext-<?=$j->id?>" class="hidden"><?=nl2br($j->text)?></span>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td style="width: 100%">
|
||||
@@ -293,7 +293,7 @@
|
||||
<?php elseif($j->value == "import"): ?>
|
||||
<em>Vertrag importiert: <?=nl2br(htmlentities($j->text))?>
|
||||
<?php elseif($j->value == "order"): ?>
|
||||
<em>Vertrag aus Bestellung <a href="<?=self::getUrl("Order", "edit", ["id" => $contract->orderproduct->order_id])?>">#<?=$contract->orderproduct->order_id?></a> erstellt
|
||||
<em>Vertrag aus Bestellung <a href="<?=self::getUrl("Order", "", ["id" => $contract->orderproduct->order_id])?>">#<?=$contract->orderproduct->order_id?></a> erstellt
|
||||
<?php elseif($j->value == "productchange"): ?>
|
||||
<em>Vertrag erstellt: <?=nl2br(htmlentities($j->text))?>
|
||||
<?php endif; ?>
|
||||
@@ -454,5 +454,33 @@
|
||||
$("#truncated-" + id).toggle();
|
||||
$("#fulltext-" + id).toggle();
|
||||
}
|
||||
|
||||
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
|
||||
event.preventDefault();
|
||||
$(this).ekkoLightbox({
|
||||
alwaysShowClose: true,
|
||||
showArrows: false
|
||||
});
|
||||
});
|
||||
|
||||
function downloadImage(image_id) {
|
||||
event.preventDefault();
|
||||
location.href="<?=self::getUrl("File", "download")?>?id=" + image_id;
|
||||
}
|
||||
|
||||
function toggleGallery() {
|
||||
$("#ticketfile-body").toggle();
|
||||
|
||||
if($("#ticketfile-body").is(":hidden")) {
|
||||
console.log("is hidden");
|
||||
$("#gallery-toggle-button").removeClass("fa-caret-down");
|
||||
$("#gallery-toggle-button").addClass("fa-caret-right");
|
||||
} else {
|
||||
console.log("is not hidden");
|
||||
$("#gallery-toggle-button").removeClass("fa-caret-right");
|
||||
$("#gallery-toggle-button").addClass("fa-caret-down");
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|
||||
Reference in New Issue
Block a user