Preorder: Status can now be changed manually
This commit is contained in:
@@ -110,6 +110,10 @@ while($csv = fgetcsv($input, 0, ";")) {
|
||||
$strasse_name = trim($m[1]);
|
||||
}
|
||||
|
||||
if($hausnummer_extref == "25012392") {
|
||||
// Zettling 53 is 25011191, would be overwritten with this extref
|
||||
continue;
|
||||
}
|
||||
|
||||
if($strasse_name == "GST") continue;
|
||||
if(preg_match('/^L\d+/',$strasse_name) && !$adrcd) continue;
|
||||
|
||||
@@ -15,23 +15,7 @@ $me = new User(1);
|
||||
define("INTERNAL_USER_ID", $me->id);
|
||||
define("INTERNAL_USER_USERNAME", $me->username);
|
||||
|
||||
$contract = new Contract(22);
|
||||
require_once(APPDIR."Contractconfig/hooks/Contractconfig_Hook.php");
|
||||
require_once(APPDIR."Contractconfig/hooks/Voicenumberblock.php");
|
||||
|
||||
$hook = new Contractconfig_Hook_Voicenumberblock($contract);
|
||||
|
||||
if(!$hook->isResponsible()) {
|
||||
echo "is responsible: no\n";
|
||||
exit;
|
||||
} else {
|
||||
$hook->afterSave();
|
||||
}
|
||||
if($hook->errors) {
|
||||
echo "Fehler beim speichern: \n";
|
||||
foreach($hook->errors as $error) {
|
||||
echo $error."\n";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
echo "All done.\n";
|
||||
$preorder = new Preorder(5458);
|
||||
$preorder->createCifCode();
|
||||
echo $preorder->cifcode;
|
||||
echo "\n";
|
||||
Reference in New Issue
Block a user