From ba08148ffa8a15747783f111f2f7dd2355ec7eae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Jul 2024 01:38:02 +0200 Subject: [PATCH] Clean code --- htdocs/core/modules/facture/doc/pdf_sponge.modules.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 8266bed4ea3..9ad18c3ab53 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -1082,8 +1082,6 @@ class pdf_sponge extends ModelePDFFactures */ public function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs) { - global $conf; - $sign = 1; if ($object->type == 2 && getDolGlobalString('INVOICE_POSITIVE_CREDIT_NOTE')) { $sign = -1; @@ -1173,7 +1171,7 @@ class pdf_sponge extends ModelePDFFactures } // Loop on each payment - // TODO Call getListOfPaymentsgetListOfPayments instead of hard coded sql + // TODO Call getListOfPayments instead of hard coded sql $sql = "SELECT p.datep as date, p.fk_paiement, p.num_paiement as num, pf.amount as amount, pf.multicurrency_amount,"; $sql .= " cp.code"; $sql .= " FROM ".MAIN_DB_PREFIX."paiement_facture as pf, ".MAIN_DB_PREFIX."paiement as p";