WIP PreorderBilling 2025-03-26

This commit is contained in:
Frank Schubert
2025-03-26 14:06:23 +01:00
parent c73c2e2a86
commit e3a6d494ef
10 changed files with 195 additions and 10 deletions

View File

@@ -53,6 +53,19 @@ class Address extends mfBaseModel {
return $data;
}
public function hasPreorderBilling() {
if(!defined("TT_PREORDER_BILLING") || !is_array(TT_PREORDER_BILLING)) {
return false;
}
foreach(TT_PREORDER_BILLING as $conf) {
if(array_key_exists($this->id, $conf["netoperators"])) {
return true;
}
}
return false;
}
public function getCoords() {
$update_needed = false;
if($this->id) {