Skip to content

Commit

Permalink
add invoice_rec_prepare_head for reccuring invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
defrance committed Apr 9, 2017
1 parent 76af83c commit feebd42
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions htdocs/core/lib/invoice.lib.php
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2017 Charlie Benke <charlie@patas-monkey.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -157,4 +158,27 @@ function invoice_admin_prepare_head()
}


function invoice_rec_prepare_head($object)
{
global $db, $langs, $conf;

$h = 0;
$head = array();

$head[$h][0] = DOL_URL_ROOT.'/compta/facture/fiche-rec.php?facid='.$object->id;
$head[$h][1] = $langs->trans('Card');
$head[$h][2] = 'compta';
$h++;

// Show more tabs from modules
// Entries must be declared in modules descriptor with line
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
// $this->tabs = array('entity:-tabname); to remove a tab
complete_head_from_modules($conf,$langs,$object,$head,$h,'invoice-rec');

complete_head_from_modules($conf,$langs,$object,$head,$h,'invoice-rec','remove');

return $head;
}


0 comments on commit feebd42

Please sign in to comment.