mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
wip
This commit is contained in:
@@ -240,7 +240,7 @@ if (empty($reshook))
|
|||||||
if (! empty($conf->banque->enabled))
|
if (! empty($conf->banque->enabled))
|
||||||
{
|
{
|
||||||
// Si module bank actif, un compte est obligatoire lors de la saisie d'un paiement
|
// Si module bank actif, un compte est obligatoire lors de la saisie d'un paiement
|
||||||
if (GETPOST('accountid','int') <= 0)
|
if (GETPOST('accountid', 'int') <= 0)
|
||||||
{
|
{
|
||||||
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('AccountToCredit')), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('AccountToCredit')), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
@@ -1470,43 +1470,43 @@ class Form
|
|||||||
$contactstatic->id=$obj->rowid;
|
$contactstatic->id=$obj->rowid;
|
||||||
$contactstatic->lastname=$obj->lastname;
|
$contactstatic->lastname=$obj->lastname;
|
||||||
$contactstatic->firstname=$obj->firstname;
|
$contactstatic->firstname=$obj->firstname;
|
||||||
if ($obj->statut == 1){
|
if ($obj->statut == 1) {
|
||||||
if ($htmlname != 'none')
|
if ($htmlname != 'none')
|
||||||
{
|
{
|
||||||
$disabled=0;
|
$disabled=0;
|
||||||
if (is_array($exclude) && count($exclude) && in_array($obj->rowid, $exclude)) $disabled=1;
|
if (is_array($exclude) && count($exclude) && in_array($obj->rowid, $exclude)) $disabled=1;
|
||||||
if (is_array($limitto) && count($limitto) && ! in_array($obj->rowid, $limitto)) $disabled=1;
|
if (is_array($limitto) && count($limitto) && ! in_array($obj->rowid, $limitto)) $disabled=1;
|
||||||
if (!empty($selected) && in_array($obj->rowid, $selected))
|
if (!empty($selected) && in_array($obj->rowid, $selected))
|
||||||
{
|
{
|
||||||
$out.= '<option value="'.$obj->rowid.'"';
|
$out.= '<option value="'.$obj->rowid.'"';
|
||||||
if ($disabled) $out.= ' disabled';
|
if ($disabled) $out.= ' disabled';
|
||||||
$out.= ' selected>';
|
$out.= ' selected>';
|
||||||
$out.= $contactstatic->getFullName($langs);
|
$out.= $contactstatic->getFullName($langs);
|
||||||
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
||||||
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
||||||
$out.= '</option>';
|
$out.= '</option>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$out.= '<option value="'.$obj->rowid.'"';
|
$out.= '<option value="'.$obj->rowid.'"';
|
||||||
if ($disabled) $out.= ' disabled';
|
if ($disabled) $out.= ' disabled';
|
||||||
$out.= '>';
|
$out.= '>';
|
||||||
$out.= $contactstatic->getFullName($langs);
|
$out.= $contactstatic->getFullName($langs);
|
||||||
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
||||||
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
||||||
$out.= '</option>';
|
$out.= '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (in_array($obj->rowid, $selected))
|
if (in_array($obj->rowid, $selected))
|
||||||
{
|
{
|
||||||
$out.= $contactstatic->getFullName($langs);
|
$out.= $contactstatic->getFullName($langs);
|
||||||
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
if ($showfunction && $obj->poste) $out.= ' ('.$obj->poste.')';
|
||||||
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
if (($showsoc > 0) && $obj->company) $out.= ' - ('.$obj->company.')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1312,7 +1312,6 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval, 0, $outputlangs), 0, 'R', 1);
|
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval, 0, $outputlangs), 0, 'R', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// Revenue stamp
|
// Revenue stamp
|
||||||
|
|||||||
Reference in New Issue
Block a user