mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
Merge branch 'develop'
This commit is contained in:
commit
70e3289df5
@ -12,7 +12,7 @@
|
|||||||
class Config
|
class Config
|
||||||
{
|
{
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $updateHost = 'update.xentral.biz';
|
public $updateHost = 'removed.upgrade.host';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
114
cronjobs/autoversand_manuell.php
Normal file
114
cronjobs/autoversand_manuell.php
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
include(dirname(__FILE__)."/../conf/main.conf.php");
|
||||||
|
include(dirname(__FILE__)."/../phpwf/plugins/class.mysql.php");
|
||||||
|
include(dirname(__FILE__)."/../www/lib/imap.inc.php");
|
||||||
|
include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||||
|
|
||||||
|
class app_t {
|
||||||
|
var $DB;
|
||||||
|
var $user;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
// ende debug
|
||||||
|
|
||||||
|
/*
|
||||||
|
$debugfile = "/var/www/html/Xenomporio/debug.txt";
|
||||||
|
|
||||||
|
function file_append($filename,$text) {
|
||||||
|
$oldtext = file_get_contents($filename);
|
||||||
|
file_put_contents($filename,$oldtext.$text);
|
||||||
|
}
|
||||||
|
|
||||||
|
file_put_contents($debugfile,"1");
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(empty($app)){
|
||||||
|
$app = new app_t();
|
||||||
|
}
|
||||||
|
$DEBUG = 0;
|
||||||
|
|
||||||
|
if(empty($app->Conf)){
|
||||||
|
$conf = new Config();
|
||||||
|
$app->Conf = $conf;
|
||||||
|
}
|
||||||
|
if(empty($app->DB) || empty($app->DB->connection)){
|
||||||
|
$app->DB = new DB($app->Conf->WFdbhost, $app->Conf->WFdbname, $app->Conf->WFdbuser, $app->Conf->WFdbpass, null, $app->Conf->WFdbport);
|
||||||
|
}
|
||||||
|
if(empty($app->erp)){
|
||||||
|
if(class_exists('erpAPICustom')){
|
||||||
|
$erp = new erpAPICustom($app);
|
||||||
|
}else{
|
||||||
|
$erp = new erpAPI($app);
|
||||||
|
}
|
||||||
|
$app->erp = $erp;
|
||||||
|
}
|
||||||
|
$app->String = new WawiString();
|
||||||
|
if(class_exists('RemoteCustom'))
|
||||||
|
{
|
||||||
|
$app->remote = new RemoteCustom($app);
|
||||||
|
}else{
|
||||||
|
$app->remote = new Remote($app);
|
||||||
|
}
|
||||||
|
$app->Secure = new Secure($app);
|
||||||
|
$app->User = new User($app);
|
||||||
|
if(!defined('FPDF_FONTPATH'))
|
||||||
|
{
|
||||||
|
define('FPDF_FONTPATH',dirname(__DIR__) . '/www/lib/pdf/font/');
|
||||||
|
}
|
||||||
|
|
||||||
|
$cronjobname = 'autoversand_manuell';
|
||||||
|
|
||||||
|
$mutex = $app->DB->Select(
|
||||||
|
"SELECT MAX(`mutex`) FROM `prozessstarter` WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
if($mutex){
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter`
|
||||||
|
SET `mutexcounter`=`mutexcounter`+1
|
||||||
|
WHERE `mutex` = 1 AND (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
|
||||||
|
file_append($debugfile,"MUTEX");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter` SET `mutex`='1', `mutexcounter` = 0 WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
|
||||||
|
// START APPLICATION
|
||||||
|
|
||||||
|
$objAuftrag = $app->loadModule('auftrag');
|
||||||
|
if($objAuftrag == null || !method_exists($objAuftrag, 'AuftragVersand')) {
|
||||||
|
$app->erp->LogFile($cronjobname." failed. Error while loading module 'auftrag'.");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$pendingorders = $app->DB->SelectArr(
|
||||||
|
"SELECT id
|
||||||
|
FROM auftrag AS a
|
||||||
|
WHERE a.id!='' AND (a.belegnr!=0 OR a.belegnr!='')
|
||||||
|
AND a.status='freigegeben' AND a.cronjobkommissionierung > 0"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!is_null($pendingorders)) {
|
||||||
|
|
||||||
|
$processed_orders_num = 0;
|
||||||
|
foreach ($pendingorders as $pendingorder) {
|
||||||
|
/* Process each order */
|
||||||
|
|
||||||
|
if($objAuftrag->AuftragVersand($pendingorder['id'],true)) { // Ignore shipdate -> The order has been marked, send it
|
||||||
|
$processed_orders_num++;
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
// Limit to 10 per call
|
||||||
|
if ($processed_orders_num > 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// END APPLICATION
|
||||||
|
|
||||||
|
$app->DB->Update("UPDATE prozessstarter SET mutex = 0 , mutexcounter = 0, letzteausfuerhung = now() WHERE (parameter = '".$cronjobname."' ) AND aktiv = 1");
|
212
cronjobs/tickets.php
Normal file
212
cronjobs/tickets.php
Normal file
@ -0,0 +1,212 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Fetch all mails for accounts with ticket function
|
||||||
|
* Create tickets or sort mails to existing tickets
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Xentral\Components\Logger\Logger;
|
||||||
|
use Xentral\Components\MailClient\MailClientFactory;
|
||||||
|
use Xentral\Modules\SystemMailClient\MailClientConfigProvider;
|
||||||
|
use Xentral\Modules\SystemMailer\Service\EmailAccountGateway;
|
||||||
|
use Xentral\Modules\Ticket\Importer\TicketFormatter;
|
||||||
|
use Xentral\Modules\Ticket\Task\TicketImportHelperFactory;
|
||||||
|
|
||||||
|
$DEBUG = 0;
|
||||||
|
|
||||||
|
|
||||||
|
$debugfile = "/var/www/html/Xenomporio/debug.txt";
|
||||||
|
|
||||||
|
function file_append($filename,$text) {
|
||||||
|
$oldtext = file_get_contents($filename);
|
||||||
|
file_put_contents($filename,$oldtext.$text);
|
||||||
|
}
|
||||||
|
|
||||||
|
file_put_contents($debugfile,"0");
|
||||||
|
|
||||||
|
/** @var ApplicationCore $app */
|
||||||
|
|
||||||
|
$erp = $app->erp;
|
||||||
|
$conf = $app->Conf;
|
||||||
|
|
||||||
|
/** @var Logger $logger */
|
||||||
|
$logger = $app->Container->get('Logger');
|
||||||
|
|
||||||
|
$cronjobname = 'tickets';
|
||||||
|
/*
|
||||||
|
$mutex = $app->DB->Select(
|
||||||
|
"SELECT MAX(`mutex`) FROM `prozessstarter` WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
if($mutex){
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter`
|
||||||
|
SET `mutexcounter`=`mutexcounter`+1
|
||||||
|
WHERE `mutex` = 1 AND (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
|
||||||
|
file_append($debugfile,"MUTEX");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter` SET `mutex`='1', `mutexcounter` = 0 WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
|
// get all email Accounts that have the ticket system active
|
||||||
|
/** @var EmailAccountGateway $accountGateway */
|
||||||
|
$accountGateway = $app->Container->get('EmailAccountGateway');
|
||||||
|
$accounts = $accountGateway->getAccountsWithTicketActive();
|
||||||
|
|
||||||
|
file_append($debugfile,"Accs:".count($accounts).";");
|
||||||
|
|
||||||
|
|
||||||
|
// only load services if there is at least one account to import (performance)
|
||||||
|
$ticketModule = null;
|
||||||
|
$factory = null;
|
||||||
|
$configProvider = null;
|
||||||
|
$formatHelper = null;
|
||||||
|
$importHelperFactory = null;
|
||||||
|
if(!empty($accounts)){
|
||||||
|
/** @var Ticket $ticketModule */
|
||||||
|
$ticketModule = $app->erp->LoadModul('ticket');
|
||||||
|
/** @var MailClientFactory $factory */
|
||||||
|
$factory = $app->Container->get('MailClientFactory');
|
||||||
|
/** @var MailClientConfigProvider $configProvider */
|
||||||
|
$configProvider = $app->Container->get('MailClientConfigProvider');
|
||||||
|
/** @var TicketFormatter $formatHelper */
|
||||||
|
$formatHelper = $app->Container->get('TicketFormatter');
|
||||||
|
/** @var TicketImportHelperFactory $importHelperFactory */
|
||||||
|
$importHelperFactory = $app->Container->get('TicketImportHelperFactory');
|
||||||
|
}
|
||||||
|
|
||||||
|
$totalEmailsImportCount = 0;
|
||||||
|
foreach ($accounts as $account) {
|
||||||
|
$logger->debug(
|
||||||
|
'Start imap ticket import for {email}',
|
||||||
|
['email' => $account->getEmailAddress(), 'account' => $account]
|
||||||
|
);
|
||||||
|
|
||||||
|
file_append($debugfile,"Account ".$account->getemailAddress());
|
||||||
|
|
||||||
|
// create mail client
|
||||||
|
try {
|
||||||
|
$mailConfig = $configProvider->createImapConfigFromAccount($account);
|
||||||
|
$mailClient = $factory->createImapClient($mailConfig);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$logger->error('Failed to create email client', ['error' => (string)$e, 'account' => $account]);
|
||||||
|
|
||||||
|
file_append($debugfile,"Failed 1");
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
file_append($debugfile,"Connect to ".."SSL: ".$configProvider->isSslEnabled()." auth ".getAuthType()."\n");
|
||||||
|
|
||||||
|
// connect mail client
|
||||||
|
try {
|
||||||
|
try {
|
||||||
|
$mailClient->connect();
|
||||||
|
|
||||||
|
file_append($debugfile,"Meh");
|
||||||
|
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$logger->error('Error during imap connection', ['error' => (string)$e, 'account' => $account]);
|
||||||
|
|
||||||
|
file_append($debugfile,"Error ".(string)$e);
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
file_append($debugfile,"2");
|
||||||
|
|
||||||
|
// connet to INBOX folder
|
||||||
|
try {
|
||||||
|
$mailClient->selectFolder('INBOX');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$logger->error('Failed to select INBOX folder', ['error' => (string)$e, 'account' => $account]);
|
||||||
|
|
||||||
|
|
||||||
|
file_append($debugfile,"Failed 2");
|
||||||
|
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$projectId = $account->getProjectId() > 0 ? $account->getProjectId() : 1;
|
||||||
|
$delete_msg = 0;
|
||||||
|
$daysold = $account->getBackupDeleteAfterDays();
|
||||||
|
|
||||||
|
// determine search criteria for new messages
|
||||||
|
$datet = '2012-12-24';
|
||||||
|
if ($account->getImportStartDateAsString() !== '0000-00-00') {
|
||||||
|
$datesince = date('d-M-Y', strtotime($account->getImportStartDateAsString()));
|
||||||
|
$criteria = 'UNSEEN SINCE ' . $datesince;
|
||||||
|
} else {
|
||||||
|
$criteria = 'UNSEEN';
|
||||||
|
}
|
||||||
|
|
||||||
|
file_append($debugfile,"3");
|
||||||
|
|
||||||
|
// search new messages
|
||||||
|
try {
|
||||||
|
$searchResult = $mailClient->searchMessages($criteria);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$logger->error('Error during imap search', ['exception' => $e]);
|
||||||
|
|
||||||
|
file_append($debugfile,"Failed 3");
|
||||||
|
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$logger->debug('unread emails to import: {message_count}', ['message_count' => count($searchResult)]);
|
||||||
|
|
||||||
|
// set mutex if there is more than 5 emails to import
|
||||||
|
if (count($searchResult) > 5) {
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter`
|
||||||
|
SET `mutex`=1, `mutexcounter` = 0, `letzteausfuerhung` = NOW()
|
||||||
|
WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
$importer = $importHelperFactory->create($mailClient, $account, $projectId);
|
||||||
|
$insertedMailsCount = $importer->importMessages($searchResult);
|
||||||
|
$totalEmailsImportCount += $insertedMailsCount;
|
||||||
|
|
||||||
|
// set mutex if the total amount of imported emails is more than 10
|
||||||
|
if ($totalEmailsImportCount > 10) {
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter`
|
||||||
|
SET `mutex`=1, `mutexcounter` = 0, `letzteausfuerhung` = NOW()
|
||||||
|
WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$mailClient->expunge();
|
||||||
|
$mailClient->disconnect();
|
||||||
|
|
||||||
|
if (
|
||||||
|
method_exists($app->erp, 'canRunCronjob')
|
||||||
|
&& !$app->erp->canRunCronjob(['supportmails', 'tickets'])
|
||||||
|
) {
|
||||||
|
|
||||||
|
$logger->error('Tickets error');
|
||||||
|
|
||||||
|
file_append($debugfile,"Failed 5");
|
||||||
|
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter`
|
||||||
|
SET `mutex`=1, `mutexcounter` = 0, `letzteausfuerhung` = NOW()
|
||||||
|
WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$app->DB->Update(
|
||||||
|
"UPDATE `prozessstarter` SET `mutex`=0,`mutexcounter`=0 WHERE (`parameter` = '".$cronjobname."')"
|
||||||
|
);
|
||||||
|
|
||||||
|
file_append($debugfile,"END");
|
@ -10365,7 +10365,7 @@ CREATE TABLE IF NOT EXISTS `proformarechnung_protokoll` (
|
|||||||
CREATE TABLE IF NOT EXISTS `projekt` (
|
CREATE TABLE IF NOT EXISTS `projekt` (
|
||||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||||
`name` text NOT NULL,
|
`name` text NOT NULL,
|
||||||
`abkuerzung` text NOT NULL,
|
`abkuerzung` varchar(128) NOT NULL,
|
||||||
`verantwortlicher` text NOT NULL,
|
`verantwortlicher` text NOT NULL,
|
||||||
`beschreibung` text NOT NULL,
|
`beschreibung` text NOT NULL,
|
||||||
`sonstiges` text NOT NULL,
|
`sonstiges` text NOT NULL,
|
||||||
|
@ -2089,7 +2089,7 @@ public function NavigationHooks(&$menu)
|
|||||||
// @refactor FileLock Komponente
|
// @refactor FileLock Komponente
|
||||||
function ProzessUnlock($fp)
|
function ProzessUnlock($fp)
|
||||||
{
|
{
|
||||||
if(!$fp)return;
|
if(gettype($fp) != 'resource') return;
|
||||||
fflush($fp); // leere Ausgabepuffer bevor die Sperre frei gegeben wird
|
fflush($fp); // leere Ausgabepuffer bevor die Sperre frei gegeben wird
|
||||||
flock($fp, LOCK_UN); // Gib Sperre frei
|
flock($fp, LOCK_UN); // Gib Sperre frei
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
@ -22154,19 +22154,17 @@ function Gegenkonto($ust_befreit,$ustid='', $doctype = '', $doctypeId = 0)
|
|||||||
function GetGeschaeftsBriefText($subjekt,$sprache='',$projekt='',$dokument='',$dokumentid=0)
|
function GetGeschaeftsBriefText($subjekt,$sprache='',$projekt='',$dokument='',$dokumentid=0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
$text = '';
|
||||||
|
if ($dokument != '') {
|
||||||
if ($dbcheck) {
|
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
||||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
if (!empty($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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if($abweichend>0 && !preg_match('/_Abweichend/',$subjekt))
|
|
||||||
{
|
|
||||||
$text = $this->GetGeschaeftsBriefText($subjekt."_Abweichend",$sprache,$projekt,$dokument,$dokumentid);
|
|
||||||
}else{
|
|
||||||
$text = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($text=='')
|
if($text=='')
|
||||||
{
|
{
|
||||||
@ -22200,14 +22198,16 @@ function Gegenkonto($ust_befreit,$ustid='', $doctype = '', $doctypeId = 0)
|
|||||||
function GetGeschaeftsBriefBetreff($subjekt,$sprache="",$projekt="",$dokument="",$dokumentid=0)
|
function GetGeschaeftsBriefBetreff($subjekt,$sprache="",$projekt="",$dokument="",$dokumentid=0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
$text = '';
|
||||||
|
if ($dokument != '') {
|
||||||
if ($dbcheck) {
|
$dbcheck = $this->app->DB->Select("SHOW TABLES LIKE '$dokument'");
|
||||||
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
if ($dbcheck) {
|
||||||
}
|
$abweichend = $this->app->DB->Select("SELECT abweichendebezeichnung FROM $dokument WHERE id='$dokumentid' LIMIT 1");
|
||||||
if($abweichend>0 && !preg_match('/_Abweichend/',$subjekt))
|
}
|
||||||
{
|
if($abweichend>0 && !preg_match('/_Abweichend/',$subjekt))
|
||||||
$text = $this->GetGeschaeftsBriefBetreff($subjekt."_Abweichend",$sprache,$projekt,$dokument,$dokumentid);
|
{
|
||||||
|
$text = $this->GetGeschaeftsBriefBetreff($subjekt."_Abweichend",$sprache,$projekt,$dokument,$dokumentid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($text=="")
|
if($text=="")
|
||||||
@ -32659,7 +32659,6 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
$sendmail_error
|
$sendmail_error
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($sysMailerSent === false) {
|
if($sysMailerSent === false) {
|
||||||
$this->app->erp->LogFile("Mailer Error: " . $sendmail_error);
|
$this->app->erp->LogFile("Mailer Error: " . $sendmail_error);
|
||||||
$this->MailLogFile($from,$from_name,$to,$to_name,$betreff,$text,$files,$projekt,$signature,$cc,$bcc,$system);
|
$this->MailLogFile($from,$from_name,$to,$to_name,$betreff,$text,$files,$projekt,$signature,$cc,$bcc,$system);
|
||||||
@ -32673,7 +32672,7 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
}
|
}
|
||||||
// schreiben in post ausgang
|
// schreiben in post ausgang
|
||||||
$this->MailLogFile($from,$from_name,$to,$to_name,$betreff,$text,$files,$projekt,$signature,$cc,$bcc,$system);
|
$this->MailLogFile($from,$from_name,$to,$to_name,$betreff,$text,$files,$projekt,$signature,$cc,$bcc,$system);
|
||||||
$imap_aktiv = $this->app->DB->Select("SELECT imap_sentfolder_aktiv FROM emailbackup WHERE email='".$fromm."' AND imap_sentfolder!='' AND geloescht!=1 LIMIT 1");
|
$imap_aktiv = $this->app->DB->Select("SELECT imap_sentfolder_aktiv FROM emailbackup WHERE email='".$from."' AND imap_sentfolder!='' AND geloescht!=1 LIMIT 1");
|
||||||
if($imap_aktiv=="1" && !preg_match("/Xentral Kopie/",$to_name) && !preg_match("/WaWision Kopie/",$to_name))
|
if($imap_aktiv=="1" && !preg_match("/Xentral Kopie/",$to_name) && !preg_match("/WaWision Kopie/",$to_name))
|
||||||
{
|
{
|
||||||
$imap_data = $this->app->DB->SelectRow("SELECT * FROM emailbackup WHERE email='".$from."' AND geloescht!=1 LIMIT 1");
|
$imap_data = $this->app->DB->SelectRow("SELECT * FROM emailbackup WHERE email='".$from."' AND geloescht!=1 LIMIT 1");
|
||||||
@ -32693,7 +32692,9 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
$client = $clientProvider->createMailClientFromAccount($account);
|
$client = $clientProvider->createMailClientFromAccount($account);
|
||||||
$client->connect();
|
$client->connect();
|
||||||
$client->appendMessage($imapCopyMessage, $account->getImapOutgoingFolder());
|
$client->appendMessage($imapCopyMessage, $account->getImapOutgoingFolder());
|
||||||
} catch (Exception $e) {}
|
} catch (Exception $e) {
|
||||||
|
$this->app->erp->LogFile("Mailer Error: " . (string)$e);
|
||||||
|
}
|
||||||
|
|
||||||
$this->app->erp->LogFile("IMAP Ausgang FROM ".$from." S $server P $port T $type SP $server_path B ".$imap_data['benutzername']." SF ".$imap_data['imap_sentfolder']);
|
$this->app->erp->LogFile("IMAP Ausgang FROM ".$from." S $server P $port T $type SP $server_path B ".$imap_data['benutzername']." SF ".$imap_data['imap_sentfolder']);
|
||||||
}
|
}
|
||||||
|
@ -204,9 +204,6 @@ class Auftrag extends GenAuftrag
|
|||||||
$heading[] = 'Monitor';
|
$heading[] = 'Monitor';
|
||||||
$heading[] = 'Menü';
|
$heading[] = 'Menü';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$parameter = $this->app->User->GetParameter('table_filter_auftrag');
|
$parameter = $this->app->User->GetParameter('table_filter_auftrag');
|
||||||
$parameter = base64_decode($parameter);
|
$parameter = base64_decode($parameter);
|
||||||
$parameter = json_decode($parameter, true);
|
$parameter = json_decode($parameter, true);
|
||||||
@ -507,10 +504,7 @@ class Auftrag extends GenAuftrag
|
|||||||
$paramsArray[] = "a.email LIKE '%".$parameter['email']."%' ";
|
$paramsArray[] = "a.email LIKE '%".$parameter['email']."%' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* XXX */
|
|
||||||
if(isset($parameter['datumVon']) && !empty($parameter['datumVon'])) {
|
if(isset($parameter['datumVon']) && !empty($parameter['datumVon'])) {
|
||||||
|
|
||||||
$paramsArray[] = "a.datum >= '" . date('Y-m-d',strtotime($parameter['datumVon']))."' ";
|
$paramsArray[] = "a.datum >= '" . date('Y-m-d',strtotime($parameter['datumVon']))."' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -582,6 +576,142 @@ class Auftrag extends GenAuftrag
|
|||||||
$moreinfo = true; // EXTRA
|
$moreinfo = true; // EXTRA
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case 'auftraegeoffeneauto':
|
||||||
|
|
||||||
|
$allowed['auftraegeoffeneauto'] = array('list');
|
||||||
|
|
||||||
|
$heading = array('','', 'Auftrag', 'Vom', 'Kd-Nr.', 'Kunde','Lieferdatum', 'Land', 'Zahlung', 'Betrag (brutto)','Monitor','Menü');
|
||||||
|
$width = array('1%','1%','1%', '10%', '10%', '10%', '31%', '5%', '1%', '1%', '1%', '1%');
|
||||||
|
$findcols = array('open','a.belegnr', 'a.belegnr', 'a.datum', 'a.lieferantkdrnummer', 'a.name','a.tatsaechlicheslieferdatum', 'a.land', 'a.zahlungsweise', 'a.gesamtsumme');
|
||||||
|
|
||||||
|
$defaultorder = 1;
|
||||||
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
$menu = "";
|
||||||
|
|
||||||
|
$sql = "SELECT
|
||||||
|
a.id,
|
||||||
|
'<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/details_open.png class=details>' AS `open`,
|
||||||
|
CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',a.id,'\" />') AS `auswahl`,
|
||||||
|
IF(a.fastlane=1,CONCAT(a.belegnr,' (FL)'),a.belegnr) AS `belegnr`,
|
||||||
|
DATE_FORMAT(a.datum,'%d.%m.%Y') AS `datum`,
|
||||||
|
lieferantkdrnummer,
|
||||||
|
name,
|
||||||
|
DATE_FORMAT(a.tatsaechlicheslieferdatum,'%d.%m.%Y') as `tatsaechlicheslieferdatum`,
|
||||||
|
land,
|
||||||
|
zahlungsweise,
|
||||||
|
gesamtsumme,
|
||||||
|
(" . $this->app->YUI->IconsSQL() . ") AS icons,
|
||||||
|
a.id
|
||||||
|
FROM
|
||||||
|
auftrag a";
|
||||||
|
|
||||||
|
$where = "a.status = 'freigegeben' AND a.cronjobkommissionierung = 0 AND a.lager_ok=1 AND a.porto_ok=1 AND a.ust_ok=1 AND a.vorkasse_ok=1 AND a.nachnahme_ok=1 AND a.autoversand=1 AND a.check_ok=1 AND a.kreditlimit_ok=1 AND a.liefersperre_ok=1"; // liefertermin_ok special treatment
|
||||||
|
|
||||||
|
$count = "SELECT count(DISTINCT id) FROM auftrag a WHERE $where";
|
||||||
|
|
||||||
|
// $groupby = "";
|
||||||
|
|
||||||
|
$moreinfo = true; // Allow drop down details
|
||||||
|
|
||||||
|
// Toggle filters
|
||||||
|
$this->app->Tpl->Add('JQUERYREADY', "$('#fastlane').click( function() { fnFilterColumn1( 0 ); } );");
|
||||||
|
$this->app->Tpl->Add('JQUERYREADY', "$('#auftrag_kundemehrereauftraege').click( function() { fnFilterColumn2( 0 ); } );");
|
||||||
|
$this->app->Tpl->Add('JQUERYREADY', "$('#auftrag_lieferdatum').click( function() { fnFilterColumn3( 0 ); } );");
|
||||||
|
|
||||||
|
for ($r = 1;$r <= 3;$r++) {
|
||||||
|
$this->app->Tpl->Add('JAVASCRIPT', '
|
||||||
|
function fnFilterColumn' . $r . ' ( i )
|
||||||
|
{
|
||||||
|
if(oMoreData' . $r . $name . '==1)
|
||||||
|
oMoreData' . $r . $name . ' = 0;
|
||||||
|
else
|
||||||
|
oMoreData' . $r . $name . ' = 1;
|
||||||
|
|
||||||
|
$(\'#' . $name . '\').dataTable().fnFilter(
|
||||||
|
\'\',
|
||||||
|
i,
|
||||||
|
0,0
|
||||||
|
);
|
||||||
|
}
|
||||||
|
');
|
||||||
|
}
|
||||||
|
|
||||||
|
$more_data1 = $this->app->Secure->GetGET("more_data1");
|
||||||
|
|
||||||
|
if ($more_data1 == 1) {
|
||||||
|
$where .= " AND a.fastlane=1";
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
|
||||||
|
$more_data3 = $this->app->Secure->GetGET("more_data3");
|
||||||
|
if ($more_data3 == 1) {
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$where .= " AND a.liefertermin_ok=1";
|
||||||
|
}
|
||||||
|
|
||||||
|
$more_data2 = $this->app->Secure->GetGET("more_data2");
|
||||||
|
if ($more_data2 == 1) $where .= " AND a.adresse in (SELECT adresse FROM `auftrag` a WHERE ".$where." GROUP BY adresse HAVING count(id) > 1)"; // More than 1 order per address
|
||||||
|
|
||||||
|
// END Toggle filters
|
||||||
|
|
||||||
|
$menu .= "<a href=\"index.php?module=auftrag&action=edit&id=%value%\">";
|
||||||
|
$menu .= "<img src=\"themes/{$this->app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\">";
|
||||||
|
$menu .= "</a>";
|
||||||
|
|
||||||
|
$moreinfo = true; // Minidetail active
|
||||||
|
$menucol = 9; // For minidetail
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 'auftraegeoffeneautowartend':
|
||||||
|
|
||||||
|
// Show list for cronjob commissioning
|
||||||
|
$allowed['auftraegeoffeneautowartend'] = array('list');
|
||||||
|
|
||||||
|
$heading = array('','', 'Auftrag', 'Vom', 'Kd-Nr.', 'Kunde','Lieferdatum', 'Land', 'Zahlung', 'Betrag (brutto)','Monitor','Menü');
|
||||||
|
$width = array('1%','1%','1%', '10%', '10%', '10%', '31%', '5%', '1%', '1%', '1%', '1%', '1%','0%','0%');
|
||||||
|
$findcols = array('open','a.belegnr', 'a.belegnr', 'a.datum', 'a.lieferantkdrnummer', 'a.name','a.tatsaechlicheslieferdatum', 'a.land', 'a.zahlungsweise', 'a.gesamtsumme');
|
||||||
|
|
||||||
|
$defaultorder = 1;
|
||||||
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
$menu = "";
|
||||||
|
|
||||||
|
$sql = "SELECT
|
||||||
|
a.id,
|
||||||
|
'<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/details_open.png class=details>' AS `open`,
|
||||||
|
CONCAT('<input type=\"checkbox\" name=\"auswahlcronjob[]\" value=\"',a.id,'\" />') AS `auswahl`,
|
||||||
|
IF(a.fastlane=1,CONCAT(a.belegnr,' (FL)'),a.belegnr) AS `belegnr`,
|
||||||
|
DATE_FORMAT(a.datum,'%d.%m.%Y') AS `datum`,
|
||||||
|
lieferantkdrnummer,
|
||||||
|
name,
|
||||||
|
DATE_FORMAT(a.tatsaechlicheslieferdatum,'%d.%m.%Y') as `tatsaechlicheslieferdatum`,
|
||||||
|
land,
|
||||||
|
zahlungsweise,
|
||||||
|
gesamtsumme,
|
||||||
|
(" . $this->app->YUI->IconsSQL() . ") AS icons,
|
||||||
|
a.id
|
||||||
|
FROM
|
||||||
|
auftrag a";
|
||||||
|
|
||||||
|
$status_where = 'a.cronjobkommissionierung > 0';
|
||||||
|
|
||||||
|
$where = "a.status = 'freigegeben' AND ".$status_where;
|
||||||
|
// $groupby = "";
|
||||||
|
|
||||||
|
$moreinfo = true; // Allow drop down details
|
||||||
|
|
||||||
|
$count = "SELECT count(DISTINCT id) FROM auftrag a WHERE $where";
|
||||||
|
|
||||||
|
$menu .= "<a href=\"index.php?module=auftrag&action=edit&id=%value%\">";
|
||||||
|
$menu .= "<img src=\"themes/{$this->app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\">";
|
||||||
|
$menu .= "</a>";
|
||||||
|
$menucol = 9; // For moredata
|
||||||
|
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
$erg = [];
|
$erg = [];
|
||||||
foreach($erlaubtevars as $k => $v) {
|
foreach($erlaubtevars as $k => $v) {
|
||||||
@ -666,6 +796,8 @@ class Auftrag extends GenAuftrag
|
|||||||
$this->app->ActionHandler("einkaufspreise", "AuftragEinkaufspreise");
|
$this->app->ActionHandler("einkaufspreise", "AuftragEinkaufspreise");
|
||||||
$this->app->ActionHandler("alsfreigegeben", "AuftragAlsfreigegeben");
|
$this->app->ActionHandler("alsfreigegeben", "AuftragAlsfreigegeben");
|
||||||
$this->app->ActionHandler("steuer", "AuftragSteuer");
|
$this->app->ActionHandler("steuer", "AuftragSteuer");
|
||||||
|
$this->app->ActionHandler("berechnen", "Auftraegeberechnen");
|
||||||
|
|
||||||
$this->app->DefaultActionHandler("list");
|
$this->app->DefaultActionHandler("list");
|
||||||
|
|
||||||
$id = $this->app->Secure->GetGET('id');
|
$id = $this->app->Secure->GetGET('id');
|
||||||
@ -2852,7 +2984,6 @@ class Auftrag extends GenAuftrag
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$vorkasse_ok = $this->app->DB->Select("SELECT vorkasse_ok FROM auftrag WHERE id='$id' LIMIT 1");
|
$vorkasse_ok = $this->app->DB->Select("SELECT vorkasse_ok FROM auftrag WHERE id='$id' LIMIT 1");
|
||||||
$zahlungsweise = $auftragArr[0]['zahlungsweise'];
|
$zahlungsweise = $auftragArr[0]['zahlungsweise'];
|
||||||
if($vorkasse_ok==1){
|
if($vorkasse_ok==1){
|
||||||
@ -3151,7 +3282,7 @@ class Auftrag extends GenAuftrag
|
|||||||
if($suchwort!="")
|
if($suchwort!="")
|
||||||
{
|
{
|
||||||
$table->Query("SELECT DATE_FORMAT(a.datum,'%d.%m.%Y') as datum, a.name, a.belegnr as auftrag, adr.kundennummer, a.internet, a.plz, a.ort, a.strasse, a.zahlungsweise, a.status, a.id FROM auftrag a
|
$table->Query("SELECT DATE_FORMAT(a.datum,'%d.%m.%Y') as datum, a.name, a.belegnr as auftrag, adr.kundennummer, a.internet, a.plz, a.ort, a.strasse, a.zahlungsweise, a.status, a.id FROM auftrag a
|
||||||
LEFT JOIN adresse adr ON adr.id = a.adresse WHERE (a.name LIKE '%$suchwort%' OR a.email LIKE '%$suchwort%' OR a.plz LIKE '$suchwort%' OR a.internet LIKE '%$suchwort%' OR (adr.kundennummer='$suchwort' AND adr.kundennummer!=0)
|
LEFT JOIN adresse adr ON adr.id = b.adresse WHERE (a.name LIKE '%$suchwort%' OR a.email LIKE '%$suchwort%' OR a.plz LIKE '$suchwort%' OR a.internet LIKE '%$suchwort%' OR (adr.kundennummer='$suchwort' AND adr.kundennummer!=0)
|
||||||
OR (a.gesamtsumme='$suchwort' AND a.gesamtsumme!=0) OR (a.belegnr='$suchwort' AND a.belegnr!='' ))");
|
OR (a.gesamtsumme='$suchwort' AND a.gesamtsumme!=0) OR (a.belegnr='$suchwort' AND a.belegnr!='' ))");
|
||||||
} else {
|
} else {
|
||||||
if($name!="")
|
if($name!="")
|
||||||
@ -5203,6 +5334,10 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
order processed true or false
|
||||||
|
*/
|
||||||
|
|
||||||
public function AuftragVersand($id='', $ignoriereliefertermin = false, &$ergebnis = null, $paketmarkedrucken = false)
|
public function AuftragVersand($id='', $ignoriereliefertermin = false, &$ergebnis = null, $paketmarkedrucken = false)
|
||||||
{
|
{
|
||||||
if(!$this->kommissionierung)
|
if(!$this->kommissionierung)
|
||||||
@ -5720,10 +5855,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
$this->app->erp->BriefpapierHintergrunddisable = !$this->app->erp->BriefpapierHintergrunddisable;
|
$this->app->erp->BriefpapierHintergrunddisable = !$this->app->erp->BriefpapierHintergrunddisable;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($autodruckrechnungstufe1mail && $rechnung > 0)
|
// Rechnungsmail was here, but now at the end to prioritise processing and printing over mail
|
||||||
{
|
|
||||||
$this->app->erp->Rechnungsmail($rechnung);
|
|
||||||
}
|
|
||||||
|
|
||||||
// auftrag abschliessen
|
// auftrag abschliessen
|
||||||
$this->app->DB->Update("UPDATE auftrag SET status='abgeschlossen',schreibschutz='1' WHERE id='$id' LIMIT 1");
|
$this->app->DB->Update("UPDATE auftrag SET status='abgeschlossen',schreibschutz='1' WHERE id='$id' LIMIT 1");
|
||||||
@ -5841,6 +5973,12 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
unlink($tmpfile);
|
unlink($tmpfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send the invoice as last step
|
||||||
|
if($autodruckrechnungstufe1mail && $rechnung > 0)
|
||||||
|
{
|
||||||
|
$this->app->erp->Rechnungsmail($rechnung);
|
||||||
|
}
|
||||||
|
|
||||||
$this->app->erp->RunHook('auftrag_versand_ende', 1, $id);
|
$this->app->erp->RunHook('auftrag_versand_ende', 1, $id);
|
||||||
|
|
||||||
// wenn per URL aufgerufen
|
// wenn per URL aufgerufen
|
||||||
@ -5990,6 +6128,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
|
|
||||||
$this->app->erp->MenuEintrag('index.php?module=auftrag&action=list','Übersicht');
|
$this->app->erp->MenuEintrag('index.php?module=auftrag&action=list','Übersicht');
|
||||||
$this->app->erp->MenuEintrag('index.php?module=auftrag&action=create','Neuen Auftrag anlegen');
|
$this->app->erp->MenuEintrag('index.php?module=auftrag&action=create','Neuen Auftrag anlegen');
|
||||||
|
$this->app->erp->MenuEintrag('index.php?module=auftrag&action=versandzentrum','Versandzentrum');
|
||||||
|
|
||||||
if(strlen($backurl)>5){
|
if(strlen($backurl)>5){
|
||||||
$this->app->erp->MenuEintrag("$backurl", 'Zurück zur Übersicht');
|
$this->app->erp->MenuEintrag("$backurl", 'Zurück zur Übersicht');
|
||||||
@ -6013,7 +6152,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
'SELECT MAX(`cronjobkommissionierung`) FROM `auftrag`'
|
'SELECT MAX(`cronjobkommissionierung`) FROM `auftrag`'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->app->DB->Insert(
|
/* $this->app->DB->Insert(
|
||||||
"INSERT INTO `cronjob_kommissionierung` (`id`, `bezeichnung`)
|
"INSERT INTO `cronjob_kommissionierung` (`id`, `bezeichnung`)
|
||||||
VALUES ({$nextCronjobCommissionId}, '{$description}') "
|
VALUES ({$nextCronjobCommissionId}, '{$description}') "
|
||||||
);
|
);
|
||||||
@ -6024,7 +6163,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
"UPDATE `cronjob_kommissionierung`
|
"UPDATE `cronjob_kommissionierung`
|
||||||
SET `bezeichnung` = '{$description}'
|
SET `bezeichnung` = '{$description}'
|
||||||
WHERE `id` = {$nextCronjobCommissionId}"
|
WHERE `id` = {$nextCronjobCommissionId}"
|
||||||
);
|
);*/
|
||||||
|
|
||||||
return $nextCronjobCommissionId;
|
return $nextCronjobCommissionId;
|
||||||
}
|
}
|
||||||
@ -6033,6 +6172,9 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
{
|
{
|
||||||
$this->AuftraguebersichtMenu();
|
$this->AuftraguebersichtMenu();
|
||||||
$targetMessage = 'AUTOVERSANDBERECHNEN';
|
$targetMessage = 'AUTOVERSANDBERECHNEN';
|
||||||
|
|
||||||
|
$this->app->Tpl->Add('MESSAGE','<div class="info">Aufträge an Versand übergeben mit automatischem Druck und Mailversand.</div>');
|
||||||
|
|
||||||
$autoshipmentEnabled = true;
|
$autoshipmentEnabled = true;
|
||||||
$this->app->erp->RunHook('OrderAutoShipment', 2, $targetMessage, $autoshipmentEnabled);
|
$this->app->erp->RunHook('OrderAutoShipment', 2, $targetMessage, $autoshipmentEnabled);
|
||||||
|
|
||||||
@ -6066,7 +6208,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
|
|
||||||
// AUFTAEGE ABSCHLIESSEN!
|
// AUFTAEGE ABSCHLIESSEN!
|
||||||
$submit = $this->app->Secure->GetPOST('submit');
|
$submit = $this->app->Secure->GetPOST('submit');
|
||||||
$auftraegemarkiert = $this->app->Secure->GetPOST('auftraegemarkiert');
|
$auftraegemarkiert = $this->app->Secure->GetPOST('auswahlcronjob');
|
||||||
$entfernen = $this->app->Secure->GetPOST('entfernen');
|
$entfernen = $this->app->Secure->GetPOST('entfernen');
|
||||||
$bezeichnung = (string)$this->app->Secure->GetPOST('bezeichnung');
|
$bezeichnung = (string)$this->app->Secure->GetPOST('bezeichnung');
|
||||||
if($entfernen && $auftraegemarkiert){
|
if($entfernen && $auftraegemarkiert){
|
||||||
@ -6077,9 +6219,11 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->app->Secure->GetPOST('ausfuehren')){
|
if($this->app->Secure->GetPOST('ausfuehren')){
|
||||||
|
|
||||||
$drucker = $this->app->Secure->GetPOST('seldruckerversand');
|
$drucker = $this->app->Secure->GetPOST('seldruckerversand');
|
||||||
$aktion = $this->app->Secure->GetPOST('auftrag_versandauswahl');
|
$aktion = $this->app->Secure->GetPOST('auftrag_versandauswahl');
|
||||||
$auftraegemarkiert = $this->app->Secure->GetPOST('auftraegemarkiert');
|
// $auftraegemarkiert = $this->app->Secure->GetPOST('auftraegemarkiert');
|
||||||
|
$auftraegemarkiert = $this->app->Secure->GetPOST('auswahl');
|
||||||
$bezeichnung = (string)$this->app->Secure->GetPOST('bezeichnung');
|
$bezeichnung = (string)$this->app->Secure->GetPOST('bezeichnung');
|
||||||
|
|
||||||
$selectedIds = [];
|
$selectedIds = [];
|
||||||
@ -6098,6 +6242,12 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
|
|
||||||
switch($aktion){
|
switch($aktion){
|
||||||
case 'versandstarten':
|
case 'versandstarten':
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If one of the cronjobs is active, orders only get marked. Sending will be handled by the cronjob.
|
||||||
|
* If not, sending will be done here.
|
||||||
|
*/
|
||||||
|
|
||||||
$cronjobActive = $this->app->DB->Select(
|
$cronjobActive = $this->app->DB->Select(
|
||||||
"SELECT ps.id
|
"SELECT ps.id
|
||||||
FROM `prozessstarter` AS `ps`
|
FROM `prozessstarter` AS `ps`
|
||||||
@ -6134,6 +6284,9 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
//sort($auftraegemarkiert);
|
//sort($auftraegemarkiert);
|
||||||
}
|
}
|
||||||
if($check){
|
if($check){
|
||||||
|
|
||||||
|
/* Send all to cronjob */
|
||||||
|
|
||||||
$maxcronjobkommissionierung = $this->createCronjobCommission((string)$bezeichnung);
|
$maxcronjobkommissionierung = $this->createCronjobCommission((string)$bezeichnung);
|
||||||
|
|
||||||
$cauftraegemarkiert = $auftraegemarkiert ? count($auftraegemarkiert) : 0;
|
$cauftraegemarkiert = $auftraegemarkiert ? count($auftraegemarkiert) : 0;
|
||||||
@ -6150,6 +6303,9 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
/* Process here now */
|
||||||
|
|
||||||
$cauftraegemarkiert = $auftraegemarkiert ? count($auftraegemarkiert) : 0;
|
$cauftraegemarkiert = $auftraegemarkiert ? count($auftraegemarkiert) : 0;
|
||||||
for ($i = 0; $i < $cauftraegemarkiert; $i++) {
|
for ($i = 0; $i < $cauftraegemarkiert; $i++) {
|
||||||
$projekt = (int)$this->app->DB->Select(
|
$projekt = (int)$this->app->DB->Select(
|
||||||
@ -6166,9 +6322,20 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$this->kommissionierung = $this->app->erp->GetNextKommissionierung($bezeichnung);
|
$this->kommissionierung = $this->app->erp->GetNextKommissionierung($bezeichnung);
|
||||||
|
|
||||||
|
$processed_orders_num = 0;
|
||||||
|
|
||||||
foreach ($auftraege as $auftrag) {
|
foreach ($auftraege as $auftrag) {
|
||||||
$this->AuftragVersand($auftrag);
|
|
||||||
|
/* Process each order */
|
||||||
|
if($this->AuftragVersand($auftrag)) {
|
||||||
|
$processed_orders_num++;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->app->Tpl->Set('MESSAGE','<div class="info">'.$processed_orders_num.' Aufträge wurden verarbeitet.</div>');
|
||||||
|
|
||||||
if(empty($this->kommissionierung)) {
|
if(empty($this->kommissionierung)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -6271,42 +6438,36 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($check || $cronjobActive) {
|
$unversendet = $this->app->DB->Select("SELECT count(a.id) FROM auftrag as a LEFT JOIN projekt p ON p.id=a.projekt WHERE a.id!='' AND (a.belegnr!=0 OR a.belegnr!='') AND a.status='freigegeben' AND a.inbearbeitung=0 AND a.nachlieferung!='1' AND a.autoversand='1' AND a.cronjobkommissionierung = 0 AND a.liefertermin_ok='1' AND kreditlimit_ok='1' AND liefersperre_ok='1'
|
||||||
$unversendet = $this->app->DB->Select("SELECT count(a.id) FROM auftrag as a LEFT JOIN projekt p ON p.id=a.projekt WHERE a.id!='' AND (a.belegnr!=0 OR a.belegnr!='') AND a.status='freigegeben' AND a.inbearbeitung=0 AND a.nachlieferung!='1' AND a.autoversand='1' AND a.cronjobkommissionierung = 0 AND a.liefertermin_ok='1' AND kreditlimit_ok='1' AND liefersperre_ok='1'
|
AND a.vorkasse_ok='1' AND a.porto_ok='1' AND a.lager_ok='1' AND a.check_ok='1' AND a.ust_ok='1' " . $this->app->erp->ProjektRechte('p.id', true, 'a.vertriebid'));
|
||||||
AND a.vorkasse_ok='1' AND a.porto_ok='1' AND a.lager_ok='1' AND a.check_ok='1' AND a.ust_ok='1' " . $this->app->erp->ProjektRechte('p.id', true, 'a.vertriebid'));
|
|
||||||
|
|
||||||
$warteschleife = $this->app->DB->Select("SELECT count(a.id) FROM auftrag as a LEFT JOIN projekt p ON p.id=a.projekt WHERE a.id!='' AND (a.belegnr!=0 OR a.belegnr!='') AND a.status='freigegeben' AND a.inbearbeitung=0 AND a.nachlieferung!='1' AND a.autoversand='1' AND a.liefertermin_ok='1' AND kreditlimit_ok='1' AND liefersperre_ok='1'
|
$warteschleife = $this->app->DB->Select("SELECT count(a.id) FROM auftrag as a LEFT JOIN projekt p ON p.id=a.projekt WHERE a.id!='' AND (a.belegnr!=0 OR a.belegnr!='') AND a.status='freigegeben' AND a.cronjobkommissionierung > 0 " . $this->app->erp->ProjektRechte('p.id', true, "a.vertriebid"));
|
||||||
AND a.vorkasse_ok='1' AND a.porto_ok='1' AND a.lager_ok='1' AND a.check_ok='1' AND a.ust_ok='1' AND a.cronjobkommissionierung > 0 " . $this->app->erp->ProjektRechte('p.id', true, "a.vertriebid"));
|
|
||||||
|
|
||||||
if($unversendet > 0) {
|
if($unversendet > 0) {
|
||||||
$unversendet ='('.$unversendet.')';
|
$unversendet ='('.$unversendet.')';
|
||||||
}
|
|
||||||
else {
|
|
||||||
$unversendet='';
|
|
||||||
}
|
|
||||||
if($warteschleife > 0) {
|
|
||||||
$warteschleife ='('.$warteschleife.')';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$warteschleife='';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->app->Tpl->Set('TABTEXT2','Unversendet '.$unversendet);
|
|
||||||
$this->app->Tpl->Set('TABTEXT3','Warteschleife '.$warteschleife);
|
|
||||||
$this->app->YUI->TableSearch('TAB3','auftraegeoffeneautowartend');
|
|
||||||
if($warteschleife > 0 && !$cronjobActive) {
|
|
||||||
$this->app->Tpl->Add(
|
|
||||||
'AUTOVERSANDBERECHNEN',
|
|
||||||
'<div class="warning">Der Prozessstarter "Autoversand Manuell" ist deaktivert,
|
|
||||||
es befinden sich aber Aufträge in der Warteschlange.
|
|
||||||
Bitte aktieren Sie den Prozessstarter
|
|
||||||
oder entfernen Sie die betreffenden Aufträge in der Warteschlange</div>'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
$this->app->Tpl->Set('VORTABS3UEBERSCHRIFT','<!--');
|
$unversendet='';
|
||||||
$this->app->Tpl->Set('NACHTABS3UEBERSCHRIFT','-->');
|
}
|
||||||
|
if($warteschleife > 0) {
|
||||||
|
$warteschleife ='('.$warteschleife.')';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$warteschleife='';
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->app->Tpl->Set('TABTEXT1','Bereit '.$unversendet);
|
||||||
|
$this->app->Tpl->Set('TABTEXT2','Ausstehend '.$warteschleife);
|
||||||
|
|
||||||
|
if($warteschleife != '' && is_null($cronjobActive)) {
|
||||||
|
|
||||||
|
$this->app->Tpl->Add(
|
||||||
|
'MESSAGE',
|
||||||
|
'<div class="warning">Der Prozessstarter "Autoversand Manuell" ist deaktivert,
|
||||||
|
es befinden sich aber ausstehende Aufträge in der Warteschlange.
|
||||||
|
Bitte aktieren Sie den Prozessstarter
|
||||||
|
oder entfernen Sie die betreffenden Aufträge in der Warteschlange</div>'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app->Tpl->Set('SELDRUCKERVERSAND', $this->app->erp->GetSelectDrucker($this->app->User->GetParameter('rechnung_list_drucker')));
|
$this->app->Tpl->Set('SELDRUCKERVERSAND', $this->app->erp->GetSelectDrucker($this->app->User->GetParameter('rechnung_list_drucker')));
|
||||||
@ -6315,13 +6476,15 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
$this->app->Tpl->Parse('PAGE','auftraguebersicht.tpl');
|
$this->app->Tpl->Parse('PAGE','auftraguebersicht.tpl');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($this->app->erp->RechteVorhanden('auftrag','berechnen'))
|
// if($this->app->erp->RechteVorhanden('auftrag','berechnen'))
|
||||||
{
|
{
|
||||||
$this->app->Tpl->Set('AUTOBERECHNEN','<input type="button" class="btnGreen" value="Auto-Versand berechnen" onclick="window.location.href=\'index.php?module=auftrag&action=berechnen\'">');
|
$this->app->Tpl->Set('AUTOBERECHNEN','<input type="button" class="btnGreen" value="Auto-Versand berechnen" onclick="window.location.href=\'index.php?module=auftrag&action=berechnen\'">');
|
||||||
}else{
|
// }else{
|
||||||
$this->app->Tpl->Set('AUTOBERECHNEN2','');
|
// $this->app->Tpl->Set('AUTOBERECHNEN2','');
|
||||||
}
|
}
|
||||||
$infolink = '<a href="https://xentral.biz/helpdesk/kurzanleitung-ablauf-des-versands-von-auftraegen#nav-autoversand-mit-prozessstarter-berechnen" target="_blank">(Information)</a>';
|
$infolink = '<a href="https://xentral.biz/helpdesk/kurzanleitung-ablauf-des-versands-von-auftraegen#nav-autoversand-mit-prozessstarter-berechnen" target="_blank">(Information)</a>';
|
||||||
|
|
||||||
|
/*
|
||||||
$last_order_calc = $this->app->erp->GetKonfiguration('last_order_calc');
|
$last_order_calc = $this->app->erp->GetKonfiguration('last_order_calc');
|
||||||
if(!empty($last_order_calc)) {
|
if(!empty($last_order_calc)) {
|
||||||
$this->app->Tpl->Add('AUTOVERSANDBERECHNEN','<div class="info">Die letzte Berechnung der Auftragsampeln war am '.$last_order_calc.'. '.$infolink.' [AUTOBERECHNEN]</div>');
|
$this->app->Tpl->Add('AUTOVERSANDBERECHNEN','<div class="info">Die letzte Berechnung der Auftragsampeln war am '.$last_order_calc.'. '.$infolink.' [AUTOBERECHNEN]</div>');
|
||||||
@ -6329,10 +6492,12 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
else{
|
else{
|
||||||
$this->app->Tpl->Add('AUTOVERSANDBERECHNEN','<div class="info">Die letzte Berechnung der Auftragsampeln wurde noch nicht ermittelt. '.$infolink.' [AUTOBERECHNEN]</div>');
|
$this->app->Tpl->Add('AUTOVERSANDBERECHNEN','<div class="info">Die letzte Berechnung der Auftragsampeln wurde noch nicht ermittelt. '.$infolink.' [AUTOBERECHNEN]</div>');
|
||||||
}
|
}
|
||||||
$this->app->YUI->TableSearch('TAB2','auftraegeoffeneauto');
|
*/
|
||||||
$this->app->Tpl->Parse('PAGE','auftrag_versandzentrum.tpl');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
$this->app->YUI->TableSearch('TAB1','auftraegeoffeneauto', 'show','','',basename(__FILE__), __CLASS__);
|
||||||
|
$this->app->YUI->TableSearch('TAB2','auftraegeoffeneautowartend', 'show','','',basename(__FILE__), __CLASS__);
|
||||||
|
$this->app->Tpl->Parse('PAGE','auftrag_versandzentrum.tpl');
|
||||||
|
} // Ende
|
||||||
|
|
||||||
public function AuftragList()
|
public function AuftragList()
|
||||||
{
|
{
|
||||||
@ -6778,11 +6943,25 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
$this->app->Tpl->Add('LAENDER',$laenderStr);
|
$this->app->Tpl->Add('LAENDER',$laenderStr);
|
||||||
$this->app->Tpl->Parse('TAB1',"auftrag_table_filter.tpl");
|
$this->app->Tpl->Parse('TAB1',"auftrag_table_filter.tpl");
|
||||||
|
|
||||||
$this->app->YUI->TableSearch('TAB2',"auftraegeoffeneauto");
|
|
||||||
$this->app->YUI->TableSearch('TAB1','auftraege', 'show','','',basename(__FILE__), __CLASS__);
|
$this->app->YUI->TableSearch('TAB1','auftraege', 'show','','',basename(__FILE__), __CLASS__);
|
||||||
|
// $this->app->YUI->TableSearch('TAB2',"auftraegeoffeneauto");
|
||||||
$this->app->YUI->TableSearch('TAB3',"auftraegeoffene");
|
$this->app->YUI->TableSearch('TAB3',"auftraegeoffene");
|
||||||
|
|
||||||
$this->app->Tpl->Set('SELDRUCKER', $this->app->erp->GetSelectDrucker($this->app->User->GetParameter('rechnung_list_drucker')));
|
$this->app->Tpl->Set('SELDRUCKER', $this->app->erp->GetSelectDrucker($this->app->User->GetParameter('rechnung_list_drucker')));
|
||||||
|
|
||||||
|
|
||||||
|
$inbearbeitung = $this->app->DB->Select("SELECT count(a.id) FROM auftrag a WHERE a.id!='' AND a.status='angelegt'");
|
||||||
|
|
||||||
|
if($inbearbeitung > 0) {
|
||||||
|
$inbearbeitung =' ('.$inbearbeitung.')';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$inbearbeitung='';
|
||||||
|
}
|
||||||
|
|
||||||
|
// $this->app->Tpl->Set('MESSAGE','<div class="error">Cronjob order processing not yet implemented!</div>');
|
||||||
|
|
||||||
|
$this->app->Tpl->Set('TABTEXT5',$inbearbeitung);
|
||||||
|
|
||||||
$this->app->YUI->TableSearch('TAB5',"auftraegeinbearbeitung");
|
$this->app->YUI->TableSearch('TAB5',"auftraegeinbearbeitung");
|
||||||
$this->app->erp->RunHook('auftraguebersicht_filter', 0);
|
$this->app->erp->RunHook('auftraguebersicht_filter', 0);
|
||||||
$this->app->Tpl->Parse('PAGE',"auftraguebersicht.tpl");
|
$this->app->Tpl->Parse('PAGE',"auftraguebersicht.tpl");
|
||||||
@ -6816,4 +6995,13 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Calculate order auto status for all open orders
|
||||||
|
*/
|
||||||
|
public function Auftraegeberechnen() {
|
||||||
|
$this->app->erp->AuftraegeBerechnen();
|
||||||
|
header('Location: index.php?module=auftrag&action=versandzentrum');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
|
|
||||||
<div id="tabs">
|
<div id="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#tabs-2">[TABTEXT2]</a></li>
|
<li><a href="#tabs-1">[TABTEXT1]</a></li>
|
||||||
[VORTABS3UEBERSCHRIFT]<li><a href="#tabs-3">[TABTEXT3]</a></li>[NACHTABS3UEBERSCHRIFT]
|
[VORTABS2UEBERSCHRIFT]<li><a href="#tabs-2">[TABTEXT2]</a></li>[NACHTABS2UEBERSCHRIFT]
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<div id="tabs-1">
|
||||||
<div id="tabs-2">
|
[MESSAGE]
|
||||||
[AUTOVERSANDBERECHNEN]
|
[AUTOVERSANDBERECHNEN]
|
||||||
|
<form action="#tabs-1" id="frmauto" name="frmauto" method="post">
|
||||||
<form action="#tabs-2" id="frmauto" name="frmauto" method="post">
|
|
||||||
|
|
||||||
<div class="filter-box filter-usersave">
|
<div class="filter-box filter-usersave">
|
||||||
<div class="filter-block filter-inline">
|
<div class="filter-block filter-inline">
|
||||||
<div class="filter-title">{|Filter|}</div>
|
<div class="filter-title">{|Filter|}</div>
|
||||||
@ -34,13 +32,12 @@
|
|||||||
<input type="checkbox" id="auftrag_lieferdatum">
|
<input type="checkbox" id="auftrag_lieferdatum">
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="auftrag_lieferdatum">{|nur Aufträge mit zukünftigem Lieferdatum|}</label>
|
<label for="auftrag_lieferdatum">{|inkl. Aufträge mit zukünftigem Lieferdatum|}</label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
[TAB1]
|
||||||
[TAB2]
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Stapelverarbeitung</legend>
|
<legend>Stapelverarbeitung</legend>
|
||||||
<input type="checkbox" value="1" id="autoalle" checked="checked" /> alle markieren
|
<input type="checkbox" value="1" id="autoalle" checked="checked" /> alle markieren
|
||||||
@ -59,32 +56,17 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div id="tabs-3">
|
|
||||||
[VORTABS3UEBERSCHRIFT]
|
|
||||||
<form action="#tabs-3" method="post">
|
|
||||||
|
|
||||||
<div class="filter-box filter-usersave">
|
|
||||||
<div class="filter-block filter-inline">
|
|
||||||
<div class="filter-title">{|Filter|}</div>
|
|
||||||
<ul class="filter-list">
|
|
||||||
<li class="filter-item">
|
|
||||||
<label for="autoallewartend" class="switch">
|
|
||||||
<input type="checkbox" value="1" id="autoallewartend" checked="checked" />
|
|
||||||
<span class="slider round"></span>
|
|
||||||
</label>
|
|
||||||
<label for="autoallewartend">{|Alle|}</label>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
[TAB3]
|
<div id="tabs-2">
|
||||||
<table width="100%"><tr><td><input type="submit" value="Aufträge aus Liste entfernen" name="entfernen"></td>
|
[VORTABS2UEBERSCHRIFT]
|
||||||
|
<form action="#tabs-2" method="post">
|
||||||
|
[TAB2]
|
||||||
|
<table width="100%"><tr><td><input type="submit" value="Gewählte Aufträge zurücksetzen" name="entfernen"></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</form>
|
</form>
|
||||||
[NACHTABS3UEBERSCHRIFT]
|
[NACHTABS2UEBERSCHRIFT]
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ document.onkeydown = function(evt) {
|
|||||||
<div id="tabs">
|
<div id="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#tabs-1">{|Aufträge|}</a></li>
|
<li><a href="#tabs-1">{|Aufträge|}</a></li>
|
||||||
<li><a href="#tabs-5">{|in Bearbeitung|}</a></li>
|
<li><a href="#tabs-5">{|in Bearbeitung|}[TABTEXT5]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="tabs-1">
|
<div id="tabs-1">
|
||||||
|
|
||||||
@ -113,10 +113,6 @@ document.onkeydown = function(evt) {
|
|||||||
<div id="tabs-5">
|
<div id="tabs-5">
|
||||||
[TAB5]
|
[TAB5]
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="lagermehrpopup" style="display:none;">
|
<div id="lagermehrpopup" style="display:none;">
|
||||||
<div id="lagermehrpopupinhalt">
|
<div id="lagermehrpopupinhalt">
|
||||||
|
@ -283,8 +283,8 @@ $width = array('10%'); // Fill out manually later
|
|||||||
$result[0]['email'],
|
$result[0]['email'],
|
||||||
$result[0]['angezeigtername'],
|
$result[0]['angezeigtername'],
|
||||||
'Xenomporio ERP: Testmail',
|
'Xenomporio ERP: Testmail',
|
||||||
'Dies ist eine Testmail',
|
'Dies ist eine Testmail für Account "'.$result[0]['email'].'".',
|
||||||
'',0,true,'','',
|
'',0,false,'','',
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
@ -294,7 +294,7 @@ $width = array('10%'); // Fill out manually later
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$msg = $this->app->erp->base64_url_encode(
|
$msg = $this->app->erp->base64_url_encode(
|
||||||
'<div class="error">Die Testmail wurde nicht versendet: '.$this->app->erp->mail_error.'</div>'
|
'<div class="error">Fehler beim Versende der Testmail: '.$this->app->erp->mail_error.'</div>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->app->Location->execute("index.php?module=emailbackup&id=$id&action=edit&msg=$msg");
|
$this->app->Location->execute("index.php?module=emailbackup&id=$id&action=edit&msg=$msg");
|
||||||
|
@ -480,7 +480,7 @@ class Firmendaten {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$msg = $this->app->erp->base64_url_encode(
|
$msg = $this->app->erp->base64_url_encode(
|
||||||
'<div class="error">Die Testmail wurde nicht versendet: '.$this->app->erp->mail_error.'</div>'
|
'<div class="error">Fehler beim Versenden der Testmail: '.$this->app->erp->mail_error.'</div>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->app->Location->execute("index.php?module=firmendaten&action=edit&msg=$msg#tabs-4");
|
$this->app->Location->execute("index.php?module=firmendaten&action=edit&msg=$msg#tabs-4");
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tabs-3">
|
<div id="tabs-3">
|
||||||
<div class="row">
|
<!-- <div class="row">
|
||||||
<div class="row-height">
|
<div class="row-height">
|
||||||
<div class="col-xs-12 col-sm-height">
|
<div class="col-xs-12 col-sm-height">
|
||||||
<div class="inside_white inside-full-height">
|
<div class="inside_white inside-full-height">
|
||||||
@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="row-height">
|
<div class="row-height">
|
||||||
@ -148,7 +148,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-sm-height">
|
<div class="col-xs-12 col-sm-6 col-sm-height">
|
||||||
<div class="inside inside-full-height">
|
<div class="inside inside-full-height">
|
||||||
<fieldset>
|
<fieldset disabled>
|
||||||
<legend>{|Stufe 2 (Pack) an Versandstation|}</legend>
|
<legend>{|Stufe 2 (Pack) an Versandstation|}</legend>
|
||||||
<table border="0" width="100%" class="mkTable">
|
<table border="0" width="100%" class="mkTable">
|
||||||
<tr><td width="300"></td><td>{|Drucker|}</td><td width="30%">{|Anzahl Exemplare|}</td><td width="30%">{|E-Mail|}</td></tr>
|
<tr><td width="300"></td><td>{|Drucker|}</td><td width="30%">{|Anzahl Exemplare|}</td><td width="30%">{|E-Mail|}</td></tr>
|
||||||
|
@ -19,7 +19,12 @@ class WidgetProjekt extends WidgetGenProjekt
|
|||||||
$id = $this->app->Secure->GetGET("id");
|
$id = $this->app->Secure->GetGET("id");
|
||||||
$kommissionierverfahren = array(
|
$kommissionierverfahren = array(
|
||||||
'rechnungsmail'=>'Ohne Lagerbuchung',
|
'rechnungsmail'=>'Ohne Lagerbuchung',
|
||||||
'lieferschein'=>'Einfache Lagerbuchung ohne weiteren Prozess');
|
'lieferschein'=>'Einfache Lagerbuchung ohne weiteren Prozess'
|
||||||
|
// 'lieferscheinscan'=>'Lieferscheinscan',
|
||||||
|
// 'lieferscheinlagerscan'=>'Lieferscheinlagerscan',
|
||||||
|
// 'lieferscheinlager'=>'Lieferscheinlager',
|
||||||
|
// 'zweistufig'=>'Zweistufig'
|
||||||
|
);
|
||||||
$field = new HTMLSelect("kommissionierverfahren",0);
|
$field = new HTMLSelect("kommissionierverfahren",0);
|
||||||
$field->AddOptionsAsocSimpleArray($kommissionierverfahren);
|
$field->AddOptionsAsocSimpleArray($kommissionierverfahren);
|
||||||
$this->form->NewField($field);
|
$this->form->NewField($field);
|
||||||
|
Loading…
Reference in New Issue
Block a user