From d3602100a07ef390901ba77e28adb88e4ef42421 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 7 Jul 2025 14:23:00 +0200 Subject: [PATCH] PreorderBilling: activation_billing now also works for operator_setup --- application/PreorderBilling/PreorderBillingController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/PreorderBilling/PreorderBillingController.php b/application/PreorderBilling/PreorderBillingController.php index adeb7e264..ce4cf2b60 100644 --- a/application/PreorderBilling/PreorderBillingController.php +++ b/application/PreorderBilling/PreorderBillingController.php @@ -450,8 +450,8 @@ class PreorderBillingController extends mfBaseController { if(!$change_to_active) { $status_change_date = $status_244_change_date; } - - if($status_change_date < $earliest_bill_date) { + + if($status_change_date < $earliest_bill_date && !$preorder->activation_billing) { $this->log->debug(__METHOD__.": Not billing operator_setup for preorder ".$preorder->id." because status change date ".$status_change_date->format("Y-m-d")." is before earliest_bill_date ".$earliest_bill_date->format("Y-m-d")); return true; }