diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php index 603d7778aa9..15a88dea730 100644 --- a/htdocs/admin/stock.php +++ b/htdocs/admin/stock.php @@ -216,6 +216,7 @@ print ''."\n"; $found = 0; +print ''; print '
| '; } print ' | '.$langs->trans("QtyOrdered").' | '; - print ''.$langs->trans("QtyDispatchedShort").' | '; - print ''.$langs->trans("QtyToDispatchShort"); + if ($object->status == Expedition::STATUS_DRAFT) { + print ' | '.$langs->trans("QtyToDispatchShort"); // Qty to dispatch (sum for all lines of batch detail if there is) + } else { + print ' | '.$langs->trans("QtyDispatchedShort").' | '; + } + print ''.$langs->trans("QtyToDispatchShort"); print ' | '; if (!empty($conf->global->SUPPLIER_ORDER_CAN_UPDATE_BUYINGPRICE_DURING_RECEIPT)) { @@ -610,6 +653,7 @@ if ($object->id > 0 || !empty($object->ref)) { $conf->cache['product'] = array(); + // Loop on each line of origin order while ($i < $num) { $objp = $db->fetch_object($resql); @@ -754,8 +798,8 @@ if ($object->id > 0 || !empty($object->ref)) { print ''; print ' | '; - print ''; - //print ''; + print ''; + //print ''; print ' | '; if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) { print ''; @@ -809,8 +853,10 @@ if ($object->id > 0 || !empty($object->ref)) { } // Qty to dispatch print ' | '; - print ''.img_picto($langs->trans("Reset"), 'eraser', 'class="pictofixedwidth opacitymedium"').''; - print ''; + print ''.img_picto($langs->trans("Reset"), 'eraser', 'class="pictofixedwidth opacitymedium"').''; + $suggestedvalue = (GETPOSTISSET('qty'.$suffix) ? GETPOST('qty'.$suffix, 'int') : $objd->qty); + //var_dump($suggestedvalue);exit; + print ''; print ' | '; print ''; if (isModEnabled('productbatch') && $objp->tobatch > 0) { @@ -953,8 +999,14 @@ if ($object->id > 0 || !empty($object->ref)) { } // Qty to dispatch print ' | '; - print ''.img_picto($langs->trans("Reset"), 'eraser', 'class="pictofixedwidth opacitymedium"').''; - print ''; + print ''.img_picto($langs->trans("Reset"), 'eraser', 'class="pictofixedwidth opacitymedium"').''; + $amounttosuggest = (GETPOSTISSET('qty'.$suffix) ? GETPOST('qty'.$suffix, 'int') : (empty($conf->global->SUPPLIER_ORDER_DISPATCH_FORCE_QTY_INPUT_TO_ZERO) ? $remaintodispatch : 0)); + if (count($products_dispatched)) { + // There is already existing lines into llx_expeditiondet, this means a plan for the shipment has already been started. + // In such a case, we do not suggest new values, we suggest the value known. + $amounttosuggest = (GETPOSTISSET('qty'.$suffix) ? GETPOST('qty'.$suffix, 'int') : (isset($products_dispatched[$objp->rowid]) ? $products_dispatched[$objp->rowid] : '')); + } + print ''; print ' | '; print '';
if (isModEnabled('productbatch') && $objp->tobatch > 0) {
@@ -1011,14 +1063,14 @@ if ($object->id > 0 || !empty($object->ref)) {
print '';
if ($nbproduct) {
- $checkboxlabel = $langs->trans("CloseReceivedSupplierOrdersAutomatically", $langs->transnoentitiesnoconv('StatusOrderReceivedAll'));
+ //$checkboxlabel = $langs->trans("CloseReceivedSupplierOrdersAutomatically", $langs->transnoentitiesnoconv('StatusOrderReceivedAll'));
print ' ';
$parameters = array();
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
// modified by hook
if (empty($reshook)) {
- if (empty($conf->reception->enabled)) {
+ /*if (empty($conf->reception->enabled)) {
print $langs->trans("Comment").' : ';
print 'trans("DispatchSupplierOrder", $object->ref);
@@ -1031,6 +1083,8 @@ if ($object->id > 0 || !empty($object->ref)) {
$dispatchBt = empty($conf->reception->enabled) ? $langs->trans("Receive") : $langs->trans("CreateReception");
print ' '; + */ + print 'id > 0 || !empty($object->ref)) { print ''; diff --git a/htdocs/reception/note.php b/htdocs/reception/note.php index b227a3e4a43..bbcd91e32a2 100644 --- a/htdocs/reception/note.php +++ b/htdocs/reception/note.php @@ -83,22 +83,18 @@ if (isModEnabled("reception")) { } $permissionnote = $user->rights->reception->creer; // Used by the include of actions_setnotes.inc.php +// TODO Test on reception module on only if ($origin == 'reception') { $result = restrictedArea($user, $origin, $object->id); } else { - if ($origin == 'reception') { - $result = restrictedArea($user, $origin, $object->id); - } else { - if ($origin == 'supplierorder' || $origin == 'order_supplier') { - $result = restrictedArea($user, 'fournisseur', $object, 'commande_fournisseur', 'commande'); - } elseif (empty($user->rights->{$origin}->lire) && empty($user->rights->{$origin}->read)) { - accessforbidden(); - } + if ($origin == 'supplierorder' || $origin == 'order_supplier') { + $result = restrictedArea($user, 'fournisseur', $object, 'commande_fournisseur', 'commande'); + } elseif (empty($user->rights->{$origin}->lire) && empty($user->rights->{$origin}->read)) { + accessforbidden(); } } - /* * Actions */ diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index 0a571d2650f..e60f6a7a352 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -854,7 +854,7 @@ class Dolresource extends CommonObject $result .= $linkstart; if ($withpicto) { - $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : $dataparams.' class="'.(($withpicto != 2) ? 'paddingright ' : '').$classfortooltip.'"'), 0, 0, $notooltip ? 0 : 1); + $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), (($withpicto != 2) ? 'class="paddingright"' : ''), 0, 0, $notooltip ? 0 : 1); } if ($withpicto != 2) { $result .= $this->ref; diff --git a/htdocs/salaries/class/salary.class.php b/htdocs/salaries/class/salary.class.php index f41c4c09283..078620a09d2 100644 --- a/htdocs/salaries/class/salary.class.php +++ b/htdocs/salaries/class/salary.class.php @@ -552,7 +552,7 @@ class Salary extends CommonObject $result .= $linkstart; if ($withpicto) { - $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright pictofixedwidth"' : '') : $dataparams.' class="'.(($withpicto != 2) ? 'paddingright ' : '').$classfortooltip.' pictofixedwidth"'), 0, 0, $notooltip ? 0 : 1); + $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'"'), 0, 0, $notooltip ? 0 : 1); } if ($withpicto != 2) { $result .= $this->ref; diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index 9b9c65c07d2..72a4f663cc7 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -2573,7 +2573,7 @@ class SupplierProposal extends CommonObject $result .= $linkstart; if ($withpicto) { - $result .= img_object(($notooltip ? '' : $label), $this->picto, ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : $dataparams.' class="'.(($withpicto != 2) ? 'paddingright ' : '').$classfortooltip.'"'), 0, 0, $notooltip ? 0 : 1); + $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), (($withpicto != 2) ? 'class="paddingright"' : ''), 0, 0, $notooltip ? 0 : 1); } if ($withpicto != 2) { $result .= $this->ref; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index d8c04b52eb3..e606a2ffb93 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -191,7 +191,7 @@ th.wrapcolumntitle dl dt a span.fas.fa-list { .liste_titre input[name=search_day_date_when], .liste_titre input[name=search_month_date_when], .liste_titre input[name=search_year_date_when], .liste_titre input[name=search_dtstartday], .liste_titre input[name=search_dtendday], .liste_titre input[name=search_dtstartmonth], .liste_titre input[name=search_dtendmonth], */ -.liste_titre input[name=search_month] { +.liste_titre input[name=search_month], .liste_titre input[name=search_month_start], .liste_titre input[name=search_month_end] { margin-right: 4px; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 50208d9eb44..75f6ee48793 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -495,7 +495,7 @@ th.wrapcolumntitle dl dt a span.fas.fa-list { vertical-align: bottom; } -.liste_titre input[name=month_date_when], .liste_titre input[name=monthvalid], .liste_titre input[name=search_ordermonth], .liste_titre input[name=search_deliverymonth], +/*.liste_titre input[name=month_date_when], .liste_titre input[name=monthvalid], .liste_titre input[name=search_ordermonth], .liste_titre input[name=search_deliverymonth], .liste_titre input[name=search_smonth], .liste_titre input[name=search_month], .liste_titre input[name=search_emonth], .liste_titre input[name=smonth], .liste_titre input[name=month], .liste_titre input[name=month_lim], .liste_titre input[name=month_start], .liste_titre input[name=month_end], .liste_titre input[name=month_create], .liste_titre input[name=search_month_lim], .liste_titre input[name=search_month_start], .liste_titre input[name=search_month_end], .liste_titre input[name=search_month_create], @@ -507,10 +507,15 @@ th.wrapcolumntitle dl dt a span.fas.fa-list { .liste_titre input[name=search_day_create], .liste_titre input[name=search_day_start], .liste_titre input[name=search_day_end], .liste_titre input[name=search_day_date_when], .liste_titre input[name=search_month_date_when], .liste_titre input[name=search_year_date_when], .liste_titre input[name=search_dtstartday], .liste_titre input[name=search_dtendday], .liste_titre input[name=search_dtstartmonth], .liste_titre input[name=search_dtendmonth], +*/ +.liste_titre input[name=search_month], .liste_titre input[name=search_month_start], .liste_titre input[name=search_month_end] { + margin-right: 4px; +} select#date_startday, select#date_startmonth, select#date_endday, select#date_endmonth, select#reday, select#remonth { margin-right: 4px; } + input, input.flat, textarea, textarea.flat, form.flat select, select, select.flat, .dataTables_length label select { color: var(--colortext); border: none; diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 5b696e2143d..08334b5efea 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -1522,9 +1522,7 @@ class Ticket extends CommonObject */ public function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss = '', $save_lastsearch_value = -1) { - global $db, $conf, $langs; - global $dolibarr_main_authentication, $dolibarr_main_demo; - global $menumanager; + global $conf, $langs; if (!empty($conf->dol_no_mouse_hover)) { $notooltip = 1; // Force disable tooltips @@ -1579,7 +1577,7 @@ class Ticket extends CommonObject $result .= $linkstart; if ($withpicto) { - $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : $dataparams.' class="'.(($withpicto != 2) ? 'paddingright ' : '').$classfortooltip.'"'), 0, 0, $notooltip ? 0 : 1); + $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), (($withpicto != 2) ? 'class="paddingright"' : ''), 0, 0, $notooltip ? 0 : 1); } if ($withpicto != 2) { $result .= $this->ref; diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 3e6b8bb5591..998b7daa756 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -74,7 +74,7 @@ $group = GETPOST("group", "int", 3); $cancel = GETPOST('cancel', 'alpha'); $contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'useracard'; // To manage different context of search -if (empty($id)) { +if (empty($id) && $action != 'create') { $id = $user->id; } |