Skip to content

Commit

Permalink
Update subscription.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 11, 2017
1 parent 7e99960 commit d59d788
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions htdocs/adherents/subscription.php
Expand Up @@ -32,13 +32,9 @@
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/subscription.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
if (! empty($conf->banque->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
}
if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
}
require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingjournal.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingjournal.class.php';

$langs->load("companies");
$langs->load("bills");
Expand Down Expand Up @@ -841,6 +837,8 @@
}
print "</tr>\n";

$accountstatic=new Account($db);

while ($i < $num)
{
$objp = $db->fetch_object($result);
Expand All @@ -857,8 +855,6 @@
print '<td align="right">';
if ($objp->bid)
{
$accountstatic=new Account($db);

$accountstatic->label=$objp->label;
$accountstatic->id=$objp->baid;
$accountstatic->number=$objp->number;
Expand Down

0 comments on commit d59d788

Please sign in to comment.