Merge branch 'fronkdev' into 'master'

PreorderBilling: Not creating billing record when enduser_setup is zero

See merge request fronk/thetool!1872
This commit is contained in:
Frank Schubert
2025-11-06 12:04:06 +00:00

View File

@@ -398,6 +398,11 @@ class PreorderBillingController extends mfBaseController {
return true; // already billed
}
if($price->price_setup <= 0.01 && $price->price_setup >= 0.00000) {
$this->log->debug(__METHOD__.": Preorder ".$preorder->id." / ".$preorder->oaid." enduser_setup price is 0 so skipping...");
return true;
}
// search for customer
$customer_data = [
"company" => trim($preorder->company),