From 3eacb72db80610c6f99e18faf584d1c07152be25 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 22 Dec 2022 19:15:22 -0500 Subject: [PATCH] restore ability to have fractional quantity --- CRM/Price/BAO/LineItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index b153763e2a..29521089c4 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -302,7 +302,7 @@ WHERE li.contribution_id = %1"; } foreach ($params["price_{$fid}"] as $oid => $qty) { - $qty = (int) $qty; + $qty = (float) $qty; $price = (float) ($amount_override === NULL ? $options[$oid]['amount'] : $amount_override); $participantsPerField = (int) CRM_Utils_Array::value('count', $options[$oid], 0); -- 2.25.1