diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index da0a40aeaad..35fbcdd8d80 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -315,6 +315,7 @@ abstract class CommonInvoice extends CommonObject /** * Return amount of payments already done. This must include ONLY the record into the payment table. * Payments done using discounts, credit notes, etc are not included. + * This also set ->sumpayed and ->sumpayed_multicurrency * * @param int<-1,1> $multicurrency Return multicurrency_amount instead of amount. -1=Return both. * @return float|int|array{alreadypaid:float,alreadypaid_multicurrency:float} Amount of payment already done, <0 and set ->error if KO