Skip to content

Commit

Permalink
correct bilan locataire
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkjeff committed Jun 23, 2021
1 parent 775e80b commit 81c64ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions lib/immorenter.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ function immorenterPrepareHead($object)
$head[$h][1] = $langs->trans("Card");
$head[$h][2] = 'card';
$h++;

$head[$h][0] = dol_buildpath('/ultimateimmo/renter/immorenter_bilan.php', 1) . '?id=' . $object->id;
$head[$h][1] = $langs->trans("Bilan");
$head[$h][2] = 'bilan';
//$hselected = $h;
$h ++;

if (isset($object->fields['note_public']) || isset($object->fields['note_private'])) {
$nbNote = 0;
Expand Down
6 changes: 3 additions & 3 deletions renter/immorenter_bilan.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Class
dol_include_once ( "/ultimateimmo/class/immorent.class.php" );
require_once ('../class/immorenter.class.php');
require_once ('../core/lib/ultimateimmo.lib.php');
require_once ('../lib/immorenter.lib.php');

// Langs
$langs->load ( "ultimateimmo@ultimateimmo" );
Expand All @@ -53,13 +53,13 @@

$object->fetch_thirdparty();

$head=renter_prepare_head($object);
$head=immorenterPrepareHead($object);

dol_fiche_head($head, 'bilan', $langs->trans("Renter"), 0, 'user');

$linkback = '<a href="./list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';

immo_banner_tab($object, 'id', $linkback, 1, 'rowid', 'name');
//immo_banner_tab($object, 'id', $linkback, 1, 'rowid', 'name');

print '<table class="border centpercent">';

Expand Down

0 comments on commit 81c64ad

Please sign in to comment.