mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-05 22:49:48 +01:00
verbindlichkeit bugfix sort belegnr, empty steuersatz
This commit is contained in:
parent
a1affd18d8
commit
c764a387b4
@ -55,7 +55,7 @@ class Verbindlichkeit {
|
|||||||
$findcols = array(
|
$findcols = array(
|
||||||
'v.id',
|
'v.id',
|
||||||
'v.id',
|
'v.id',
|
||||||
'v.id',
|
'v.belegnr',
|
||||||
'a.name',
|
'a.name',
|
||||||
'a.lieferantennummer',
|
'a.lieferantennummer',
|
||||||
'v.rechnung',
|
'v.rechnung',
|
||||||
@ -708,7 +708,7 @@ $menu="<table cellpadding=0 cellspacing=0><tr><td nowrap>"."<a href=\"index.php?
|
|||||||
$umsatzsteuer = $artikel['umsatzsteuer'];
|
$umsatzsteuer = $artikel['umsatzsteuer'];
|
||||||
$kontorahmen = $artikel['kontorahmen'];
|
$kontorahmen = $artikel['kontorahmen'];
|
||||||
|
|
||||||
if(empty($umsatzsteuer)) {
|
if(empty($umsatzsteuer) && is_numeric($artikel['steuersatz'])) {
|
||||||
$steuersatz = $artikel['steuersatz'];
|
$steuersatz = $artikel['steuersatz'];
|
||||||
} else {
|
} else {
|
||||||
$steuersatz = $this->get_steuersatz($umsatzsteuer,$id);
|
$steuersatz = $this->get_steuersatz($umsatzsteuer,$id);
|
||||||
@ -717,7 +717,6 @@ $menu="<table cellpadding=0 cellspacing=0><tr><td nowrap>"."<a href=\"index.php?
|
|||||||
if ($bruttoeingabe) {
|
if ($bruttoeingabe) {
|
||||||
$preis = $preis / (1+($steuersatz/100));
|
$preis = $preis / (1+($steuersatz/100));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "INSERT INTO verbindlichkeit_position (verbindlichkeit,paketdistribution, menge, preis, steuersatz, artikel, kontorahmen) VALUES ($id, $paketdistribution, $menge, $preis, $steuersatz, $einartikel, $kontorahmen)";
|
$sql = "INSERT INTO verbindlichkeit_position (verbindlichkeit,paketdistribution, menge, preis, steuersatz, artikel, kontorahmen) VALUES ($id, $paketdistribution, $menge, $preis, $steuersatz, $einartikel, $kontorahmen)";
|
||||||
$this->app->DB->Insert($sql);
|
$this->app->DB->Insert($sql);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user