Fix min() function call in complete.cfm
Lucee's min() only takes 2 args, not 3. Use nested min() calls. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f2a186c727
commit
5e9be8c2ca
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@
|
||||||
<!--- Withholding: min($1, remaining, gross). Never negative. --->
|
<!--- Withholding: min($1, remaining, gross). Never negative. --->
|
||||||
<cfset activationWithhold = 0>
|
<cfset activationWithhold = 0>
|
||||||
<cfif remainingActivation GT 0>
|
<cfif remainingActivation GT 0>
|
||||||
<cfset activationWithhold = min(100, remainingActivation, grossCents)>
|
<cfset activationWithhold = min(100, min(remainingActivation, grossCents))>
|
||||||
</cfif>
|
</cfif>
|
||||||
<cfset netCents = grossCents - activationWithhold>
|
<cfset netCents = grossCents - activationWithhold>
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue