Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
Conflicts: htdocs/comm/action/card.php
This commit is contained in:
commit
ee0a65e7fa
@ -8,6 +8,7 @@
|
|||||||
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
|
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
|
||||||
* Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
* Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
||||||
* Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr>
|
||||||
|
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -248,7 +249,10 @@ if ($action == 'add')
|
|||||||
{
|
{
|
||||||
$object->label = $langs->transnoentitiesnoconv("Action".$object->type_code)."\n";
|
$object->label = $langs->transnoentitiesnoconv("Action".$object->type_code)."\n";
|
||||||
}
|
}
|
||||||
else $object->label = $cactioncomm->libelle;
|
else {
|
||||||
|
$cactioncomm->fetch($object->type_code);
|
||||||
|
$object->label = $cactioncomm->label;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$object->fk_project = isset($_POST["projectid"])?$_POST["projectid"]:0;
|
$object->fk_project = isset($_POST["projectid"])?$_POST["projectid"]:0;
|
||||||
|
|||||||
@ -261,7 +261,7 @@ if ($search_month_date_when > 0)
|
|||||||
if ($search_year_date_when > 0 && empty($search_day_date_when))
|
if ($search_year_date_when > 0 && empty($search_day_date_when))
|
||||||
$sql.= " AND f.date_when BETWEEN '".$db->idate(dol_get_first_day($search_year_date_when,$search_month_date_when,false))."' AND '".$db->idate(dol_get_last_day($search_year_date_when,$search_month_date_when,false))."'";
|
$sql.= " AND f.date_when BETWEEN '".$db->idate(dol_get_first_day($search_year_date_when,$search_month_date_when,false))."' AND '".$db->idate(dol_get_last_day($search_year_date_when,$search_month_date_when,false))."'";
|
||||||
else if ($search_year_date_when > 0 && ! empty($search_day_date_when))
|
else if ($search_year_date_when > 0 && ! empty($search_day_date_when))
|
||||||
$sql.= " AND f.date_date_when_reglement BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $search_month_date_when, $search_day_date_when, $search_year_date_when))."' AND '".$db->idate(dol_mktime(23, 59, 59, $search_month_date_when, $search_day_date_when, $search_year_date_when))."'";
|
$sql.= " AND f.date_when BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $search_month_date_when, $search_day_date_when, $search_year_date_when))."' AND '".$db->idate(dol_mktime(23, 59, 59, $search_month_date_when, $search_day_date_when, $search_year_date_when))."'";
|
||||||
else
|
else
|
||||||
$sql.= " AND date_format(f.date_when, '%m') = '".$db->escape($search_month_date_when)."'";
|
$sql.= " AND date_format(f.date_when, '%m') = '".$db->escape($search_month_date_when)."'";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,6 +34,15 @@ if ($resql) // This can fail when class is used on old database (during migra
|
|||||||
case 'boolean':
|
case 'boolean':
|
||||||
$typeFilter="Boolean";
|
$typeFilter="Boolean";
|
||||||
break;
|
break;
|
||||||
|
case 'select':
|
||||||
|
if (! empty($conf->global->EXPORT_LABEL_FOR_SELECT))
|
||||||
|
{
|
||||||
|
$tmpparam=unserialize($obj->param); // $tmpparam may be array with 'options' = array(key1=>val1, key2=>val2 ...)
|
||||||
|
if ($tmpparam['options'] && is_array($tmpparam['options'])) {
|
||||||
|
$typeFilter="Select:".$obj->param;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'sellist':
|
case 'sellist':
|
||||||
$tmp='';
|
$tmp='';
|
||||||
$tmpparam=unserialize($obj->param); // $tmp ay be array 'options' => array 'c_currencies:code_iso:code_iso' => null
|
$tmpparam=unserialize($obj->param); // $tmp ay be array 'options' => array 'c_currencies:code_iso:code_iso' => null
|
||||||
|
|||||||
@ -242,7 +242,7 @@ if ($action == 'dispatch' && $user->rights->fournisseur->commande->receptionner)
|
|||||||
// We ask to move a qty
|
// We ask to move a qty
|
||||||
if (GETPOST($qty) != 0) {
|
if (GETPOST($qty) != 0) {
|
||||||
if (! (GETPOST($ent, 'int') > 0)) {
|
if (! (GETPOST($ent, 'int') > 0)) {
|
||||||
dol_syslog('No dispatch for line ' . $key . ' as no warehouse choosed');
|
dol_syslog('No dispatch for line ' . $key . ' as no warehouse was chosen.');
|
||||||
$text = $langs->transnoentities('Warehouse') . ', ' . $langs->transnoentities('Line') . ' ' . ($numline);
|
$text = $langs->transnoentities('Warehouse') . ', ' . $langs->transnoentities('Line') . ' ' . ($numline);
|
||||||
setEventMessages($langs->trans('ErrorFieldRequired', $text), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldRequired', $text), null, 'errors');
|
||||||
$error ++;
|
$error ++;
|
||||||
@ -279,7 +279,7 @@ if ($action == 'dispatch' && $user->rights->fournisseur->commande->receptionner)
|
|||||||
// We ask to move a qty
|
// We ask to move a qty
|
||||||
if (GETPOST($qty) > 0) {
|
if (GETPOST($qty) > 0) {
|
||||||
if (! (GETPOST($ent, 'int') > 0)) {
|
if (! (GETPOST($ent, 'int') > 0)) {
|
||||||
dol_syslog('No dispatch for line ' . $key . ' as no warehouse choosed');
|
dol_syslog('No dispatch for line ' . $key . ' as no warehouse was chosen.');
|
||||||
$text = $langs->transnoentities('Warehouse') . ', ' . $langs->transnoentities('Line') . ' ' . ($numline) . '-' . ($reg[1] + 1);
|
$text = $langs->transnoentities('Warehouse') . ', ' . $langs->transnoentities('Line') . ' ' . ($numline) . '-' . ($reg[1] + 1);
|
||||||
setEventMessages($langs->trans('ErrorFieldRequired', $text), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldRequired', $text), null, 'errors');
|
||||||
$error ++;
|
$error ++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user