Debug v18

This commit is contained in:
Laurent Destailleur 2023-04-03 19:58:48 +02:00
parent 8898a1a432
commit a0829733bf
2 changed files with 8 additions and 10 deletions

View File

@ -3295,18 +3295,16 @@ class FactureFournisseur extends CommonInvoice
$return .= '<div class="info-box-content">';
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(1) : $this->ref).'</span>';
$return .= '<input id="cb'.$this->id.'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->id.'"'.($selected ? ' checked="checked"' : '').'>';
if (property_exists($this, 'socid')) {
$return .= ' | <span class="info-box-label">'.$this->socid.'</span>';
if (!empty($arraydata['thirdparty'])) {
$return .= '<br><span class="info-box-label">'.$arraydata['thirdparty'].'</span>';
}
if (property_exists($this, 'date_echeance') && property_exists($this, 'date')) {
if (!empty($this->date_echeance)) {
$return .= '<br><span class="info-box-label">'.dol_print_date($this->date_echeance).'</span>';
} else {
$return .= '<br><span class="info-box-label">'.dol_print_date($this->date).'</span>';
}
if (property_exists($this, 'date')) {
$return .= '<br><span class="info-box-label">'.dol_print_date($this->date, 'day').'</span>';
}
if (property_exists($this, 'total_ht')) {
$return .= '<br><span class="opacitymedium">'.$langs->trans("AmountHT").'</span> : <span class="info-box-label amount">'.price($this->total_ht).'</span>';
$return .= ' &nbsp; <span class="info-box-label amount" title="'.dol_escape_htmltag($langs->trans("AmountHT")).'">'.price($this->total_ht);
$return .= ' '.$langs->trans("HT");
$return .= '</span>';
}
if (method_exists($this, 'getLibStatut')) {
$alreadypaid = (empty($arraydata['alreadypaid']) ? 0 : $arraydata['alreadypaid']);

View File

@ -1513,7 +1513,7 @@ while ($i < $imaxinloop) {
}
}
$arraydata = array('alreadypaid' => $paiement);
$arraydata = array('alreadypaid' => $paiement, 'thirdparty' => $thirdparty->getNomUrl(1, '', 12));
print $facturestatic->getKanbanView('', $arraydata);
if ($i == ($imaxinloop - 1)) {
print '</div>';