WIP PreorderBilling 2025-03-26
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user