mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v20
This commit is contained in:
parent
f11bed462a
commit
db93af6c77
|
|
@ -194,7 +194,7 @@ if (isModEnabled('agenda') && ($user->hasRight('agenda', 'myactions', 'read') ||
|
|||
$cachekey = 'count_events_user_'.$object->id;
|
||||
$nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here
|
||||
|
||||
$titlelist = $langs->trans("ActionsOnCompany").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : '');
|
||||
$titlelist = $langs->trans("ActionsOnMember").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : '');
|
||||
if (!empty($conf->dol_optimize_smallscreen)) {
|
||||
$titlelist = $langs->trans("Actions").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : '');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1743,7 +1743,7 @@ if ($action == 'create') {
|
|||
if ($objp->fk_product > 0) {
|
||||
$canchangeproduct = 1;
|
||||
|
||||
// TODO: As $canchangeproduct is set just before, in what usecase it can be empty ?
|
||||
// @TODO: As $canchangeproduct is set just before, in what usecase it can be empty ?
|
||||
if (empty($canchangeproduct)) {
|
||||
$productstatic->id = $objp->fk_product;
|
||||
$productstatic->type = $objp->ptype;
|
||||
|
|
@ -1753,9 +1753,9 @@ if ($action == 'create') {
|
|||
print $objp->label ? ' - '.dol_trunc($objp->label, 32) : '';
|
||||
print '<input type="hidden" name="idprod" value="'.$currentLineProductId.'">';
|
||||
} else {
|
||||
$senderissupplier = 0;
|
||||
$senderissupplier = 0; // @TODO Option to allow purchased products ?
|
||||
if (empty($senderissupplier)) {
|
||||
print $form->select_produits($currentLineProductId, 'idprod');
|
||||
print $form->select_produits($currentLineProductId, 'idprod', '', 0, 0, 1, 2, '', 0, array(), 0, 1, 0, 'minwidth250onall maxwidth500 widthcentpercentminusx');
|
||||
} else {
|
||||
$form->select_produits_fournisseurs($currentLineProductId, 'idprod');
|
||||
}
|
||||
|
|
@ -1801,7 +1801,7 @@ if ($action == 'create') {
|
|||
}
|
||||
|
||||
// Discount
|
||||
print '<td class="nowrap right"><input size="1" type="text" name="elremise_percent" value="'.(GETPOSTISSET('elremise_percent')?GETPOST('elremise_percent'):$objp->remise_percent).'">%</td>';
|
||||
print '<td class="nowraponall right"><input size="1" type="text" name="elremise_percent" value="'.(GETPOSTISSET('elremise_percent')?GETPOST('elremise_percent'):$objp->remise_percent).'">%</td>';
|
||||
|
||||
if (!empty($usemargins)) {
|
||||
print '<td class="right">';
|
||||
|
|
|
|||
|
|
@ -2976,12 +2976,17 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||
|
||||
$MAXEVENT = 10;
|
||||
|
||||
$morehtmlcenter = '<div class="nowraponall">';
|
||||
$morehtmlcenter .= dolGetButtonTitle($langs->trans('FullConversation'), '', 'fa fa-comments imgforviewmode', DOL_URL_ROOT.'/user/messaging.php?id='.$object->id);
|
||||
$morehtmlcenter .= dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-bars imgforviewmode', DOL_URL_ROOT.'/user/agenda.php?id='.$object->id);
|
||||
$morehtmlcenter .= '</div>';
|
||||
|
||||
print '</div><div class="fichehalfright">';
|
||||
|
||||
// List of actions on element
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php';
|
||||
$formactions = new FormActions($db);
|
||||
$somethingshown = $formactions->showactions($object, 'user', $socid, 1, 'listactions', $MAXEVENT, '', '', $object->id);
|
||||
$somethingshown = $formactions->showactions($object, 'user', $socid, 1, 'listactions', $MAXEVENT, '', $morehtmlcenter, $object->id);
|
||||
|
||||
print '</div></div>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user