Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
This commit is contained in:
commit
0081d3c25d
@ -191,7 +191,7 @@ print '</tr>'."\n";
|
|||||||
|
|
||||||
|
|
||||||
// AGENDA REMINDER EMAIL
|
// AGENDA REMINDER EMAIL
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL > 0)
|
if ($conf->global->MAIN_FEATURES_LEVEL == 2)
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">'."\n";
|
print '<tr class="oddeven">'."\n";
|
||||||
print '<td>'.$langs->trans('AGENDA_REMINDER_EMAIL', $langs->transnoentities("Module2300Name")).'</td>'."\n";
|
print '<td>'.$langs->trans('AGENDA_REMINDER_EMAIL', $langs->transnoentities("Module2300Name")).'</td>'."\n";
|
||||||
@ -208,7 +208,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AGENDA REMINDER BROWSER
|
// AGENDA REMINDER BROWSER
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL > 0)
|
if ($conf->global->MAIN_FEATURES_LEVEL == 2)
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">'."\n";
|
print '<tr class="oddeven">'."\n";
|
||||||
print '<td>'.$langs->trans('AGENDA_REMINDER_BROWSER').'</td>'."\n";
|
print '<td>'.$langs->trans('AGENDA_REMINDER_BROWSER').'</td>'."\n";
|
||||||
|
|||||||
@ -496,7 +496,7 @@ if ($id > 0 || ! empty($ref)) {
|
|||||||
$sql .= " WHERE l.fk_commande = " . $object->id;
|
$sql .= " WHERE l.fk_commande = " . $object->id;
|
||||||
if (empty($conf->global->STOCK_SUPPORTS_SERVICES))
|
if (empty($conf->global->STOCK_SUPPORTS_SERVICES))
|
||||||
$sql .= " AND l.product_type = 0";
|
$sql .= " AND l.product_type = 0";
|
||||||
$sql .= " GROUP BY p.ref, p.label, p.tobatch, l.rowid, l.fk_product, l.subprice, l.remise_percent"; // Calculation of amount dispatched is done per fk_product so we must group by fk_product
|
$sql .= " GROUP BY p.ref, p.label, p.tobatch, l.rowid, l.fk_product, l.subprice, l.remise_percent, p.fk_default_warehouse"; // Calculation of amount dispatched is done per fk_product so we must group by fk_product
|
||||||
$sql .= " ORDER BY p.ref, p.label";
|
$sql .= " ORDER BY p.ref, p.label";
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user