Merge remote-tracking branch 'upstream/master' into sendcloud

# Conflicts:
#	www/pages/versandarten.php
This commit is contained in:
Andreas Palm 2023-03-27 15:27:10 +02:00
commit aa93070185
6 changed files with 38 additions and 20 deletions

View File

@ -98705,7 +98705,7 @@
"Default": "",
"Extra": "auto_increment",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
},
{
"Field": "address_id",
@ -98716,7 +98716,7 @@
"Default": "",
"Extra": "",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
},
{
"Field": "document_type",
@ -98727,7 +98727,7 @@
"Default": "",
"Extra": "",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
},
{
"Field": "job_type",
@ -98738,7 +98738,7 @@
"Default": "",
"Extra": "",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
},
{
"Field": "printer_id",
@ -98749,7 +98749,7 @@
"Default": "",
"Extra": "",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
},
{
"Field": "created_at",
@ -98760,7 +98760,7 @@
"Default": "current_timestamp()",
"Extra": "",
"Privileges": "select,insert,update,references",
"Commant": ""
"Comment": ""
}
],
"keys": [

View File

@ -7095,7 +7095,7 @@ title: 'Abschicken',
$navarray['menu']['admin'][$menu]['sec'][] = array('Arbeitsnachweis','arbeitsnachweis','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Gutschrift / '.$this->Firmendaten("bezeichnungstornorechnung"),'gutschrift','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Proformarechnung','proformarechnung','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Abolauf','rechnungslauf','rechnungslauf');
$navarray['menu']['admin'][$menu]['sec'][] = array('Abolauf','rechnungslauf','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Mahnwesen','mahnwesen','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Dokumenten Scanner','docscan','list');

View File

@ -49,6 +49,7 @@ class image {
$manipulator = new ImageManipulator($str);
$type = mime_content_type($path);
$manipulator->resample($newwidth, $newheight, true, $upscale);
/*
@ -200,7 +201,7 @@ class ImageManipulator
public function resample($width, $height, $constrainProportions = true, $upscale = false, $keepformat = false)
{
if (!is_resource($this->image)) {
throw new RuntimeException('No image set');
// throw new RuntimeException('No image set');
}
if($keepformat)
{
@ -340,9 +341,9 @@ class ImageManipulator
*/
protected function _replace($res)
{
if (!is_resource($res)) {
/* if (!is_resource($res)) {
throw new UnexpectedValueException('Invalid resource');
}
}*/
if (is_resource($this->image)) {
imagedestroy($this->image);
}

View File

@ -1797,12 +1797,19 @@ class Briefpapier extends SuperFPDF {
public function setStyleData($styleData){
$this->styleData = $styleData;
}
}
private function getStyleElement($key){
if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) return $this->styleData[$key];
return $this->app->erp->Firmendaten($key);
$result = null;
if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) {
$result = $this->styleData[$key];
} else {
$result = $this->app->erp->Firmendaten($key);
}
if (empty($result)) {
$result = 0;
}
return($result);
}
public function renderDocument() {

View File

@ -451,7 +451,7 @@ class Lager extends GenLager {
FROM
einkaufspreise minek
WHERE
einkaufspreise.artikel = minek.artikel AND DATE(
einkaufspreise.geloescht != 1 AND einkaufspreise.artikel = minek.artikel AND DATE(
REPLACE
(
COALESCE(gueltig_bis, '9999-12-31'),
@ -482,7 +482,17 @@ class Lager extends GenLager {
)
) >= DATE('".$datum."')
)
)
) AND DATE(
REPLACE
(
COALESCE(
einkaufspreise.gueltig_bis,
'9999-12-31'
),
'0000-00-00',
'9999-12-31'
)
) >= DATE('".$datum."')
GROUP BY
artikel,
waehrung

View File

@ -35,8 +35,8 @@ class Rechnungslauf {
$width = ['1%', '1%', '10%', '20%', '10%', '10%', '10%', '10%', '10%', '10%', '1%'];
$findcols = [
'',
'',
'adr.kundennummer',
'adr.kundennummer',
'adr.kundennummer',
'adr.name',
'adr.anschreiben',
@ -209,7 +209,7 @@ class Rechnungslauf {
$this->app->ActionHandlerInit($this);
// ab hier alle Action Handler definieren die das Modul hat
$this->app->ActionHandler('rechnungslauf', 'ActionList');
$this->app->ActionHandler('list', 'ActionList');
$this->app->ActionHandler('abos', 'ActionAbos');
$this->app->ActionHandler('minidetail', 'ActionMinidetail');
@ -218,7 +218,7 @@ class Rechnungslauf {
public function MenuList() {
$this->app->erp->Headlines("Abolauf");
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=rechnungslauf", "Übersicht");
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=list", "Übersicht");
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=abos", "gebuchte Abos");
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=einstellungen", "Einstellungen");
}