' . "\n";
@@ -274,24 +274,24 @@ foreach ( $object->lines as $line ) {
// Permet d'afficher le compte comptable
if (length_accountg($line->numero_compte) != $displayed_account_number) {
-
+
// Affiche un Sous-Total par compte comptable
if ($displayed_account_number != "") {
print '
| '.$langs->trans("SubTotal").': | '.price($sous_total_debit).' | '.price($sous_total_credit).' | ';
print " | \n";
print '
';
}
-
+
// Affiche le compte comptable en début de ligne
print "
";
print '| '.length_accountg($line->numero_compte) . ' : ' . $object->get_compte_desc($line->numero_compte).' | ';
print '
';
-
+
$displayed_account_number = length_accountg($line->numero_compte);
$sous_total_debit = 0;
$sous_total_credit = 0;
}
-
+
print '
';
print '| | ';
print '' . dol_print_date($line->doc_date, 'day') . ' | ';
@@ -299,14 +299,14 @@ foreach ( $object->lines as $line ) {
// Affiche un lien vers la facture client/fournisseur
$doc_ref = preg_replace('/\(.*\)/', '', $line->doc_ref);
- if ($line->doc_type == 'supplier_invoice')
+ if ($line->doc_type == 'supplier_invoice')
print strlen(length_accounta($line->code_tiers)) == 0 ? '' . $line->label_compte . ' | ' : '' . $line->label_compte . ' (' . length_accounta($line->code_tiers) . ') | ';
elseif ($line->doc_type == 'customer_invoice')
print strlen(length_accounta($line->code_tiers)) == 0 ? '' . $line->label_compte . ' | ' : '' . $line->label_compte . ' (' . length_accounta($line->code_tiers) . ') | ';
else
print strlen(length_accounta($line->code_tiers)) == 0 ? '' . $line->label_compte . ' | ' : '' . $line->label_compte . ' (' . length_accounta($line->code_tiers) . ') | ';
-
-
+
+
print '' . price($line->debit) . ' | ';
print '' . price($line->credit) . ' | ';
print '' . $line->code_journal . ' | ';
@@ -315,11 +315,11 @@ foreach ( $object->lines as $line ) {
print '' . img_delete() . '';
print '';
print "
\n";
-
+
// Comptabilise le sous-total
$sous_total_debit += $line->debit;
$sous_total_credit += $line->credit;
-
+
}
// Affiche un Sous-Total du dernier compte comptable affiché