From 81c64adedb29010a0384640861b47e9694bc3369 Mon Sep 17 00:00:00 2001 From: Darkjeff Date: Wed, 23 Jun 2021 11:38:42 +0200 Subject: [PATCH] correct bilan locataire --- lib/immorenter.lib.php | 6 ++++++ renter/immorenter_bilan.php | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/immorenter.lib.php b/lib/immorenter.lib.php index a69e04b8..e2f84091 100644 --- a/lib/immorenter.lib.php +++ b/lib/immorenter.lib.php @@ -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; diff --git a/renter/immorenter_bilan.php b/renter/immorenter_bilan.php index ae696489..decc1ac4 100644 --- a/renter/immorenter_bilan.php +++ b/renter/immorenter_bilan.php @@ -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" ); @@ -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 = ''.$langs->trans("BackToList").''; -immo_banner_tab($object, 'id', $linkback, 1, 'rowid', 'name'); +//immo_banner_tab($object, 'id', $linkback, 1, 'rowid', 'name'); print '';