Skip to content

Commit

Permalink
NEW: new const to redirect to invoice list from massaction
Browse files Browse the repository at this point in the history
  • Loading branch information
altairis-noe committed Apr 23, 2024
1 parent bba4c69 commit ac1a407
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htdocs/commande/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@
$texttoshow = str_replace('{s1}', '<a href="'.DOL_URL_ROOT.'/compta/facture/card.php?id='.urlencode((string) ($lastid)).'">'.$lastref.'</a>', $texttoshow);
setEventMessages($texttoshow, null, 'mesgs');
} else {
if (getDolGlobalInt('MAIN_MASSACTION_CREATEBILLS_REDIRECT_IF_MANY') == 1) {
// Redirect to invoice list
header("Location: ".DOL_URL_ROOT.'/compta/facture/list.php?mainmenu=billing&leftmenu=customers_bills');
exit;
}
setEventMessages($langs->trans('BillCreated', $nb_bills_created), null, 'mesgs');
}

Expand Down

0 comments on commit ac1a407

Please sign in to comment.