From ab3f19dd59571bb74f0e4a554874db7622c95d7c Mon Sep 17 00:00:00 2001 From: Sylvain Legrand Date: Wed, 8 Jun 2022 22:07:48 +0200 Subject: [PATCH] Fix error when supplier deposit are used to pay supplier invoice --- htdocs/core/class/commoninvoice.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index f6edbd3f8d4..83bc936cc8f 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -159,11 +159,6 @@ abstract class CommonInvoice extends CommonObject */ public function getSumDepositsUsed($multicurrency = 0) { - if ($this->element == 'facture_fourn' || $this->element == 'invoice_supplier') { - // TODO - return 0.0; - } - require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php'; $discountstatic = new DiscountAbsolute($this->db);