mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-03 13:29:24 +01:00
Merge pull request #186 from faser2k/auftrag_position_waehrung
always use currency from auftrag for auftrag_positionen
This commit is contained in:
commit
e10bf935f1
@ -3069,12 +3069,6 @@ select a.kundennummer, (SELECT name FROM adresse a2 WHERE a2.kundennummer = a.ku
|
||||
|
||||
$adresse = $document['adresse'];// $this->app->DB->Select("SELECT adresse FROM $smodule WHERE id='$sid' LIMIT 1");
|
||||
$waehrung = $document['waehrung'];//$this->app->DB->Select("SELECT waehrung FROM $smodule WHERE id='$sid' LIMIT 1");
|
||||
$posanz = (int)$this->app->DB->Select("SELECT count(id) FROM $smodule"."_position WHERE $smodule = '$sid'");
|
||||
|
||||
if($posanz == 0)
|
||||
{
|
||||
$waehrung = '';
|
||||
}
|
||||
|
||||
$anzeigebrutto = false;
|
||||
if($smodule == 'auftrag' || $smodule == 'rechnung' || $smodule == 'gutschrift' || $smodule == 'angebot' || $smodule == 'proformarechnung')
|
||||
|
@ -3699,8 +3699,8 @@ class Artikel extends GenArtikel {
|
||||
$adresse = $this->app->DB->Select("SELECT adresse FROM $smodule WHERE id='$sid' LIMIT 1");
|
||||
}
|
||||
|
||||
if (!is_null($module)) {
|
||||
if ($this->app->DB->Select("SHOW COLUMNS FROM `$module` LIKE 'waehrung'")) {
|
||||
if (!is_null($smodule)) {
|
||||
if ($this->app->DB->Select("SHOW COLUMNS FROM `$smodule` LIKE 'waehrung'")) {
|
||||
$waehrung = $this->app->DB->Select("SELECT waehrung FROM $smodule WHERE id='$sid' LIMIT 1");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user