mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 14:51:14 +01:00
Bugfixes process offer to invoice
This commit is contained in:
parent
cd5c1cd5b4
commit
eff8fce974
@ -31961,7 +31961,8 @@ function ChargenMHDAuslagern($artikel, $menge, $lagerplatztyp, $lpid,$typ,$wert,
|
|||||||
if($drucker==$this->app->User->GetEmail())
|
if($drucker==$this->app->User->GetEmail())
|
||||||
$from_name = $this->app->User->GetName();
|
$from_name = $this->app->User->GetName();
|
||||||
else {
|
else {
|
||||||
$from_name = $this->app->DB->Select("SELECT absendername FROM firmendaten WHERE absendername!='' AND email!='' AND email='$drucker' LIMIT 1");
|
// $from_name = $this->app->DB->Select("SELECT absendername FROM firmendaten WHERE absendername!='' AND email!='' AND email='$drucker' LIMIT 1");
|
||||||
|
$from_name = $this->app->DB->Select("SELECT wert FROM firmendaten_werte WHERE name = 'absendername' LIMIT 1");
|
||||||
|
|
||||||
if($from_name=="")
|
if($from_name=="")
|
||||||
$from_name = $this->app->DB->Select("SELECT smtp_fromname FROM emailbackup WHERE smtp_fromname!='' AND smtp_frommail!='' AND smtp_frommail='$drucker' AND geloescht!=1 LIMIT 1");
|
$from_name = $this->app->DB->Select("SELECT smtp_fromname FROM emailbackup WHERE smtp_fromname!='' AND smtp_frommail!='' AND smtp_frommail='$drucker' AND geloescht!=1 LIMIT 1");
|
||||||
@ -39443,9 +39444,11 @@ function Firmendaten($field,$projekt="")
|
|||||||
|
|
||||||
$portosorts = null;
|
$portosorts = null;
|
||||||
$cpos = $pos?count($pos):0;
|
$cpos = $pos?count($pos):0;
|
||||||
for($i=0;$i<$cpos;$i++){
|
|
||||||
|
for($i=0;$i<$cpos;$i++){
|
||||||
/* nur lager artikel in den Lieferschein */
|
/* nur lager artikel in den Lieferschein */
|
||||||
$portoartikel = $portoartikelArr[$pos[$i]];
|
|
||||||
|
$portoartikel = !empty($portoartikel)?$portoartikelArr[$pos[(int) $i]]:0;
|
||||||
if($portoartikel==0) {
|
if($portoartikel==0) {
|
||||||
$this->app->DB->Insert("INSERT INTO lieferschein_position (id) VALUES('')");
|
$this->app->DB->Insert("INSERT INTO lieferschein_position (id) VALUES('')");
|
||||||
$newposid = $this->app->DB->GetInsertID();
|
$newposid = $this->app->DB->GetInsertID();
|
||||||
|
@ -2900,7 +2900,7 @@ class Briefpapier extends SuperFPDF {
|
|||||||
|
|
||||||
|
|
||||||
// wenn steuerfrei komplett immer 0 steuer anzeigen
|
// wenn steuerfrei komplett immer 0 steuer anzeigen
|
||||||
$item['tmptax'] = $item['tax'] + 1;
|
$item['tmptax'] = (float) $item['tax'] + 1;
|
||||||
|
|
||||||
// standard anzeige mit steuer
|
// standard anzeige mit steuer
|
||||||
if(!$this->ust_spalteausblende){
|
if(!$this->ust_spalteausblende){
|
||||||
|
@ -626,7 +626,7 @@ class RechnungPDF extends BriefpapierCustom {
|
|||||||
if($positionenkaufmaenischrunden == 3) {
|
if($positionenkaufmaenischrunden == 3) {
|
||||||
$netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2);
|
$netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2);
|
||||||
}else{
|
}else{
|
||||||
$netto_gesamt = $value['menge'] * ($value['preis'] - ($value['preis'] / 100 * $value['rabatt']));
|
$netto_gesamt = ((float) $value['menge']) * ((float) $value['preis'] - ((float) $value['preis'] / 100.0 * (float) $value['rabatt']));
|
||||||
}
|
}
|
||||||
$netto_gesamt_ungerundet = $netto_gesamt;
|
$netto_gesamt_ungerundet = $netto_gesamt;
|
||||||
if($positionenkaufmaenischrunden)
|
if($positionenkaufmaenischrunden)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user