mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Bugfixes angebot ajax positionen
This commit is contained in:
parent
0b0224f6ba
commit
b7f553664b
@ -2302,9 +2302,10 @@ class YUI {
|
||||
$originalwaehrung = $waehrung;
|
||||
$ekpreisp = $this->app->erp->GetEinkaufspreisWaehrung($artikel_id, $menge, $waehrung, $originalwaehrung, $originalpreis);
|
||||
$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");
|
||||
$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,
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_null($subwhere)) {
|
||||
for ($j = 0;$j < count($subwhere);$j++) $tmp.= " AND " . $subwhere[$j];
|
||||
}
|
||||
|
||||
// START EXTRA more
|
||||
$where = " b.id!='' AND b.status!='angelegt' $tmp " . $this->app->erp->ProjektRechte();
|
||||
|
@ -1503,6 +1503,7 @@ function processData( xmlHttp, intID )
|
||||
case 'fillArtikel':
|
||||
var myString = xmlHttp.responseText;
|
||||
var mySplitResult = myString.split("#*#");
|
||||
|
||||
if(myString.length>3)
|
||||
{
|
||||
render=1;
|
||||
|
@ -3671,7 +3671,8 @@ class Artikel extends GenArtikel {
|
||||
//echo $id;
|
||||
// if(!is_numeric($id))
|
||||
// exit;
|
||||
$tmp_id = explode(' ',$id);
|
||||
|
||||
$tmp_id = explode(',',$id);
|
||||
$id = $tmp_id[0];
|
||||
|
||||
$id = $this->app->DB->Select("SELECT id FROM artikel WHERE nummer='$id' AND intern_gesperrt!=1 LIMIT 1");
|
||||
|
@ -224,7 +224,11 @@ function fillArtikel(id,menge)
|
||||
id = tmp[0];
|
||||
|
||||
strSource = "./index.php";
|
||||
id = $.base64Encode( id);
|
||||
|
||||
// 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;
|
||||
@ -232,6 +236,8 @@ function fillArtikel(id,menge)
|
||||
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
|
||||
@ -239,7 +245,6 @@ function fillArtikel(id,menge)
|
||||
command = 'fillArtikel';
|
||||
sendRequest(strSource,strData,intType,intID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user