WIP Contracts 2024-06-05

This commit is contained in:
Frank Schubert
2024-06-05 16:26:19 +02:00
parent 2855a45208
commit 51d2f7717a
5 changed files with 104 additions and 43 deletions

View File

@@ -30,10 +30,8 @@ class Admin_IvtContractImport {
13322 => 2623,
2034 => false,
561 => false,
11409 => 1222, // x-tec 1842
14192 => 2596,
//tourismusverband thermen- & vulkanland
11221 => 1120,
11222 => 1044,
@@ -42,22 +40,42 @@ class Admin_IvtContractImport {
11225 => 1002,
11226 => 999,
11227 => 1000,
2987 => 4126, // Atos
14890 => 3612,
14891 => 3612,
13551 => 2776, // Wolfgang Lipp
14908 => 2776,
13552 => 2055,
10550 => 230, // Anneliese Wabnegg
10551 => 230,
10995 => 1190
10995 => 1190,
12040 => 1687, // peter junior koch
12179 => 1687,
12982 => 1863, // reinhard strauss
12983 => 1863,
13188 => false, // magna
10909 => 2820, // bernd zöhrer
12101 => false,
14679 => 2820,
10041 => 3351, // walter würfel
15759 => 3351,
10483 => 1042, // joachim novak
10850 => 1042,
13216 => 1310, // theo werner koblischek
13217 => 1310,
13456 => 2060,
13746 => 3614, // manfred hartmann
13747 => 3614,
13436 => 2076, // hernuß josef gmbh
13437 => 2076,
13440 => 2077,
13441 => 2077,
14295 => 3172, // Christa Eisenberger-Strobl
15545 => 3172,
14189 => 3322, // andeßner-angleitner
16722 => 3322,
16267 => 3079, // schmuck marianne
16786 => 3079
];
}
@@ -73,7 +91,8 @@ class Admin_IvtContractImport {
$last_cid = 0;
$i = 0;
foreach(IvtCustomerProductModel::search(["lasdt_date>", "2023-04-01"], "cid") as $ivt_contract) {
foreach(IvtCustomerProductModel::search(["lastdate>", "2023-04-01"]) as $ivt_contract) {
//if($ivt_contract->cid < 104200) continue;
//if($i > 1000 && $ivt_contract->cid != $last_cid) break; // only break after the last ivtcontract of this customer
$last_cid = $ivt_contract->cid;