This commit is contained in:
ldestailleur 2025-06-04 14:04:43 +02:00
parent 12b5f66aa8
commit ae06fde2c5

View file

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