forked from Wavyzz/dolibarr
Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 11.0
This commit is contained in:
@@ -1047,7 +1047,7 @@ if ($object->id > 0)
|
||||
$sql .= " AND f.entity = ".$conf->entity;
|
||||
$sql .= ' GROUP BY f.rowid, f.titre, f.amount, f.total, f.tva, f.total_ttc,';
|
||||
$sql .= ' f.date_last_gen, f.datec, f.frequency, f.unit_frequency,';
|
||||
$sql .= ' f.suspended,';
|
||||
$sql .= ' f.suspended, f.date_when,';
|
||||
$sql .= ' s.nom, s.rowid';
|
||||
$sql .= " ORDER BY f.date_last_gen, f.datec DESC";
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ $object = new BonPrelevement($db, "");
|
||||
// Load object
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
|
||||
|
||||
$hookmanager->initHooks(array('directdebitprevcard', 'globalcard'));
|
||||
$hookmanager->initHooks(array('directdebitprevcard', 'globalcard', 'directdebitprevlist'));
|
||||
|
||||
/*
|
||||
* Actions
|
||||
@@ -362,10 +362,19 @@ if ($id > 0 || $ref)
|
||||
|
||||
$urladd = "&id=".$id;
|
||||
|
||||
print_barre_liste($langs->trans("Lines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '');
|
||||
print '<form method="get" action="' . $_SERVER ['PHP_SELF'] . '" name="search_form">' . "\n";
|
||||
print '<input type="hidden" name="id" value="' . $id . '"/>';
|
||||
print '<input type="hidden" name="socid" value="' . $socid . '"/>';
|
||||
if (! empty($page)) {
|
||||
print '<input type="hidden" name="page" value="' . $page . '"/>';
|
||||
}
|
||||
if (! empty($limit)) {
|
||||
print '<input type="hidden" name="limit" value="' . $limit . '"/>';
|
||||
}
|
||||
print_barre_liste($langs->trans("Lines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '', 0, '', '', $limit);
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<table class="noborder liste" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Lines", $_SERVER["PHP_SELF"], "pl.rowid", '', $urladd);
|
||||
print_liste_field_titre("ThirdParty", $_SERVER["PHP_SELF"], "s.nom", '', $urladd);
|
||||
@@ -375,7 +384,7 @@ if ($id > 0 || $ref)
|
||||
|
||||
$total = 0;
|
||||
|
||||
while ($i < min($num, $conf->liste_limit))
|
||||
while ($i < min($num, $limit))
|
||||
{
|
||||
$obj = $db->fetch_object($result);
|
||||
|
||||
@@ -433,6 +442,7 @@ if ($id > 0 || $ref)
|
||||
|
||||
print "</table>";
|
||||
print '</div>';
|
||||
print '</form>';
|
||||
|
||||
$db->free($result);
|
||||
}
|
||||
|
||||
@@ -57,6 +57,16 @@ if (! $sortfield) $sortfield="f.ref";
|
||||
|
||||
$massactionbutton = '';
|
||||
|
||||
$hookmanager->initHooks(array('withdrawalstodolist'));
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
|
||||
$parameters = array('socid' => $socid, 'limit' => $limit, 'page' => $page, 'offset' => $offset);
|
||||
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
|
||||
/*
|
||||
* View
|
||||
@@ -142,7 +152,7 @@ $newcardbutton = '<a href="'.DOL_URL_ROOT.'/compta/prelevement/index.php">'.$lan
|
||||
|
||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit);
|
||||
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" id="searchFormList" name="searchFormList">';
|
||||
if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
|
||||
|
||||
@@ -1243,34 +1243,34 @@ class EmailCollector extends CommonObject
|
||||
|
||||
$objectid = 0;
|
||||
$objectemail = null;
|
||||
if ($reg[0] == 'inv')
|
||||
if ($reg[1] == 'inv')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new Facture($this->db);
|
||||
}
|
||||
if ($reg[0] == 'proj')
|
||||
if ($reg[1] == 'proj')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new Project($this->db);
|
||||
}
|
||||
if ($reg[0] == 'con')
|
||||
if ($reg[1] == 'con')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new Contact($this->db);
|
||||
}
|
||||
if ($reg[0] == 'thi')
|
||||
if ($reg[1] == 'thi')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new Societe($this->db);
|
||||
}
|
||||
if ($reg[0] == 'use')
|
||||
if ($reg[1] == 'use')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new User($this->db);
|
||||
}
|
||||
if ($reg[0] == 'tic')
|
||||
if ($reg[1] == 'tic')
|
||||
{
|
||||
$objectid = $reg[1];
|
||||
$objectid = $reg[2];
|
||||
$objectemail = new Ticket($this->db);
|
||||
}
|
||||
|
||||
|
||||
@@ -2753,7 +2753,8 @@ class Ticket extends CommonObject
|
||||
$conf->global->MAIN_MAIL_AUTOCOPY_TO = '';
|
||||
}
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||
$mailfile = new CMailFile($subject, $receiver, $from, $message_to_send, $filepath, $mimetype, $filename, $sendtocc, '', $deliveryreceipt, -1);
|
||||
$trackid = "tic".$this->id;
|
||||
$mailfile = new CMailFile($subject, $receiver, $from, $message_to_send, $filepath, $mimetype, $filename, $sendtocc, '', $deliveryreceipt, -1, '', '', $trackid);
|
||||
if ($mailfile->error) {
|
||||
setEventMessages($mailfile->error, null, 'errors');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user