Fix: targettype or sourcetype not defined
This commit is contained in:
parent
6edbf70fd5
commit
d100d1acbe
@ -2085,6 +2085,7 @@ else
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."facture as f";
|
||||
$sql.= ", ".MAIN_DB_PREFIX."element_element as el";
|
||||
$sql.= " WHERE f.rowid = el.fk_target";
|
||||
$sql.= " AND el.targettype = 'facture'";
|
||||
$sql.= " AND el.fk_source = ".$commande->id;
|
||||
$sql.= " AND el.sourcetype = '".$commande->element."'";
|
||||
|
||||
|
||||
@ -557,6 +557,7 @@ if ($id > 0 || ! empty($ref))
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."facture as f";
|
||||
$sql.= ", ".MAIN_DB_PREFIX."element_element as el";
|
||||
$sql.= " WHERE f.rowid = el.fk_target";
|
||||
$sql.= " AND el.targettype = 'facture'";
|
||||
$sql.= " AND el.fk_source = ". $commande->id;
|
||||
$sql.= " AND el.sourcetype = '".$commande->element."'";
|
||||
|
||||
@ -603,7 +604,6 @@ if ($id > 0 || ! empty($ref))
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
|
||||
show_list_sending_receive('commande',$commande->id);
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user