mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 23:01:14 +01:00
Bugfix artikel profisuche
This commit is contained in:
parent
357497f10f
commit
424d77a795
@ -288,9 +288,15 @@ class Artikel extends GenArtikel {
|
|||||||
case 'lieferantartikelpreise':
|
case 'lieferantartikelpreise':
|
||||||
$id = (int)$this->app->Secure->GetGET('id');
|
$id = (int)$this->app->Secure->GetGET('id');
|
||||||
$allowed['artikel'] = array('profisuche');
|
$allowed['artikel'] = array('profisuche');
|
||||||
// alle artikel die ein Kunde kaufen kann mit preisen netto brutto
|
|
||||||
$cmd = $this->app->Secure->GetGET('smodule');
|
$cmd = $this->app->Secure->GetGET('cmd');
|
||||||
$adresse = $this->app->DB->Select("SELECT adresse FROM {$cmd} WHERE id='$id' LIMIT 1");
|
$module = $this->app->Secure->GetGET('module');
|
||||||
|
if ($module == 'artikel') {
|
||||||
|
$table = $cmd;
|
||||||
|
} else {
|
||||||
|
$table = $this->app->Secure->GetGET('smodule');
|
||||||
|
}
|
||||||
|
$adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$table,$id));
|
||||||
|
|
||||||
// headings
|
// headings
|
||||||
$heading = array('', 'Nummer', 'Artikel', 'Ab', 'Preis', 'Lager', 'Res.', 'Menge', 'Projekt', 'Menü');
|
$heading = array('', 'Nummer', 'Artikel', 'Ab', 'Preis', 'Lager', 'Res.', 'Menge', 'Projekt', 'Menü');
|
||||||
@ -340,8 +346,15 @@ class Artikel extends GenArtikel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// alle artikel die ein Kunde kaufen kann mit preisen netto brutto
|
// alle artikel die ein Kunde kaufen kann mit preisen netto brutto
|
||||||
$cmd = $this->app->Secure->GetGET('smodule');
|
$cmd = $this->app->Secure->GetGET('cmd');
|
||||||
$adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$cmd,$id));
|
$module = $this->app->Secure->GetGET('module');
|
||||||
|
if ($module == 'artikel') {
|
||||||
|
$table = $cmd;
|
||||||
|
} else {
|
||||||
|
$table = $this->app->Secure->GetGET('frommodule');
|
||||||
|
$table = substr($table , 0, strpos($table, "."));
|
||||||
|
}
|
||||||
|
$adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$table,$id));
|
||||||
|
|
||||||
$sEcho = (int)$this->app->Secure->GetGET('sEcho');
|
$sEcho = (int)$this->app->Secure->GetGET('sEcho');
|
||||||
if ($sEcho === 1) {
|
if ($sEcho === 1) {
|
||||||
@ -3145,7 +3158,7 @@ class Artikel extends GenArtikel {
|
|||||||
$vpe = '';
|
$vpe = '';
|
||||||
|
|
||||||
if($projekt <=0 ){
|
if($projekt <=0 ){
|
||||||
$projekt = $this->app->DB->Select("SELECT name_de FROM artikel WHERE id='$artikel_id' LIMIT 1");
|
$projekt = $this->app->DB->Select("SELECT projekt FROM artikel WHERE id='$artikel_id' LIMIT 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
if($projekt <=0){
|
if($projekt <=0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user