add invoice_rec_prepare_head for reccuring invoice

This commit is contained in:
BENKE Charlie 2017-04-09 11:29:54 +02:00 committed by GitHub
parent 76af83ce06
commit feebd4252a

View File

@ -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
@ -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;
}