Debug v18
This commit is contained in:
parent
8e51bf2c55
commit
7cf21e6ee6
@ -168,7 +168,11 @@ function isModEnabled($module)
|
||||
global $conf;
|
||||
|
||||
// Fix special cases
|
||||
$arrayconv = array('project' => 'projet');
|
||||
$arrayconv = array(
|
||||
'project' => 'projet',
|
||||
'supplier_order'=>'fournisseur',
|
||||
'supplier_invoice'=>'fournisseur'
|
||||
);
|
||||
if (!empty($arrayconv[$module])) {
|
||||
$module = $arrayconv[$module];
|
||||
}
|
||||
|
||||
@ -1873,6 +1873,7 @@ if ($action == 'create') {
|
||||
}
|
||||
print "</form>\n";
|
||||
} elseif (!empty($object->id)) {
|
||||
// view
|
||||
$result = $object->fetch($id, $ref);
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
|
||||
@ -1895,6 +1895,8 @@ if ($action == 'create') {
|
||||
// Qty in other receptions (with reception and warehouse used)
|
||||
if ($origin && $origin_id > 0) {
|
||||
print '<td class="center nowrap linecolqtyinotherreceptions">';
|
||||
$htmltooltip = '';
|
||||
$qtyalreadyreceived = 0;
|
||||
if (!array_key_exists($lines[$i]->fk_commandefourndet, $arrayofpurchaselinealreadyoutput)) {
|
||||
foreach ($alreadysent as $key => $val) {
|
||||
if ($lines[$i]->fk_commandefourndet == $key) {
|
||||
@ -1906,22 +1908,25 @@ if ($action == 'create') {
|
||||
|
||||
$j++;
|
||||
if ($j > 1) {
|
||||
print '<br>';
|
||||
$htmltooltip .= '<br>';
|
||||
}
|
||||
$reception_static->fetch($receptionline_var['reception_id']);
|
||||
print $reception_static->getNomUrl(1);
|
||||
print ' - '.$receptionline_var['qty'];
|
||||
$htmltooltip .= $reception_static->getNomUrl(1, 0, 0, 0, 1);
|
||||
$htmltooltip .= ' - '.$receptionline_var['qty'];
|
||||
|
||||
$htmltext = $langs->trans("DateValidation").' : '.(empty($receptionline_var['date_valid']) ? $langs->trans("Draft") : dol_print_date($receptionline_var['date_valid'], 'dayhour'));
|
||||
if (isModEnabled('stock') && $receptionline_var['warehouse'] > 0) {
|
||||
$warehousestatic->fetch($receptionline_var['warehouse']);
|
||||
$htmltext .= '<br>'.$langs->trans("From").' : '.$warehousestatic->getNomUrl(1, '', 0, 1);
|
||||
}
|
||||
print ' '.$form->textwithpicto('', $htmltext, 1);
|
||||
$htmltooltip .= ' '.$form->textwithpicto('', $htmltext, 1);
|
||||
|
||||
$qtyalreadyreceived += $receptionline_var['qty'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
print $form->textwithpicto($qtyalreadyreceived, $htmltooltip, 1, 'info', '', 0, 3, 'tooltip'.$lines[$i]->id);
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
|
||||
@ -1257,13 +1257,15 @@ class Reception extends CommonObject
|
||||
$linkstart .= $linkclose.'>';
|
||||
$linkend = '</a>';
|
||||
|
||||
$result .= $linkstart;
|
||||
if ($withpicto) {
|
||||
$result .= ($linkstart.img_object(($notooltip ? '' : $label), $this->picto, ($notooltip ? '' : 'class="classfortooltip"'), 0, 0, $notooltip ? 0 : 1).$linkend);
|
||||
$result .= img_object(($notooltip ? '' : $label), $this->picto, '', 0, 0, $notooltip ? 0 : 1);
|
||||
}
|
||||
if ($withpicto && $withpicto != 2) {
|
||||
$result .= ' ';
|
||||
if ($withpicto != 2) {
|
||||
$result .= $this->ref;
|
||||
}
|
||||
$result .= $linkstart.$this->ref.$linkend;
|
||||
|
||||
$result .= $linkend;
|
||||
|
||||
global $action;
|
||||
$hookmanager->initHooks(array($this->element . 'dao'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user