Skip to content

Commit aa93070

Browse files
author
Andreas Palm
committed
Merge remote-tracking branch 'upstream/master' into sendcloud
# Conflicts: # www/pages/versandarten.php
2 parents 51552e7 + 7a83c9f commit aa93070

File tree

6 files changed

+38
-20
lines changed

6 files changed

+38
-20
lines changed

upgrade/data/db_schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98705,7 +98705,7 @@
9870598705
"Default": "",
9870698706
"Extra": "auto_increment",
9870798707
"Privileges": "select,insert,update,references",
98708-
"Commant": ""
98708+
"Comment": ""
9870998709
},
9871098710
{
9871198711
"Field": "address_id",
@@ -98716,7 +98716,7 @@
9871698716
"Default": "",
9871798717
"Extra": "",
9871898718
"Privileges": "select,insert,update,references",
98719-
"Commant": ""
98719+
"Comment": ""
9872098720
},
9872198721
{
9872298722
"Field": "document_type",
@@ -98727,7 +98727,7 @@
9872798727
"Default": "",
9872898728
"Extra": "",
9872998729
"Privileges": "select,insert,update,references",
98730-
"Commant": ""
98730+
"Comment": ""
9873198731
},
9873298732
{
9873398733
"Field": "job_type",
@@ -98738,7 +98738,7 @@
9873898738
"Default": "",
9873998739
"Extra": "",
9874098740
"Privileges": "select,insert,update,references",
98741-
"Commant": ""
98741+
"Comment": ""
9874298742
},
9874398743
{
9874498744
"Field": "printer_id",
@@ -98749,7 +98749,7 @@
9874998749
"Default": "",
9875098750
"Extra": "",
9875198751
"Privileges": "select,insert,update,references",
98752-
"Commant": ""
98752+
"Comment": ""
9875398753
},
9875498754
{
9875598755
"Field": "created_at",
@@ -98760,7 +98760,7 @@
9876098760
"Default": "current_timestamp()",
9876198761
"Extra": "",
9876298762
"Privileges": "select,insert,update,references",
98763-
"Commant": ""
98763+
"Comment": ""
9876498764
}
9876598765
],
9876698766
"keys": [

www/lib/class.erpapi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7095,7 +7095,7 @@ function Navigation()
70957095
$navarray['menu']['admin'][$menu]['sec'][] = array('Arbeitsnachweis','arbeitsnachweis','list');
70967096
$navarray['menu']['admin'][$menu]['sec'][] = array('Gutschrift / '.$this->Firmendaten("bezeichnungstornorechnung"),'gutschrift','list');
70977097
$navarray['menu']['admin'][$menu]['sec'][] = array('Proformarechnung','proformarechnung','list');
7098-
$navarray['menu']['admin'][$menu]['sec'][] = array('Abolauf','rechnungslauf','rechnungslauf');
7098+
$navarray['menu']['admin'][$menu]['sec'][] = array('Abolauf','rechnungslauf','list');
70997099
$navarray['menu']['admin'][$menu]['sec'][] = array('Mahnwesen','mahnwesen','list');
71007100

71017101
$navarray['menu']['admin'][$menu]['sec'][] = array('Dokumenten Scanner','docscan','list');

www/lib/class.image.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function scaledPicByFileId($id, $newwidth, $newheight, $upscale = false,
4949

5050
$manipulator = new ImageManipulator($str);
5151
$type = mime_content_type($path);
52+
5253
$manipulator->resample($newwidth, $newheight, true, $upscale);
5354

5455
/*
@@ -200,7 +201,7 @@ public function setImageString($data)
200201
public function resample($width, $height, $constrainProportions = true, $upscale = false, $keepformat = false)
201202
{
202203
if (!is_resource($this->image)) {
203-
throw new RuntimeException('No image set');
204+
// throw new RuntimeException('No image set');
204205
}
205206
if($keepformat)
206207
{
@@ -340,9 +341,9 @@ public function crop($x1, $y1 = 0, $x2 = 0, $y2 = 0)
340341
*/
341342
protected function _replace($res)
342343
{
343-
if (!is_resource($res)) {
344+
/* if (!is_resource($res)) {
344345
throw new UnexpectedValueException('Invalid resource');
345-
}
346+
}*/
346347
if (is_resource($this->image)) {
347348
imagedestroy($this->image);
348349
}

www/lib/dokumente/class.briefpapier.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,12 +1797,19 @@ function GetFont()
17971797

17981798
public function setStyleData($styleData){
17991799
$this->styleData = $styleData;
1800-
}
1800+
}
18011801

18021802
private function getStyleElement($key){
1803-
if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) return $this->styleData[$key];
1804-
1805-
return $this->app->erp->Firmendaten($key);
1803+
$result = null;
1804+
if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) {
1805+
$result = $this->styleData[$key];
1806+
} else {
1807+
$result = $this->app->erp->Firmendaten($key);
1808+
}
1809+
if (empty($result)) {
1810+
$result = 0;
1811+
}
1812+
return($result);
18061813
}
18071814

18081815
public function renderDocument() {

www/pages/lager.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public static function TableSearch($app, $name, $erlaubtevars)
451451
FROM
452452
einkaufspreise minek
453453
WHERE
454-
einkaufspreise.artikel = minek.artikel AND DATE(
454+
einkaufspreise.geloescht != 1 AND einkaufspreise.artikel = minek.artikel AND DATE(
455455
REPLACE
456456
(
457457
COALESCE(gueltig_bis, '9999-12-31'),
@@ -482,7 +482,17 @@ public static function TableSearch($app, $name, $erlaubtevars)
482482
)
483483
) >= DATE('".$datum."')
484484
)
485-
)
485+
) AND DATE(
486+
REPLACE
487+
(
488+
COALESCE(
489+
einkaufspreise.gueltig_bis,
490+
'9999-12-31'
491+
),
492+
'0000-00-00',
493+
'9999-12-31'
494+
)
495+
) >= DATE('".$datum."')
486496
GROUP BY
487497
artikel,
488498
waehrung

www/pages/rechnungslauf.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static function TableSearch($app, $name, $erlaubtevars)
3535
$width = ['1%', '1%', '10%', '20%', '10%', '10%', '10%', '10%', '10%', '10%', '1%'];
3636

3737
$findcols = [
38-
'',
39-
'',
38+
'adr.kundennummer',
39+
'adr.kundennummer',
4040
'adr.kundennummer',
4141
'adr.name',
4242
'adr.anschreiben',
@@ -209,7 +209,7 @@ public function __construct($app, $intern = false) {
209209
$this->app->ActionHandlerInit($this);
210210

211211
// ab hier alle Action Handler definieren die das Modul hat
212-
$this->app->ActionHandler('rechnungslauf', 'ActionList');
212+
$this->app->ActionHandler('list', 'ActionList');
213213
$this->app->ActionHandler('abos', 'ActionAbos');
214214
$this->app->ActionHandler('minidetail', 'ActionMinidetail');
215215

@@ -218,7 +218,7 @@ public function __construct($app, $intern = false) {
218218

219219
public function MenuList() {
220220
$this->app->erp->Headlines("Abolauf");
221-
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=rechnungslauf", "Übersicht");
221+
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=list", "Übersicht");
222222
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=abos", "gebuchte Abos");
223223
$this->app->erp->MenuEintrag("index.php?module=rechnungslauf&action=einstellungen", "Einstellungen");
224224
}

0 commit comments

Comments
 (0)