Fix error when supplier deposit are used to pay supplier invoice

This commit is contained in:
Sylvain Legrand 2022-06-08 22:07:48 +02:00
parent 309eccc426
commit ab3f19dd59

View File

@ -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);