';
- // Permet d'afficher le compte comptable
- if (empty($displayed_account) || $root_account_description != $displayed_account)
+ if(!empty($show_subgroup))
{
- // Affiche un Sous-Total par compte comptable
- if ($displayed_account != "") {
- print '
\n";
+ // Permet d'afficher le compte comptable
+ if (empty($displayed_account) || $root_account_description != $displayed_account) {
+ // Affiche un Sous-Total par compte comptable
+ if ($displayed_account != "") {
+ print '
';
print "";
diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang
index adf2309ad07..a16b6295df5 100644
--- a/htdocs/langs/en_US/accountancy.lang
+++ b/htdocs/langs/en_US/accountancy.lang
@@ -236,6 +236,7 @@ UnknownAccountForThirdpartyAndWaitingAccountNotDefinedBlocking=Unknown third-par
PaymentsNotLinkedToProduct=Payment not linked to any product / service
ShowOpeningBalance=Show opening balance
HideOpeningBalance=Hide opening balance
+ShowSubtotalByGroup=Show subtotal by group
Pcgtype=Group of account
PcgtypeDesc=Group of account are used as predefined 'filter' and 'grouping' criteria for some accounting reports. For example, 'INCOME' or 'EXPENSE' are used as groups for accounting accounts of products to build the expense/income report.