Billing: Treat Contract as domestic if b-address has UID starting with ATU

This commit is contained in:
Frank Schubert
2025-08-12 13:43:56 +02:00
parent 943cb328e2
commit 261895a507

View File

@@ -518,6 +518,10 @@ class BillingController extends mfBaseController {
$vatarea = "other";
}
if(substr(strtolower(preg_replace('/[^a-z0-9]/i', "", $billingaddress->uid)), 0, 3) == "atu") {
$vatarea = "domestic";
}
$data["country"] = $billcountry->name;
$data["vatrate"] = $vatgroup->rates[$vatarea]->rate;
$data["vatgroup_id"] = $contract->vatgroup_id;