* add doc

* add doc

* add doc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE
2025-08-27 03:08:15 +02:00
committed by GitHub
parent 103bfd9051
commit cd80cbc632
2 changed files with 13 additions and 5 deletions

View File

@@ -32,8 +32,10 @@ global $noMoreLinkedObjectBlockAfter;
$langs = $GLOBALS['langs'];
'@phan-var-force Translate $langs';
global $linkedObjectBlock;
/**
* @var CommonObject $object
*/
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
$langs->load("bills");
@@ -76,12 +78,12 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
}
print '</td>';
print '<td class="linkedcol-name tdoverflowmax150">'.$objectlink->getNomUrl(1).'</td>';
print '<td class="linkedcol-ref tdoverflowmax150" title="'.dol_escape_htmltag($objectlink->ref_client).'">'.dol_escape_htmltag($objectlink->ref_client).'</td>';
print '<td class="linkedcol-ref tdoverflowmax150" title="'.dol_escape_htmltag($objectlink->ref_customer).'">'.dol_escape_htmltag($objectlink->ref_customer).'</td>';
print '<td class="linkedcol-date center">'.dol_print_date($objectlink->date, 'day').'</td>';
print '<td class="linkedcol-amount right nowraponall">';
if (!empty($objectlink) && $objectlink->element == 'facture' && $user->hasRight('facture', 'lire')) {
'@phan-var-force Facture $objectlink';
if ($objectlink->statut != 3) {
if ($objectlink->status != 3) {
// If not abandoned
$total += $objectlink->total_ht;
echo price($objectlink->total_ht);

View File

@@ -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
@@ -33,8 +34,13 @@ global $noMoreLinkedObjectBlockAfter;
$langs = $GLOBALS['langs'];
'@phan-var-force Translate $langs';
/**
* @var CommonObject $object
* @var Translate $langs
*/
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
'@phan-var-force CommonObject[] $linkedObjectBlock';
'@phan-var-force FactureRec[] $linkedObjectBlock';
/** @var FactureRec[] $linkedObjectBlock */
$langs->load("bills");