mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
Bugfixes for kalendermail & xenomporio version V1.0.RC1
This commit is contained in:
parent
502d9c45e5
commit
dd2fa38268
@ -1 +1 @@
|
||||
<?php $version="OSS"; $version_revision="20.3.c9ffacf";?>
|
||||
<?php $version="OSS"; $version_revision="1.0.RC1";?>
|
||||
|
@ -22155,7 +22155,12 @@ function Gegenkonto($ust_befreit,$ustid='', $doctype = '', $doctypeId = 0)
|
||||
//@refactor Geschaeftsbrief_vorlagen Modul
|
||||
function GetGeschaeftsBriefText($subjekt,$sprache='',$projekt='',$dokument='',$dokumentid=0)
|
||||
{
|
||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
||||
|
||||
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
||||
|
||||
if ($dbcheck) {
|
||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
||||
}
|
||||
if($abweichend>0 && !preg_match('/_Abweichend/',$subjekt))
|
||||
{
|
||||
$text = $this->GetGeschaeftsBriefText($subjekt."_Abweichend",$sprache,$projekt,$dokument,$dokumentid);
|
||||
@ -22197,7 +22202,11 @@ function Gegenkonto($ust_befreit,$ustid='', $doctype = '', $doctypeId = 0)
|
||||
function GetGeschaeftsBriefBetreff($subjekt,$sprache="",$projekt="",$dokument="",$dokumentid=0)
|
||||
{
|
||||
|
||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
||||
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
||||
|
||||
if ($dbcheck) {
|
||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
||||
}
|
||||
if($abweichend>0 && !preg_match('/_Abweichend/',$subjekt))
|
||||
{
|
||||
$text = $this->GetGeschaeftsBriefBetreff($subjekt."_Abweichend",$sprache,$projekt,$dokument,$dokumentid);
|
||||
|
Loading…
Reference in New Issue
Block a user