Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 6.0
This commit is contained in:
commit
1da7b154c1
@ -236,10 +236,10 @@ class RejetPrelevement
|
|||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||||
|
|
||||||
$subject = $langs->trans("InfoRejectSubject");
|
$subject = $langs->transnoentities("InfoRejectSubject");
|
||||||
$sendto = $emuser->getFullName($langs)." <".$emuser->email.">";
|
$sendto = $emuser->getFullName($langs)." <".$emuser->email.">";
|
||||||
$from = $this->user->getFullName($langs)." <".$this->user->email.">";
|
$from = $this->user->getFullName($langs)." <".$this->user->email.">";
|
||||||
$msgishtml=0;
|
$msgishtml=1;
|
||||||
|
|
||||||
$arr_file = array();
|
$arr_file = array();
|
||||||
$arr_mime = array();
|
$arr_mime = array();
|
||||||
|
|||||||
@ -189,7 +189,7 @@ $sql .= " FROM " . MAIN_DB_PREFIX . "facture as f ";
|
|||||||
$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "facturedet as d ON d.fk_facture = f.rowid";
|
$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "facturedet as d ON d.fk_facture = f.rowid";
|
||||||
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product as p ON d.fk_product = p.rowid";
|
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product as p ON d.fk_product = p.rowid";
|
||||||
$sql .= " WHERE f.fk_statut > 0";
|
$sql .= " WHERE f.fk_statut > 0";
|
||||||
$sql .= " AND f.entity = " . getEntity('facture');
|
$sql .= " AND f.entity IN (" . getEntity('facture') . ") ";
|
||||||
if (! empty($startdate)) $sql .= " AND f.datef >= '" . $db->idate($startdate) . "'";
|
if (! empty($startdate)) $sql .= " AND f.datef >= '" . $db->idate($startdate) . "'";
|
||||||
if (! empty($enddate)) $sql .= " AND f.datef <= '" . $db->idate($enddate) . "'";
|
if (! empty($enddate)) $sql .= " AND f.datef <= '" . $db->idate($enddate) . "'";
|
||||||
if ($search_ref) $sql.=natural_search('f.facnumber', $search_ref);
|
if ($search_ref) $sql.=natural_search('f.facnumber', $search_ref);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user