From afa8b372392720d56a10a305a8fdb713d8f9b79e Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Mon, 5 Mar 2018 19:45:55 +0100 Subject: [PATCH] NEW: add link to stripe's info in bank menu --- htdocs/core/modules/modStripe.class.php | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/htdocs/core/modules/modStripe.class.php b/htdocs/core/modules/modStripe.class.php index fa9abbec0e5..90a712fdbd8 100644 --- a/htdocs/core/modules/modStripe.class.php +++ b/htdocs/core/modules/modStripe.class.php @@ -106,6 +106,48 @@ class modStripe extends DolibarrModules 'user'=>2 ); // 0=Menu for internal users, 1=external users, 2=both $r++; + + $this->menu[$r] = array('fk_menu'=>'fk_mainmenu=bank', + 'type'=>'left', + 'titre'=>'StripeAccount', + 'mainmenu'=>'bank', + 'leftmenu'=>'stripe', + 'url' => '/stripe/charge.php', + 'langs' => 'stripe', + 'position' => 100, + 'enabled' => '1', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 + ); + + $r ++; + $this->menu[$r] = array( + 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', + 'type' => 'left', + 'titre' => 'StripeChargeList', + 'url' => '/stripe/charge.php', + 'langs' => 'stripe', + 'position' => 102, + 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 + ); + + $r ++; + $this->menu[$r] = array( + 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', + 'type' => 'left', + 'titre' => 'StripeTransactionList', + 'url' => '/stripe/transaction.php', + 'langs' => 'stripe', + 'position' => 102, + 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 + ); // Exports $r=1;