sofue: Eintrag in Kalender auch bei 'offen'

This commit is contained in:
rxf
2026-01-19 17:15:44 +01:00
parent eb46fd0d6d
commit b77cb63758
3 changed files with 12 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ V 0.0 2019-02-04 rxf
*/
"use strict"
const DEVELOP=0; // 1 -> Entwicklung 0-> Produktion
const DEVELOP=1; // 1 -> Entwicklung 0-> Produktion
const moment = require('moment');
const axios = require('axios');

View File

@@ -568,7 +568,7 @@ function saveSettings() {
doAjaxCall_arr(ajaxURL,cmd,showajaxerg);
if(status == 1) { // offen -> mail an Liste
sendmail2liste(id);
sendmail2liste(id, termin);
}
if (status == 2) {
sendmail2beo(id, marb, termin)
@@ -612,12 +612,15 @@ function showdbase(val) {
}
// Status wurde auf 'offen' gesetzt -> nun eine Mail an die Liste mit der Anfrage senden
function sendmail2liste(id) {
function sendmail2liste(id, termin) {
const liste = 'sternwarte@planetariumsgesellschaft.de';
const cmd = {cmd: 'SENDMAIL2LISTE', id: id, to: liste}
let cmd = {cmd: 'SENDMAIL2LISTE', id: id, to: liste}
console.log("Sende mail to Liste");
doAjaxCall_arr(ajaxURL,cmd,showajaxerg);
console.log("Mail gesendet");
// in den Kalender als Platzhalter (mit ??) eintragen
cmd = {cmd: 'PUT2KALENDER', id: id, termin: termin, mitarbeiter: '??'}
doAjaxCall_arr(ajaxURL,cmd,showajaxerg);
}
// Status wurde auf 'zugesgat' gesetzt -> nun eine Mail an den BEO senden

View File

@@ -1,11 +1,14 @@
// VersiosNummern und -Geschichte
var VERSION="1.94";
var VDATE="2025-12-23";
var VERSION="1.95";
var VDATE="2026-01-19";
/* History
Rev. Datum Entwickler
1.95 2026-01-19
- Eintrag in den Kalender auch bei 'offen'
1.94 2025-12-22 rxf
- Autocomplete repariert