add doc (#34960)
This commit is contained in:
parent
4edb50855f
commit
fd970ed5a9
1 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* 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
|
||||
|
|
@ -31,13 +32,16 @@ global $noMoreLinkedObjectBlockAfter;
|
|||
|
||||
$langs = $GLOBALS['langs'];
|
||||
'@phan-var-force Translate $langs';
|
||||
/** @var Translate $langs */
|
||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||
/** @var Commande[] $linkedObjectBlock */
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->load("orders");
|
||||
|
||||
$linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1);
|
||||
'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array)
|
||||
'@phan-var-force Commande[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array)
|
||||
/** @var Commande[] $linkedObjectBlock */
|
||||
|
||||
$total = 0;
|
||||
$ilink = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue