NEW Add link to create shipment on picto
This commit is contained in:
parent
a4e39ba1be
commit
2fc2e045be
1 changed files with 7 additions and 5 deletions
|
|
@ -151,7 +151,7 @@ $search_deliveryyear = '';
|
|||
|
||||
$search_import_key = trim(GETPOST("search_import_key", "alpha"));
|
||||
|
||||
$diroutputmassaction = $conf->commande->multidir_output[$conf->entity].'/temp/massgeneration/'.$user->id;
|
||||
$diroutputmassaction = $conf->order->multidir_output[$conf->entity].'/temp/massgeneration/'.$user->id;
|
||||
|
||||
// Load variable for pagination
|
||||
$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
|
||||
|
|
@ -376,7 +376,7 @@ if (empty($reshook)) {
|
|||
$permissiontocancel = $user->hasRight("commande", "creer");
|
||||
$permissiontosendbymail = $user->hasRight("commande", "creer");
|
||||
}
|
||||
$uploaddir = $conf->commande->multidir_output[$conf->entity];
|
||||
$uploaddir = $conf->order->multidir_output[$conf->entity];
|
||||
$triggersendname = 'ORDER_SENTBYMAIL';
|
||||
$year = "";
|
||||
$month = "";
|
||||
|
|
@ -997,7 +997,7 @@ if ($search_status != '') {
|
|||
}
|
||||
}
|
||||
if ($search_option == 'late') {
|
||||
$sql .= " AND c.date_commande < '".$db->idate(dol_now() - $conf->commande->client->warning_delay)."'";
|
||||
$sql .= " AND c.date_commande < '".$db->idate(dol_now() - $conf->order->client->warning_delay)."'";
|
||||
}
|
||||
if ($search_datecloture_start) {
|
||||
$sql .= " AND c.date_cloture >= '".$db->idate($search_datecloture_start)."'";
|
||||
|
|
@ -2294,7 +2294,7 @@ while ($i < $imaxinloop) {
|
|||
print $generic_commande->getNomUrl(1, $getNomUrlOption, 0, 0, 0, 1, 1);
|
||||
|
||||
$filename = dol_sanitizeFileName($obj->ref);
|
||||
$filedir = $conf->commande->multidir_output[$conf->entity].'/'.dol_sanitizeFileName($obj->ref);
|
||||
$filedir = $conf->order->multidir_output[$conf->entity].'/'.dol_sanitizeFileName($obj->ref);
|
||||
$urlsource = $_SERVER['PHP_SELF'].'?id='.$obj->rowid;
|
||||
print $formfile->getDocumentsLink($generic_commande->element, $filename, $filedir);
|
||||
|
||||
|
|
@ -2882,8 +2882,10 @@ while ($i < $imaxinloop) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($nbprod) {
|
||||
if ($nbprod) { // If there is at least one product to ship, we show the shippable icon
|
||||
print '<a href="'.DOL_URL_ROOT.'/expedition/shipment.php?id='.((int) $obj->rowid).'">';
|
||||
print $form->textwithtooltip('', $text_info, 2, 1, $text_icon, '', 2);
|
||||
print '</a>';
|
||||
}
|
||||
if ($warning) { // Always false in default mode
|
||||
print $form->textwithtooltip('', $langs->trans('NotEnoughForAllOrders').'<br>'.$text_warning, 2, 1, img_picto('', 'error'), '', 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue