mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 14:51:14 +01:00
Bugfixes angebot ajax positionen
This commit is contained in:
parent
0b0224f6ba
commit
b7f553664b
@ -2301,10 +2301,11 @@ class YUI {
|
|||||||
$originalpreis = $preis;
|
$originalpreis = $preis;
|
||||||
$originalwaehrung = $waehrung;
|
$originalwaehrung = $waehrung;
|
||||||
$ekpreisp = $this->app->erp->GetEinkaufspreisWaehrung($artikel_id, $menge, $waehrung, $originalwaehrung, $originalpreis);
|
$ekpreisp = $this->app->erp->GetEinkaufspreisWaehrung($artikel_id, $menge, $waehrung, $originalwaehrung, $originalpreis);
|
||||||
$dbeitrag = 1;
|
$dbeitrag = 1;
|
||||||
if($ekpreisp && $preis*(100-$rabatt)/100 != 0)
|
|
||||||
|
if(!is_null($ekpreisp) && (int)$preis*(100-(int)$rabatt)/100 != 0)
|
||||||
{
|
{
|
||||||
$dbeitrag = ($preis*(100-$rabatt)/100-$ekpreisp)/($preis*(100-$rabatt)/100);
|
$dbeitrag = ((int)$preis*(100-(int)$rabatt)/100-(int)$ekpreisp)/((int)$preis*(100-(int)$rabatt)/100);
|
||||||
}
|
}
|
||||||
$this->app->DB->Update("UPDATE $table SET einkaufspreis = '$ekpreisp', einkaufspreisurspruenglich = '$originalpreis',ekwaehrung = '$originalwaehrung', deckungsbeitrag = '$dbeitrag' WHERE id = '$newposid' LIMIT 1");
|
$this->app->DB->Update("UPDATE $table SET einkaufspreis = '$ekpreisp', einkaufspreisurspruenglich = '$originalpreis',ekwaehrung = '$originalwaehrung', deckungsbeitrag = '$dbeitrag' WHERE id = '$newposid' LIMIT 1");
|
||||||
$ust_befreit = $this->app->DB->Select("SELECT ust_befreit FROM $module WHERE id = '$id' LIMIT 1");
|
$ust_befreit = $this->app->DB->Select("SELECT ust_befreit FROM $module WHERE id = '$id' LIMIT 1");
|
||||||
@ -7118,7 +7119,9 @@ r.land as land, p.abkuerzung as projekt, r.zahlungsweise as zahlungsweise,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($j = 0;$j < count($subwhere);$j++) $tmp.= " AND " . $subwhere[$j];
|
if (!is_null($subwhere)) {
|
||||||
|
for ($j = 0;$j < count($subwhere);$j++) $tmp.= " AND " . $subwhere[$j];
|
||||||
|
}
|
||||||
|
|
||||||
// START EXTRA more
|
// START EXTRA more
|
||||||
$where = " b.id!='' AND b.status!='angelegt' $tmp " . $this->app->erp->ProjektRechte();
|
$where = " b.id!='' AND b.status!='angelegt' $tmp " . $this->app->erp->ProjektRechte();
|
||||||
|
@ -1503,6 +1503,7 @@ function processData( xmlHttp, intID )
|
|||||||
case 'fillArtikel':
|
case 'fillArtikel':
|
||||||
var myString = xmlHttp.responseText;
|
var myString = xmlHttp.responseText;
|
||||||
var mySplitResult = myString.split("#*#");
|
var mySplitResult = myString.split("#*#");
|
||||||
|
|
||||||
if(myString.length>3)
|
if(myString.length>3)
|
||||||
{
|
{
|
||||||
render=1;
|
render=1;
|
||||||
|
19503
www/pages/artikel.php
19503
www/pages/artikel.php
File diff suppressed because it is too large
Load Diff
@ -223,23 +223,28 @@ function fillArtikel(id,menge)
|
|||||||
menge = res.substr(0,first_space)
|
menge = res.substr(0,first_space)
|
||||||
id = tmp[0];
|
id = tmp[0];
|
||||||
|
|
||||||
strSource = "./index.php";
|
strSource = "./index.php";
|
||||||
id = $.base64Encode( id);
|
|
||||||
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
|
|
||||||
intType= 0; //GET
|
|
||||||
intID = 0;
|
|
||||||
command = 'fillArtikel';
|
|
||||||
sendRequest(strSource,strData,intType,intID);
|
|
||||||
} else {
|
|
||||||
strSource = "./index.php";
|
|
||||||
id = $.base64Encode( id);
|
|
||||||
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
|
|
||||||
intType= 0; //GET
|
|
||||||
intID = 0;
|
|
||||||
command = 'fillArtikel';
|
|
||||||
sendRequest(strSource,strData,intType,intID);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Force string type
|
||||||
|
id = ""+id;
|
||||||
|
id = $.base64Encode(id);
|
||||||
|
|
||||||
|
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
|
||||||
|
intType= 0; //GET
|
||||||
|
intID = 0;
|
||||||
|
command = 'fillArtikel';
|
||||||
|
sendRequest(strSource,strData,intType,intID);
|
||||||
|
} else {
|
||||||
|
strSource = "./index.php";
|
||||||
|
// Force string type
|
||||||
|
id = ""+id;
|
||||||
|
id = $.base64Encode( id);
|
||||||
|
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
|
||||||
|
intType= 0; //GET
|
||||||
|
intID = 0;
|
||||||
|
command = 'fillArtikel';
|
||||||
|
sendRequest(strSource,strData,intType,intID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user