mode Kanban for subscription list

This commit is contained in:
Lamrani Abdel 2022-12-19 15:19:18 +01:00
parent abd5a86f34
commit 0c75e5bb2d
2 changed files with 4 additions and 6 deletions

View File

@ -525,7 +525,7 @@ class Subscription extends CommonObject
if (property_exists($this, 'dateh') || property_exists($this, 'datef')) {
$return .= '<br><span class="info-box-status opacitymedium">'.dol_print_date($this->dateh, 'day').' - '.dol_print_date($this->datef, 'day').'</span>';
}
if (property_exists($this, 'fk_bank')) {
$return .= '<br><span class="info-box-label ">'.$this->fk_bank.'</span>';
}

View File

@ -516,13 +516,13 @@ while ($i < min($num, $limit)) {
$adht->fetch($typeid);
$adherent->need_subscription = $adht->subscription;
if ($mode == 'kanban') {
if ($i == 0) {
print '<tr><td colspan="12">';
print '<div class="box-flex-container">';
}
//fetch informations needs on this mode
$subscription->fk_adherent = $adherent->getNomUrl(1);
$subscription->fk_type = $adht->getNomUrl(1);
@ -538,9 +538,7 @@ while ($i < min($num, $limit)) {
print '</div>';
print '</td></tr>';
}
}
else {
} else {
print '<tr class="oddeven">';
// Ref