Compare commits

...

2 Commits

Author SHA1 Message Date
OpenXE
fe75b1b716 rechnung hide delivery date if = '0000-00-00' 2024-10-02 11:23:53 +02:00
OpenXE
fec1e628f3 autosort navigation 2024-10-01 17:32:20 +02:00
2 changed files with 15 additions and 1 deletions

View File

@ -7209,6 +7209,20 @@ title: 'Abschicken',
$navarray['menu']['admin'][$menu]['sec'][] = array('Wiedervorlage','wiedervorlage','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Wiki','wiki','list');
$navarray['menu']['admin'][$menu]['sec'][] = array('Zeiterfassung','zeiterfassung','create');
foreach ($navarray['menu']['admin'] as $key => $menuitem) {
usort($menuitem['sec'], function ($a, $b) {
$a_val = $a[0];
$b_val = $b[0];
if($a_val > $b_val) return 1;
if($a_val < $b_val) return -1;
return 0;
});
$navarray['menu']['admin'][$key] = $menuitem;
}
// Always the last entry
$navarray['menu']['admin'][$menu]['sec'][] = array('Abmelden','welcome','logout');
return $this->CalculateNavigation($navarray);

View File

@ -232,7 +232,7 @@ class RechnungPDF extends BriefpapierCustom {
FROM lieferschein WHERE id='$lieferscheinid' LIMIT 1");
if($datumlieferschein=="00.00.0000") $datumlieferschein = $datum;
if($lieferdatum=="00.00.0000") $lieferdatum = $datum;
if($lieferdatum=="00.00.0000") $lieferdatum = "";
if($mahnwesen_datum=="00.00.0000") $mahnwesen_datum = "";
$bearbeiteremail = $this->app->DB->Select("SELECT b.email FROM rechnung r LEFT JOIN adresse b ON b.id=r.bearbeiterid WHERE r.id='$id' LIMIT 1");