Added Voicenumber to Contractqueue

This commit is contained in:
Frank Schubert
2024-08-06 21:03:58 +02:00
parent a2443cb025
commit baf2ff2c5b
8 changed files with 166 additions and 3 deletions

View File

@@ -116,6 +116,15 @@ class ContractqueueController extends mfBaseController {
}
protected function deleteOpenOrdersAction() {
foreach(ContractqueueModel::search(["contract_id" => null]) as $cq) {
$cq->delete();
}
$this->layout()->setFlash("Offene Queue Einträge gelöscht und neu importiert.", "success");
$this->redirect("Contractqueue");
}
private function importOrders() {
$o = 0;
//$max_orders = 1500;
@@ -252,6 +261,10 @@ class ContractqueueController extends mfBaseController {
continue;
}
if($cq->voicenumber) {
$contract->addVoiceFromContractqueue($cq);
}
$c++;
$cq->contract_id = $contract->id;