Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
1a715e794c
@ -28,7 +28,7 @@ include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
|
||||
/**
|
||||
* Class DataPolicy
|
||||
*/
|
||||
Class DataPolicy
|
||||
class DataPolicy
|
||||
{
|
||||
/**
|
||||
* getAllContactNotInformed
|
||||
|
||||
@ -154,12 +154,12 @@ print '</th>';
|
||||
print '</tr>';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
Print '<th width="5%" class="center">'.$langs->trans("Term").'</th>';
|
||||
Print '<th width="5%" class="center">'.$langs->trans("Date").'</th>';
|
||||
print '<th width="5%" class="center">'.$langs->trans("Term").'</th>';
|
||||
print '<th width="5%" class="center">'.$langs->trans("Date").'</th>';
|
||||
print '<th width="15%" class="center">'.$langs->trans("Insurance");
|
||||
Print '<th width="15%" class="center">'.$langs->trans("InterestAmount").'</th>';
|
||||
Print '<th width="10%" class="center">'.$langs->trans("Amount").'</th>';
|
||||
Print '<th width="40%" class="center">'.$langs->trans("CapitalRemain");
|
||||
print '<th width="15%" class="center">'.$langs->trans("InterestAmount").'</th>';
|
||||
print '<th width="10%" class="center">'.$langs->trans("Amount").'</th>';
|
||||
print '<th width="40%" class="center">'.$langs->trans("CapitalRemain");
|
||||
print ' ('.price2num($object->capital).')';
|
||||
print '<input type="hidden" name="hi_capital0" id ="hi_capital0" value="'.$object->capital.'">';
|
||||
print '</th>';
|
||||
|
||||
@ -160,12 +160,12 @@ print '</th>';
|
||||
print '</tr>';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
Print '<th width="5%" class="center">'.$langs->trans("Term").'</th>';
|
||||
Print '<th width="5%" class="center">'.$langs->trans("Date").'</th>';
|
||||
print '<th width="5%" class="center">'.$langs->trans("Term").'</th>';
|
||||
print '<th width="5%" class="center">'.$langs->trans("Date").'</th>';
|
||||
print '<th width="15%" class="center">'.$langs->trans("Insurance");
|
||||
Print '<th width="15%" class="center">'.$langs->trans("InterestAmount").'</th>';
|
||||
Print '<th width="10%" class="center">'.$langs->trans("Amount").'</th>';
|
||||
Print '<th width="40%" class="center">'.$langs->trans("CapitalRemain");
|
||||
print '<th width="15%" class="center">'.$langs->trans("InterestAmount").'</th>';
|
||||
print '<th width="10%" class="center">'.$langs->trans("Amount").'</th>';
|
||||
print '<th width="40%" class="center">'.$langs->trans("CapitalRemain");
|
||||
print ' ('.price2num($object->capital).')';
|
||||
print '<input type="hidden" name="hi_capital0" id ="hi_capital0" value="'.$object->capital.'">';
|
||||
print '</th>';
|
||||
|
||||
@ -4159,23 +4159,23 @@ class Product extends CommonObject
|
||||
if ($type == 2) {
|
||||
switch ($mode)
|
||||
{
|
||||
case 0:
|
||||
return ($status == 0 ? $langs->trans('ProductStatusNotOnBatch') : $langs->trans('ProductStatusOnBatch'));
|
||||
case 1:
|
||||
return ($status == 0 ? $langs->trans('ProductStatusNotOnBatchShort') : $langs->trans('ProductStatusOnBatchShort'));
|
||||
case 2:
|
||||
return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 1, 2);
|
||||
case 3:
|
||||
if ($status == 0) {
|
||||
return img_picto($langs->trans('ProductStatusNotOnBatch'), 'statut5');
|
||||
}
|
||||
return img_picto($langs->trans('ProductStatusOnBatch'), 'statut4');
|
||||
case 4:
|
||||
return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 0, 2);
|
||||
case 5:
|
||||
return $this->LibStatut($status, 1, 2).' '.$this->LibStatut($status, 3, 2);
|
||||
default:
|
||||
return $langs->trans('Unknown');
|
||||
case 0:
|
||||
return ($status == 0 ? $langs->trans('ProductStatusNotOnBatch') : $langs->trans('ProductStatusOnBatch'));
|
||||
case 1:
|
||||
return ($status == 0 ? $langs->trans('ProductStatusNotOnBatchShort') : $langs->trans('ProductStatusOnBatchShort'));
|
||||
case 2:
|
||||
return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 1, 2);
|
||||
case 3:
|
||||
if ($status == 0) {
|
||||
return img_picto($langs->trans('ProductStatusNotOnBatch'), 'statut5');
|
||||
}
|
||||
return img_picto($langs->trans('ProductStatusOnBatch'), 'statut4');
|
||||
case 4:
|
||||
return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 0, 2);
|
||||
case 5:
|
||||
return $this->LibStatut($status, 1, 2).' '.$this->LibStatut($status, 3, 2);
|
||||
default:
|
||||
return $langs->trans('Unknown');
|
||||
}
|
||||
}
|
||||
if ($mode == 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user