diff --git a/src/Calc/Calc.php b/src/Calc/Calc.php
index 7077965..6bde796 100644
--- a/src/Calc/Calc.php
+++ b/src/Calc/Calc.php
@@ -46,7 +46,7 @@ class Calc
public function calc()
{
- $price = 0;
+ $gesamt = 0;
/** @var Base $option */
foreach($this->article->getOptions() as $option) {
@@ -55,24 +55,24 @@ class Calc
/** @var Select\Opt $opt */
foreach($option->getOptions() as $opt) {
if($opt->isValid() && $opt->isSelected()) {
- $price = $this->parseEdgeCollection($price, $option, $opt->getEdgesCollectionContainer());
+ $gesamt = $this->parseEdgeCollection($gesamt, $option, $opt->getEdgesCollectionContainer());
}
}
}
- $price = $this->parseEdgeCollection($price, $option, $option->getEdgesCollectionContainer());
+ $gesamt = $this->parseEdgeCollection($gesamt, $option, $option->getEdgesCollectionContainer());
}
- return $price;
+ return $gesamt;
}
/**
- * @param $price
+ * @param $gesamt
* @param Base $option
* @param EdgeCollectionContainer $container
* @return int
*/
- private function parseEdgeCollection($price, $option, EdgeCollectionContainer $container)
+ private function parseEdgeCollection($gesamt, $option, EdgeCollectionContainer $container)
{
$calcValue1 = 0;
@@ -104,11 +104,11 @@ class Calc
if($edge->isValid($var)) {
if($edge->getPauschale() != 0) {
- eval('$price += ' . $edge->getPauschale() . ';');
+ eval('$gesamt += ' . $edge->getPauschale() . ';');
}
if($edge->getPreis() != 0) {
- eval('$price += ' . ($edge->getPreis()*$var) . ';');
+ eval('$gesamt += ' . ($edge->getPreis()*$var) . ';');
}
if($edge->getCalcValue() != "") {
@@ -126,21 +126,21 @@ class Calc
eval('@$p = ' . $formel . ';');
//echo $option->getId(). ' / '.$formel . ' / '.$p.' / '.PHP_EOL.PHP_EOL;
if($p > 0 || $p < 0) {
- $price += $p;
+ $gesamt += $p;
}
- $this->engine->setVariable('price', $price);
+ $this->engine->setVariable('price', $gesamt);
}
}
if($edge->getEdgesCollectionContainer()->count() > 0) {
- $price = $this->parseEdgeCollection($price, $option, $edge->getEdgesCollectionContainer());
+ $gesamt = $this->parseEdgeCollection($gesamt, $option, $edge->getEdgesCollectionContainer());
}
}
}
}
- return $price;
+ return $gesamt;
}
private function toNumber($value)
diff --git a/src/Calc/CalcValues.php b/src/Calc/CalcValues.php
index 5088c01..9174f73 100644
--- a/src/Calc/CalcValues.php
+++ b/src/Calc/CalcValues.php
@@ -110,8 +110,8 @@ class CalcValues
if ($edge->getCalcValue() != "") {
$cv = $this->formelCalc->parse($edge->getCalcValue());
+ echo $id . ' '. $this->formelCalc->parse($edge->getCalcValue()) . ' ' . $cv . ' '. PHP_EOL.PHP_EOL;
eval('$cv = ' . $cv . ';');
- //echo $id . ' '. $this->formelCalc->parse($edge->getCalcValue()) . ' ' . $cv . ' '. PHP_EOL.PHP_EOL;
$this->engine->addCalcVariable($id, $cv);
diff --git a/tests/Customer/C/CalcTest.php b/tests/Customer/C/CalcTest.php
new file mode 100644
index 0000000..31f284a
--- /dev/null
+++ b/tests/Customer/C/CalcTest.php
@@ -0,0 +1,54 @@
+parse(simplexml_load_string(file_get_contents(__DIR__ . '/papierContainer.xml')));
+
+ $this->engine = new Engine();
+ $this->engine->setPaperContainer($paperContainer);
+ $this->engine->setPaperRepository($repository);
+ $this->engine->setFormulas(file_get_contents(__DIR__ . '/formels.txt'));
+ $this->engine->setParameters(file_get_contents(__DIR__ . '/parameters.txt'));
+ $this->engine->setTemplates(file_get_contents(__DIR__ . '/calcTemplates.xml'));
+
+ $this->engine->loadString(file_get_contents(__DIR__ . '/calc.xml'));
+
+ }
+
+ public function tearDown()
+ {
+ $this->engine = null;
+ }
+
+ public function testIfDefaultPriceIsOk()
+ {
+ $this->assertEquals(467.89 , $this->engine->getPrice());
+ }
+
+ public function testVariant1()
+ {
+ $this->engine->setVariable('seiten_umschlag', 0);
+ $this->assertEquals(356.46 , $this->engine->getPrice());
+ }
+ public function testVariant2()
+ {
+ $this->engine->setVariable('seiten_umschlag', 0);
+ $this->engine->setVariable('aufschlag', 50);
+ $this->assertEquals(406.46 , $this->engine->getPrice());
+ }
+}
\ No newline at end of file
diff --git a/tests/Customer/C/calc.xml b/tests/Customer/C/calc.xml
new file mode 100644
index 0000000..f587089
--- /dev/null
+++ b/tests/Customer/C/calc.xml
@@ -0,0 +1,797 @@
+
+
+
+ Broschüre RDH und PUR
+ kein
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/Customer/C/calcTemplates.xml b/tests/Customer/C/calcTemplates.xml
new file mode 100644
index 0000000..b3f7d62
--- /dev/null
+++ b/tests/Customer/C/calcTemplates.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/tests/Customer/C/formels.txt b/tests/Customer/C/formels.txt
new file mode 100644
index 0000000..e60686c
--- /dev/null
+++ b/tests/Customer/C/formels.txt
@@ -0,0 +1,14 @@
+//Farbkostenberechnung pro Seite auf Basis A4=100%
+$farbe_a4='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P)';
+$farbe_a5='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a5$P)';
+$farbe_a6='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a6$P)';
+$farbe_a7='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a7$P)';
+$farbe_dl='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_dl$P)';
+$farbe_210='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_210$P)';
+$farbe_148='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_148$P)';
+$farbe_a3='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a3$P)';
+$farbe_a2='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a2$P)';
+$farbe_a1='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_a1$P)';
+$farbe_3b='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_3b$P)';
+$farbe_vk2='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_vk2$P)';
+$farbe_vk4='($Vauflage$V*($Vseiten_inhalt$V+$Vseiten_umschlag$V)*$Pfarbkst$P*$Pfarbe_faktor_vk4$P)';
\ No newline at end of file
diff --git a/tests/Customer/C/papierContainer.xml b/tests/Customer/C/papierContainer.xml
new file mode 100644
index 0000000..00b632a
--- /dev/null
+++ b/tests/Customer/C/papierContainer.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/Customer/C/parameters.txt b/tests/Customer/C/parameters.txt
new file mode 100644
index 0000000..2a37bee
--- /dev/null
+++ b/tests/Customer/C/parameters.txt
@@ -0,0 +1,1112 @@
+// ########## Maincontor Broschuere #######################
+
+//Digitaldruck
+$end_abschlag=1.2;
+
+//Zuschläge Reseller pro Produkt
+$reseller_a_zuschlag_softcover_digital=1.2;
+
+//Zuschläge Maincontor
+$maincontor_zuschlag_softcover_digital=1.0;
+
+$grundpreis_digital=47.27;
+$grundpreis_softcover_digital=13.64;
+$grundpreis_hardcover_digital=42.73;
+$zuschlag_digital_4c=5.23;
+$vorstufe_digital_seitenpreis=0.1635;
+$rueckstich_digital=0.1;
+$softcover_digital=0.45;
+$hardcover_digital=3.40;
+$cello_umschlag_digital=0.3;
+$korrekturexemplar_digital=23;
+$versand_digital_gewichtseinheit=25;
+$versand_digital_pro_einheit=11.39;
+
+
+$datenpruefung=20;
+$druckplatte_a1=9;
+
+//Stundensätze Druckmaschinen
+$stundensatz_xl106=260;
+$stundensatz_cx102=150;
+
+//Speed Druckmaschinen in Bogen/h
+//8-Farben XL 106
+$speed_xl106_1500_4999_bg=12000;
+$speed_xl106_gemittelt=13500;
+$speed_xl106_ab_5000_bg=16000;
+
+//5-Farben CX 102
+$speed_cx102_1_999_bg=10000;
+$speed_cx102_ab_1000_bg=14000;
+
+//Rüstzeit pro Platte in Minuten
+$ruestzeit_pro_platte_xl106=4;
+$ruestzeit_pro_platte_cx102=6;
+
+//Farbkosten pro Seite A4
+$farbkst=0.000800;
+
+//Formatfaktor auf Basis A4=100% für Farbkostenberechnung
+$farbe_faktor_a5=0.5;
+$farbe_faktor_a6=0.25;
+$farbe_faktor_a7=0.125;
+$farbe_faktor_dl=0.3;
+$farbe_faktor_210=0.67;
+$farbe_faktor_148=0.4;
+$farbe_faktor_a3=2;
+$farbe_faktor_a2=4;
+$farbe_faktor_a1=8;
+$farbe_faktor_3b=10;
+$farbe_faktor_vk2=0.1;
+$farbe_faktor_vk4=0.2;
+
+//Papierzuschuss 8-Farben Maschine
+$zuschuss_h8_1000_4999=500;
+$zuschuss_h8_5000_9999=650;
+$zuschuss_h8_10000_14999=880;
+$zuschuss_h8_15000_19999=1100;
+$zuschuss_h8_20000_29999=1240;
+$zuschuss_h8_ab_30000=1420;
+
+//Papierzuschuss 5-Farben Maschine
+$zuschuss_h5_1000_4999=400;
+$zuschuss_h5_5000_9999=500;
+$zuschuss_h5_10000_14999=680;
+$zuschuss_h5_15000_19999=870;
+$zuschuss_h5_20000_29999=990;
+$zuschuss_h5_ab_30000=1100;
+
+$papierbreite_a1=880;
+$papierhoehe_a1=630;
+
+$papierbreite_a1_dl=900;
+$papierhoehe_a1_dl=640;
+
+$papierbreite_a1_umschlag=1000;
+$papierhoehe_a1_umschlag=700;
+
+//Mehrkosten 5. Farbe Umschlag
+$sonderfarbe_umschlag_2000_4999=90;
+$sonderfarbe_umschlag_5000_9999=130;
+$sonderfarbe_umschlag_ab_10000=130;
+
+//Veredelung Fixkosten
+$mattfolie_fix=20;
+$glanzfolie_fix=20;
+$softtouchfolie_fix=20;
+$uvlack_fix=40;
+$uvspotlack_fix=100;
+
+//Veredelung var. Kosten
+$mattfolie_var=0.20;
+$glanzfolie_var=0.14;
+$softtouchfolie_var=0.55;
+$uvlack_var_2000_4999=0.07;
+$uvlack_var_ab_5000=0.06;
+$uvspotlack_var_2000_4999=0.13;
+$uvspotlack_var_5000_9999=0.10;
+$uvspotlack_var_ab_10000=0.06;
+
+//Papier schneiden
+$hubhoehe=150;
+$stundensatz_schneiden=30;
+
+//Zeit Schneiden Fix in Minuten
+$zeit_fix_schneiden=5;
+
+//Zeit pro Schnitt in Sekunden
+$zeit_pro_schnitt=2;
+
+//Falzen
+$stundensatz_falzen=30;
+//in Minuten
+$ruesten_pro_falz=4;
+//in Minuten
+$ruesten_falzen_fix=20;
+$falzen_speed_bis_100g=6000;
+$falzen_speed_ab_101g=5000;
+
+//Sammelhefter
+$stundensatz_sammelhefter=42;
+//in Minuten
+$ruesten_pro_station=3;
+//in Minuten
+$ruesten_sammelhefter_fix=15;
+$sammelhefter_speed=7000;
+
+//Klebebinder
+$stundensatz_klebebinder=265;
+//in Minuten
+$ruesten_pro_station_klebebinder=2;
+//in Minuten
+$ruesten_klebebinder_fix=20;
+$klebebinder_speed_1_6_stationen=6000;
+$klebebinder_speed_7_15_stationen=5000;
+$klebebinder_speed_ab_16_stationen=4000;
+
+// ########## Maincontor Taschenbuch #######################
+
+//Zuschläge Reseller pro Produkt
+$reseller_a_zuschlag_taschenbuch=1.2;
+
+//Zuschläge Maincontor
+$maincontor_zuschlag_taschenbuch=1.0;
+
+//Basisauflage
+$basisauflage_taschenbuch=1000;
+
+//Veredelung Umschlag
+$mattolie_stueck=0.011;
+$mattolie_start=16.5;
+
+$glossyfolie_stueck=0.009;
+$glossyfolie_start=13.5;
+
+$softtouchfolie_stueck=0.019;
+$softtouchfolie_start=28.5;
+
+$mattspot_uv_stueck=0.003;
+$mattspot_uv_start=4.5;
+
+$drucklack_stueck=0.009;
+$drucklack_start=38;
+
+//Partieller Lack Umschlag
+$spot_uv_stueck=0.011;
+$spot_uv_start=182;
+$relief_spot_uv_stueck=0.016;
+$relief_spot_uv_start=206;
+
+//Umschlagklappen
+$klappen_stueck=0.121;
+$klappen_start=245;
+
+ //Umschlag Papierzuschlag
+$u235_g_umschlag_stueck=0.009;
+$u235_g_umschlag_start=37;
+$u280_g_umschlag_stueck=0.038;
+$u280_g_umschlag_start=153;
+
+// Umschlag Farbigkeit
+$umschlag_4_1_stueck=0.009;
+$umschlag_4_1_start=38;
+
+$umschlag_4_4_stueck=0.011;
+$umschlag_4_4_start=107;
+
+$umschlag_5_0_stueck=0.011;
+$umschlag_5_0_start=167;
+
+$umschlag_5_1_stueck=0.02; // 0,009 + 0,011
+$umschlag_5_1_start=176; // 151 + 25
+
+$umschlag_5_4_stueck=0.022; // 0,011 + 0,011
+$umschlag_5_4_start=242; // 151 + 91
+
+// Umschlag Prägung
+$blindpraegung_stueck=0.024;
+$blindpraegung_start=456;
+$folienpraegung_stueck=0.036;
+$folienpraegung_start=376;
+
+//Verpackung in Folie
+$einzeln_in_Folie_stueck=0.090;
+$einzeln_in_Folie_start=192;
+$folienverpackung_5_buecher_stueck=0.055; // sind das Preise pro Paket?
+$folienverpackung_5_buecher_start=112;
+$folienverpackung_10_buecher_stueck=0.068; // sind das Preise pro Paket?
+$folienverpackung_10_buecher_start=130;
+$folienverpackung_20_buecher_stueck=0.092; // sind das Preise pro Paket?
+$folienverpackung_20_buecher_start=168;
+
+//Musterversand
+$musterversand_5_bis_10_buecher=53;
+
+// einfarbig; Formatklasse 1; Startpreis
+$startpreis_format1_52g_80=939;
+$startpreis_format1_52g_96=936;
+$startpreis_format1_52g_112=1048;
+$startpreis_format1_52g_128=945;
+$startpreis_format1_52g_144=1062;
+$startpreis_format1_52g_160=1054;
+$startpreis_format1_52g_176=1192;
+$startpreis_format1_52g_192=1074;
+$startpreis_format1_52g_208=1201;
+$startpreis_format1_52g_224=1198;
+$startpreis_format1_52g_240=1310;
+$startpreis_format1_52g_256=1203;
+$startpreis_format1_52g_272=1320;
+$startpreis_format1_52g_288=1312;
+$startpreis_format1_52g_304=1429;
+$startpreis_format1_52g_320=1321;
+$startpreis_format1_52g_336=1438;
+$startpreis_format1_52g_352=1453;
+$startpreis_format1_52g_368=1575;
+$startpreis_format1_52g_384=1462;
+$startpreis_format1_52g_400=1578;
+$startpreis_format1_52g_416=1575;
+$startpreis_format1_52g_432=1696;
+$startpreis_format1_52g_448=1548;
+$startpreis_format1_52g_464=1701;
+$startpreis_format1_52g_480=1693;
+$startpreis_format1_52g_496=1814;
+$startpreis_format1_52g_512=1707;
+$startpreis_format1_52g_528=1828;
+$startpreis_format1_52g_544=1841;
+$startpreis_format1_52g_560=1958;
+$startpreis_format1_52g_576=1855;
+$startpreis_format1_52g_592=1967;
+$startpreis_format1_52g_608=1964;
+$startpreis_format1_52g_624=2076;
+$startpreis_format1_52g_640=1969;
+
+$startpreis_format1_70g_80=1005;
+$startpreis_format1_70g_96=1007;
+$startpreis_format1_70g_112=1139;
+$startpreis_format1_70g_128=1027;
+$startpreis_format1_70g_144=1174;
+$startpreis_format1_70g_160=1171;
+$startpreis_format1_70g_176=1318;
+$startpreis_format1_70g_192=1195;
+$startpreis_format1_70g_208=1338;
+$startpreis_format1_70g_224=1335;
+$startpreis_format1_70g_240=1472;
+$startpreis_format1_70g_256=1355;
+$startpreis_format1_70g_272=1487;
+$startpreis_format1_70g_288=1489;
+$startpreis_format1_70g_304=1639;
+$startpreis_format1_70g_320=1531;
+$startpreis_format1_70g_336=1663;
+$startpreis_format1_70g_352=1661;
+$startpreis_format1_70g_368=1801;
+$startpreis_format1_70g_384=1680;
+$startpreis_format1_70g_400=1816;
+$startpreis_format1_70g_416=1818;
+$startpreis_format1_70g_432=1950;
+$startpreis_format1_70g_448=1863;
+$startpreis_format1_70g_464=1995;
+$startpreis_format1_70g_480=1997;
+$startpreis_format1_70g_496=2129;
+$startpreis_format1_70g_512=2012;
+$startpreis_format1_70g_528=2153;
+$startpreis_format1_70g_544=2151;
+$startpreis_format1_70g_560=2283;
+$startpreis_format1_70g_576=2170;
+$startpreis_format1_70g_592=2302;
+$startpreis_format1_70g_608=2325;
+$startpreis_format1_70g_624=2457;
+$startpreis_format1_70g_640=2345;
+
+$startpreis_format1_80g_80=1123;
+$startpreis_format1_80g_96=1132;
+$startpreis_format1_80g_112=1267;
+$startpreis_format1_80g_128=1167;
+$startpreis_format1_80g_144=1307;
+$startpreis_format1_80g_160=1307;
+$startpreis_format1_80g_176=1462;
+$startpreis_format1_80g_192=1332;
+$startpreis_format1_80g_208=1487;
+$startpreis_format1_80g_224=1487;
+$startpreis_format1_80g_240=1631;
+$startpreis_format1_80g_256=1534;
+$startpreis_format1_80g_272=1674;
+$startpreis_format1_80g_288=1678;
+$startpreis_format1_80g_304=1818;
+$startpreis_format1_80g_320=1703;
+$startpreis_format1_80g_336=1843;
+$startpreis_format1_80g_352=1843;
+$startpreis_format1_80g_368=1991;
+$startpreis_format1_80g_384=1868;
+$startpreis_format1_80g_400=2041;
+$startpreis_format1_80g_416=2041;
+$startpreis_format1_80g_432=2181;
+$startpreis_format1_80g_448=2066;
+$startpreis_format1_80g_464=2206;
+$startpreis_format1_80g_480=2210;
+$startpreis_format1_80g_496=2354;
+$startpreis_format1_80g_512=2235;
+$startpreis_format1_80g_528=2400;
+$startpreis_format1_80g_544=2409;
+$startpreis_format1_80g_560=2544;
+$startpreis_format1_80g_576=2429;
+$startpreis_format1_80g_592=2569;
+$startpreis_format1_80g_608=2569;
+$startpreis_format1_80g_624=2713;
+$startpreis_format1_80g_640=2594;
+
+// einfarbig; Formatklasse 2; Startpreis
+
+$startpreis_format2_52g_80=1010;
+$startpreis_format2_52g_96=998;
+$startpreis_format2_52g_112=1132;
+$startpreis_format2_52g_128=1011;
+$startpreis_format2_52g_144=1155;
+$startpreis_format2_52g_160=1148;
+$startpreis_format2_52g_176=1288;
+$startpreis_format2_52g_192=1156;
+$startpreis_format2_52g_208=1300;
+$startpreis_format2_52g_224=1289;
+$startpreis_format2_52g_240=1418;
+$startpreis_format2_52g_256=1302;
+$startpreis_format2_52g_272=1453;
+$startpreis_format2_52g_288=1442;
+$startpreis_format2_52g_304=1575;
+$startpreis_format2_52g_320=1459;
+$startpreis_format2_52g_336=1588;
+$startpreis_format2_52g_352=1572;
+$startpreis_format2_52g_368=1709;
+$startpreis_format2_52g_384=1589;
+$startpreis_format2_52g_400=1747;
+$startpreis_format2_52g_416=1736;
+$startpreis_format2_52g_432=1869;
+$startpreis_format2_52g_448=1749;
+$startpreis_format2_52g_464=1882;
+$startpreis_format2_52g_480=1866;
+$startpreis_format2_52g_496=2004;
+$startpreis_format2_52g_512=1879;
+$startpreis_format2_52g_528=2042;
+$startpreis_format2_52g_544=2026;
+$startpreis_format2_52g_560=2164;
+$startpreis_format2_52g_576=2043;
+$startpreis_format2_52g_592=2172;
+$startpreis_format2_52g_608=2161;
+$startpreis_format2_52g_624=2294;
+$startpreis_format2_52g_640=2178;
+
+$startpreis_format2_70g_80=1085;
+$startpreis_format2_70g_96=1084;
+$startpreis_format2_70g_112=1234;
+$startpreis_format2_70g_128=1119;
+$startpreis_format2_70g_144=1269;
+$startpreis_format2_70g_160=1264;
+$startpreis_format2_70g_176=1424;
+$startpreis_format2_70g_192=1289;
+$startpreis_format2_70g_208=1449;
+$startpreis_format2_70g_224=1466;
+$startpreis_format2_70g_240=1616;
+$startpreis_format2_70g_256=1491;
+$startpreis_format2_70g_272=1645;
+$startpreis_format2_70g_288=1635;
+$startpreis_format2_70g_304=1785;
+$startpreis_format2_70g_320=1660;
+$startpreis_format2_70g_336=1835;
+$startpreis_format2_70g_352=1830;
+$startpreis_format2_70g_368=1983;
+$startpreis_format2_70g_384=1855;
+$startpreis_format2_70g_400=2008;
+$startpreis_format2_70g_416=2003;
+$startpreis_format2_70g_432=2157;
+$startpreis_format2_70g_448=2053;
+$startpreis_format2_70g_464=2207;
+$startpreis_format2_70g_480=2197;
+$startpreis_format2_70g_496=2351;
+$startpreis_format2_70g_512=2222;
+$startpreis_format2_70g_528=2376;
+$startpreis_format2_70g_544=2371;
+$startpreis_format2_70g_560=2525;
+$startpreis_format2_70g_576=2414;
+$startpreis_format2_70g_592=2563;
+$startpreis_format2_70g_608=2558;
+$startpreis_format2_70g_624=2712;
+$startpreis_format2_70g_640=2583;
+
+$startpreis_format2_80g_80=1122;
+$startpreis_format2_80g_96=1119;
+$startpreis_format2_80g_112=1291;
+$startpreis_format2_80g_128=1159;
+$startpreis_format2_80g_144=1321;
+$startpreis_format2_80g_160=1318;
+$startpreis_format2_80g_176=1486;
+$startpreis_format2_80g_192=1343;
+$startpreis_format2_80g_208=1534;
+$startpreis_format2_80g_224=1531;
+$startpreis_format2_80g_240=1688;
+$startpreis_format2_80g_256=1561;
+$startpreis_format2_80g_272=1718;
+$startpreis_format2_80g_288=1715;
+$startpreis_format2_80g_304=1902;
+$startpreis_format2_80g_320=1770;
+$startpreis_format2_80g_336=1927;
+$startpreis_format2_80g_352=1929;
+$startpreis_format2_80g_368=2090;
+$startpreis_format2_80g_384=1954;
+$startpreis_format2_80g_400=2145;
+$startpreis_format2_80g_416=2138;
+$startpreis_format2_80g_432=2295;
+$startpreis_format2_80g_448=2172;
+$startpreis_format2_80g_464=2329;
+$startpreis_format2_80g_480=2322;
+$startpreis_format2_80g_496=2488;
+$startpreis_format2_80g_512=2370;
+$startpreis_format2_80g_528=2531;
+$startpreis_format2_80g_544=2528;
+$startpreis_format2_80g_560=2690;
+$startpreis_format2_80g_576=2558;
+$startpreis_format2_80g_592=2720;
+$startpreis_format2_80g_608=2741;
+$startpreis_format2_80g_624=2898;
+$startpreis_format2_80g_640=2766;
+
+// einfarbig; Formatklasse 3; Startpreis
+
+$startpreis_format3_52g_80=1317;
+$startpreis_format3_52g_96=1090;
+$startpreis_format3_52g_112=1283;
+$startpreis_format3_52g_128=1112;
+$startpreis_format3_52g_144=1275;
+$startpreis_format3_52g_160=1263;
+$startpreis_format3_52g_176=1422;
+$startpreis_format3_52g_192=1285;
+$startpreis_format3_52g_208=1444;
+$startpreis_format3_52g_224=1437;
+$startpreis_format3_52g_240=1585;
+$startpreis_format3_52g_256=1454;
+$startpreis_format3_52g_272=1602;
+$startpreis_format3_52g_288=1595;
+$startpreis_format3_52g_304=1761;
+$startpreis_format3_52g_320=1635;
+$startpreis_format3_52g_336=1783;
+$startpreis_format3_52g_352=1776;
+$startpreis_format3_52g_368=1927;
+$startpreis_format3_52g_384=1798;
+$startpreis_format3_52g_400=1949;
+$startpreis_format3_52g_416=1938;
+$startpreis_format3_52g_432=2086;
+$startpreis_format3_52g_448=1985;
+$startpreis_format3_52g_464=2133;
+$startpreis_format3_52g_480=2121;
+$startpreis_format3_52g_496=2274;
+$startpreis_format3_52g_512=2143;
+$startpreis_format3_52g_528=2295;
+$startpreis_format3_52g_544=2284;
+$startpreis_format3_52g_560=2432;
+$startpreis_format3_52g_576=2310;
+$startpreis_format3_52g_592=2454;
+$startpreis_format3_52g_608=2472;
+$startpreis_format3_52g_624=2620;
+$startpreis_format3_52g_640=2494;
+
+$startpreis_format3_70g_80=1166;
+$startpreis_format3_70g_96=1159;
+$startpreis_format3_70g_112=1337;
+$startpreis_format3_70g_128=1206;
+$startpreis_format3_70g_144=1364;
+$startpreis_format3_70g_160=1362;
+$startpreis_format3_70g_176=1535;
+$startpreis_format3_70g_192=1304;
+$startpreis_format3_70g_208=1567;
+$startpreis_format3_70g_224=1583;
+$startpreis_format3_70g_240=1746;
+$startpreis_format3_70g_256=1615;
+$startpreis_format3_70g_272=1777;
+$startpreis_format3_70g_288=1771;
+$startpreis_format3_70g_304=1938;
+$startpreis_format3_70g_320=1807;
+$startpreis_format3_70g_336=1991;
+$startpreis_format3_70g_352=1984;
+$startpreis_format3_70g_368=2155;
+$startpreis_format3_70g_384=2020;
+$startpreis_format3_70g_400=2187;
+$startpreis_format3_70g_416=2180;
+$startpreis_format3_70g_432=2343;
+$startpreis_format3_70g_448=2237;
+$startpreis_format3_70g_464=2400;
+$startpreis_format3_70g_480=2393;
+$startpreis_format3_70g_496=2560;
+$startpreis_format3_70g_512=2425;
+$startpreis_format3_70g_528=2592;
+$startpreis_format3_70g_544=2590;
+$startpreis_format3_70g_560=2753;
+$startpreis_format3_70g_576=2635;
+$startpreis_format3_70g_592=2798;
+$startpreis_format3_70g_608=2791;
+$startpreis_format3_70g_624=2954;
+$startpreis_format3_70g_640=2823;
+
+$startpreis_format3_80g_80=1200;
+$startpreis_format3_80g_96=1216;
+$startpreis_format3_80g_112=1382;
+$startpreis_format3_80g_128=1249;
+$startpreis_format3_80g_144=1420;
+$startpreis_format3_80g_160=1416;
+$startpreis_format3_80g_176=1602;
+$startpreis_format3_80g_192=1476;
+$startpreis_format3_80g_208=1657;
+$startpreis_format3_80g_224=1658;
+$startpreis_format3_80g_240=1829;
+$startpreis_format3_80g_256=1695;
+$startpreis_format3_80g_272=1866;
+$startpreis_format3_80g_288=1867;
+$startpreis_format3_80g_304=2063;
+$startpreis_format3_80g_320=1925;
+$startpreis_format3_80g_336=2096;
+$startpreis_format3_80g_352=2097;
+$startpreis_format3_80g_368=2271;
+$startpreis_format3_80g_384=2134;
+$startpreis_format3_80g_400=2334;
+$startpreis_format3_80g_416=2330;
+$startpreis_format3_80g_432=2501;
+$startpreis_format3_80g_448=2372;
+$startpreis_format3_80g_464=2543;
+$startpreis_format3_80g_480=2539;
+$startpreis_format3_80g_496=2732;
+$startpreis_format3_80g_512=2590;
+$startpreis_format3_80g_528=2765;
+$startpreis_format3_80g_544=2766;
+$startpreis_format3_80g_560=2941;
+$startpreis_format3_80g_576=2803;
+$startpreis_format3_80g_592=2974;
+$startpreis_format3_80g_608=2994;
+$startpreis_format3_80g_624=3165;
+$startpreis_format3_80g_640=3032;
+
+// einfarbig; Formatklasse 1; Stückpreis
+
+$stueckpreis_format1_52g_80=0.159;
+$stueckpreis_format1_52g_96=0.171;
+$stueckpreis_format1_52g_112=0.183;
+$stueckpreis_format1_52g_128=0.195;
+$stueckpreis_format1_52g_144=0.207;
+$stueckpreis_format1_52g_160=0.219;
+$stueckpreis_format1_52g_176=0.242;
+$stueckpreis_format1_52g_192=0.244;
+$stueckpreis_format1_52g_208=0.266;
+$stueckpreis_format1_52g_224=0.278;
+$stueckpreis_format1_52g_240=0.29;
+$stueckpreis_format1_52g_256=0.303;
+$stueckpreis_format1_52g_272=0.315;
+$stueckpreis_format1_52g_288=0.327;
+$stueckpreis_format1_52g_304=0.339;
+$stueckpreis_format1_52g_320=0.351;
+$stueckpreis_format1_52g_336=0.363;
+$stueckpreis_format1_52g_352=0.383;
+$stueckpreis_format1_52g_368=0.398;
+$stueckpreis_format1_52g_384=0.407;
+$stueckpreis_format1_52g_400=0.423;
+$stueckpreis_format1_52g_416=0.435;
+$stueckpreis_format1_52g_432=0.446;
+$stueckpreis_format1_52g_448=0.459;
+$stueckpreis_format1_52g_464=0.471;
+$stueckpreis_format1_52g_480=0.483;
+$stueckpreis_format1_52g_496=0.499;
+$stueckpreis_format1_52g_512=0.507;
+$stueckpreis_format1_52g_528=0.523;
+$stueckpreis_format1_52g_544=0.546;
+$stueckpreis_format1_52g_560=0.558;
+$stueckpreis_format1_52g_576=0.57;
+$stueckpreis_format1_52g_592=0.582;
+$stueckpreis_format1_52g_608=0.594;
+$stueckpreis_format1_52g_624=0.606;
+$stueckpreis_format1_52g_640=0.619;
+
+$stueckpreis_format1_70g_80=0.185;
+$stueckpreis_format1_70g_96=0.202;
+$stueckpreis_format1_70g_112=0.219;
+$stueckpreis_format1_70g_128=0.237;
+$stueckpreis_format1_70g_144=0.254;
+$stueckpreis_format1_70g_160=0.271;
+$stueckpreis_format1_70g_176=0.298;
+$stueckpreis_format1_70g_192=0.305;
+$stueckpreis_format1_70g_208=0.333;
+$stueckpreis_format1_70g_224=0.35;
+$stueckpreis_format1_70g_240=0.367;
+$stueckpreis_format1_70g_256=0.385;
+$stueckpreis_format1_70g_272=0.402;
+$stueckpreis_format1_70g_288=0.419;
+$stueckpreis_format1_70g_304=0.444;
+$stueckpreis_format1_70g_320=0.461;
+$stueckpreis_format1_70g_336=0.478;
+$stueckpreis_format1_70g_352=0.496;
+$stueckpreis_format1_70g_368=0.516;
+$stueckpreis_format1_70g_384=0.53;
+$stueckpreis_format1_70g_400=0.551;
+$stueckpreis_format1_70g_416=0.568;
+$stueckpreis_format1_70g_432=0.585;
+$stueckpreis_format1_70g_448=0.613;
+$stueckpreis_format1_70g_464=0.63;
+$stueckpreis_format1_70g_480=0.647;
+$stueckpreis_format1_70g_496=0.669;
+$stueckpreis_format1_70g_512=0.682;
+$stueckpreis_format1_70g_528=0.703;
+$stueckpreis_format1_70g_544=0.721;
+$stueckpreis_format1_70g_560=0.738;
+$stueckpreis_format1_70g_576=0.755;
+$stueckpreis_format1_70g_592=0.772;
+$stueckpreis_format1_70g_608=0.8;
+$stueckpreis_format1_70g_624=0.817;
+$stueckpreis_format1_70g_640=0.835;
+
+$stueckpreis_format1_80g_80=0.198;
+$stueckpreis_format1_80g_96=0.217;
+$stueckpreis_format1_80g_112=0.237;
+$stueckpreis_format1_80g_128=0.257;
+$stueckpreis_format1_80g_144=0.277;
+$stueckpreis_format1_80g_160=0.297;
+$stueckpreis_format1_80g_176=0.327;
+$stueckpreis_format1_80g_192=0.337;
+$stueckpreis_format1_80g_208=0.367;
+$stueckpreis_format1_80g_224=0.387;
+$stueckpreis_format1_80g_240=0.406;
+$stueckpreis_format1_80g_256=0.434;
+$stueckpreis_format1_80g_272=0.454;
+$stueckpreis_format1_80g_288=0.473;
+$stueckpreis_format1_80g_304=0.493;
+$stueckpreis_format1_80g_320=0.513;
+$stueckpreis_format1_80g_336=0.533;
+$stueckpreis_format1_80g_352=0.553;
+$stueckpreis_format1_80g_368=0.576;
+$stueckpreis_format1_80g_384=0.593;
+$stueckpreis_format1_80g_400=0.626;
+$stueckpreis_format1_80g_416=0.646;
+$stueckpreis_format1_80g_432=0.666;
+$stueckpreis_format1_80g_448=0.686;
+$stueckpreis_format1_80g_464=0.706;
+$stueckpreis_format1_80g_480=0.725;
+$stueckpreis_format1_80g_496=0.749;
+$stueckpreis_format1_80g_512=0.765;
+$stueckpreis_format1_80g_528=0.8;
+$stueckpreis_format1_80g_544=0.819;
+$stueckpreis_format1_80g_560=0.839;
+$stueckpreis_format1_80g_576=0.859;
+$stueckpreis_format1_80g_592=0.879;
+$stueckpreis_format1_80g_608=0.899;
+$stueckpreis_format1_80g_624=0.918;
+$stueckpreis_format1_80g_640=0.939;
+
+// einfarbig; Formatklasse 2; Stückpreis
+
+$stueckpreis_format2_52g_80=0.175;
+$stueckpreis_format2_52g_96=0.188;
+$stueckpreis_format2_52g_112=0.202;
+$stueckpreis_format2_52g_128=0.216;
+$stueckpreis_format2_52g_144=0.23;
+$stueckpreis_format2_52g_160=0.243;
+$stueckpreis_format2_52g_176=0.268;
+$stueckpreis_format2_52g_192=0.271;
+$stueckpreis_format2_52g_208=0.295;
+$stueckpreis_format2_52g_224=0.309;
+$stueckpreis_format2_52g_240=0.323;
+$stueckpreis_format2_52g_256=0.337;
+$stueckpreis_format2_52g_272=0.358;
+$stueckpreis_format2_52g_288=0.372;
+$stueckpreis_format2_52g_304=0.385;
+$stueckpreis_format2_52g_320=0.399;
+$stueckpreis_format2_52g_336=0.413;
+$stueckpreis_format2_52g_352=0.427;
+$stueckpreis_format2_52g_368=0.444;
+$stueckpreis_format2_52g_384=0.454;
+$stueckpreis_format2_52g_400=0.482;
+$stueckpreis_format2_52g_416=0.496;
+$stueckpreis_format2_52g_432=0.509;
+$stueckpreis_format2_52g_448=0.524;
+$stueckpreis_format2_52g_464=0.537;
+$stueckpreis_format2_52g_480=0.551;
+$stueckpreis_format2_52g_496=0.569;
+$stueckpreis_format2_52g_512=0.579;
+$stueckpreis_format2_52g_528=0.607;
+$stueckpreis_format2_52g_544=0.621;
+$stueckpreis_format2_52g_560=0.634;
+$stueckpreis_format2_52g_576=0.648;
+$stueckpreis_format2_52g_592=0.662;
+$stueckpreis_format2_52g_608=0.676;
+$stueckpreis_format2_52g_624=0.689;
+$stueckpreis_format2_52g_640=0.703;
+
+$stueckpreis_format2_70g_80=0.205;
+$stueckpreis_format2_70g_96=0.224;
+$stueckpreis_format2_70g_112=0.244;
+$stueckpreis_format2_70g_128=0.264;
+$stueckpreis_format2_70g_144=0.284;
+$stueckpreis_format2_70g_160=0.304;
+$stueckpreis_format2_70g_176=0.334;
+$stueckpreis_format2_70g_192=0.344;
+$stueckpreis_format2_70g_208=0.374;
+$stueckpreis_format2_70g_224=0.401;
+$stueckpreis_format2_70g_240=0.421;
+$stueckpreis_format2_70g_256=0.441;
+$stueckpreis_format2_70g_272=0.46;
+$stueckpreis_format2_70g_288=0.48;
+$stueckpreis_format2_70g_304=0.5;
+$stueckpreis_format2_70g_320=0.52;
+$stueckpreis_format2_70g_336=0.55;
+$stueckpreis_format2_70g_352=0.57;
+$stueckpreis_format2_70g_368=0.593;
+$stueckpreis_format2_70g_384=0.61;
+$stueckpreis_format2_70g_400=0.633;
+$stueckpreis_format2_70g_416=0.653;
+$stueckpreis_format2_70g_432=0.672;
+$stueckpreis_format2_70g_448=0.703;
+$stueckpreis_format2_70g_464=0.722;
+$stueckpreis_format2_70g_480=0.742;
+$stueckpreis_format2_70g_496=0.766;
+$stueckpreis_format2_70g_512=0.782;
+$stueckpreis_format2_70g_528=0.806;
+$stueckpreis_format2_70g_544=0.826;
+$stueckpreis_format2_70g_560=0.845;
+$stueckpreis_format2_70g_576=0.869;
+$stueckpreis_format2_70g_592=0.888;
+$stueckpreis_format2_70g_608=0.908;
+$stueckpreis_format2_70g_624=0.927;
+$stueckpreis_format2_70g_640=0.948;
+
+$stueckpreis_format2_80g_80=0.217;
+$stueckpreis_format2_80g_96=0.239;
+$stueckpreis_format2_80g_112=0.261;
+$stueckpreis_format2_80g_128=0.284;
+$stueckpreis_format2_80g_144=0.306;
+$stueckpreis_format2_80g_160=0.328;
+$stueckpreis_format2_80g_176=0.361;
+$stueckpreis_format2_80g_192=0.373;
+$stueckpreis_format2_80g_208=0.414;
+$stueckpreis_format2_80g_224=0.436;
+$stueckpreis_format2_80g_240=0.458;
+$stueckpreis_format2_80g_256=0.481;
+$stueckpreis_format2_80g_272=0.503;
+$stueckpreis_format2_80g_288=0.525;
+$stueckpreis_format2_80g_304=0.557;
+$stueckpreis_format2_80g_320=0.58;
+$stueckpreis_format2_80g_336=0.602;
+$stueckpreis_format2_80g_352=0.624;
+$stueckpreis_format2_80g_368=0.65;
+$stueckpreis_format2_80g_384=0.669;
+$stueckpreis_format2_80g_400=0.705;
+$stueckpreis_format2_80g_416=0.728;
+$stueckpreis_format2_80g_432=0.75;
+$stueckpreis_format2_80g_448=0.772;
+$stueckpreis_format2_80g_464=0.794;
+$stueckpreis_format2_80g_480=0.817;
+$stueckpreis_format2_80g_496=0.843;
+$stueckpreis_format2_80g_512=0.865;
+$stueckpreis_format2_80g_528=0.891;
+$stueckpreis_format2_80g_544=0.913;
+$stueckpreis_format2_80g_560=0.935;
+$stueckpreis_format2_80g_576=0.958;
+$stueckpreis_format2_80g_592=0.98;
+$stueckpreis_format2_80g_608=1.011;
+$stueckpreis_format2_80g_624=1.033;
+$stueckpreis_format2_80g_640=1.056;
+
+// einfarbig; Formatklasse 3; Stückpreis
+
+$stueckpreis_format3_52g_80=0.237;
+$stueckpreis_format3_52g_96=0.225;
+$stueckpreis_format3_52g_112=0.243;
+$stueckpreis_format3_52g_128=0.262;
+$stueckpreis_format3_52g_144=0.28;
+$stueckpreis_format3_52g_160=0.298;
+$stueckpreis_format3_52g_176=0.327;
+$stueckpreis_format3_52g_192=0.335;
+$stueckpreis_format3_52g_208=0.364;
+$stueckpreis_format3_52g_224=0.382;
+$stueckpreis_format3_52g_240=0.4;
+$stueckpreis_format3_52g_256=0.419;
+$stueckpreis_format3_52g_272=0.437;
+$stueckpreis_format3_52g_288=0.455;
+$stueckpreis_format3_52g_304=0.481;
+$stueckpreis_format3_52g_320=0.5;
+$stueckpreis_format3_52g_336=0.518;
+$stueckpreis_format3_52g_352=0.536;
+$stueckpreis_format3_52g_368=0.557;
+$stueckpreis_format3_52g_384=0.573;
+$stueckpreis_format3_52g_400=0.594;
+$stueckpreis_format3_52g_416=0.613;
+$stueckpreis_format3_52g_432=0.631;
+$stueckpreis_format3_52g_448=0.66;
+$stueckpreis_format3_52g_464=0.678;
+$stueckpreis_format3_52g_480=0.696;
+$stueckpreis_format3_52g_496=0.719;
+$stueckpreis_format3_52g_512=0.733;
+$stueckpreis_format3_52g_528=0.755;
+$stueckpreis_format3_52g_544=0.774;
+$stueckpreis_format3_52g_560=0.792;
+$stueckpreis_format3_52g_576=0.81;
+$stueckpreis_format3_52g_592=0.829;
+$stueckpreis_format3_52g_608=0.857;
+$stueckpreis_format3_52g_624=0.875;
+$stueckpreis_format3_52g_640=0.894;
+
+$stueckpreis_format3_70g_80=0.231;
+$stueckpreis_format3_70g_96=0.254;
+$stueckpreis_format3_70g_112=0.277;
+$stueckpreis_format3_70g_128=0.301;
+$stueckpreis_format3_70g_144=0.324;
+$stueckpreis_format3_70g_160=0.347;
+$stueckpreis_format3_70g_176=0.38;
+$stueckpreis_format3_70g_192=0.394;
+$stueckpreis_format3_70g_208=0.427;
+$stueckpreis_format3_70g_224=0.458;
+$stueckpreis_format3_70g_240=0.481;
+$stueckpreis_format3_70g_256=0.505;
+$stueckpreis_format3_70g_272=0.527;
+$stueckpreis_format3_70g_288=0.551;
+$stueckpreis_format3_70g_304=0.573;
+$stueckpreis_format3_70g_320=0.597;
+$stueckpreis_format3_70g_336=0.631;
+$stueckpreis_format3_70g_352=0.654;
+$stueckpreis_format3_70g_368=0.68;
+$stueckpreis_format3_70g_384=0.7;
+$stueckpreis_format3_70g_400=0.727;
+$stueckpreis_format3_70g_416=0.75;
+$stueckpreis_format3_70g_432=0.773;
+$stueckpreis_format3_70g_448=0.807;
+$stueckpreis_format3_70g_464=0.83;
+$stueckpreis_format3_70g_480=0.853;
+$stueckpreis_format3_70g_496=0.88;
+$stueckpreis_format3_70g_512=0.9;
+$stueckpreis_format3_70g_528=0.927;
+$stueckpreis_format3_70g_544=0.95;
+$stueckpreis_format3_70g_560=0.973;
+$stueckpreis_format3_70g_576=1;
+$stueckpreis_format3_70g_592=1.023;
+$stueckpreis_format3_70g_608=1.046;
+$stueckpreis_format3_70g_624=1.069;
+$stueckpreis_format3_70g_640=1.093;
+
+$stueckpreis_format3_80g_80=0.245;
+$stueckpreis_format3_80g_96=0.271;
+$stueckpreis_format3_80g_112=0.297;
+$stueckpreis_format3_80g_128=0.324;
+$stueckpreis_format3_80g_144=0.35;
+$stueckpreis_format3_80g_160=0.376;
+$stueckpreis_format3_80g_176=0.412;
+$stueckpreis_format3_80g_192=0.436;
+$stueckpreis_format3_80g_208=0.472;
+$stueckpreis_format3_80g_224=0.498;
+$stueckpreis_format3_80g_240=0.524;
+$stueckpreis_format3_80g_256=0.55;
+$stueckpreis_format3_80g_272=0.576;
+$stueckpreis_format3_80g_288=0.602;
+$stueckpreis_format3_80g_304=0.638;
+$stueckpreis_format3_80g_320=0.665;
+$stueckpreis_format3_80g_336=0.691;
+$stueckpreis_format3_80g_352=0.717;
+$stueckpreis_format3_80g_368=0.746;
+$stueckpreis_format3_80g_384=0.769;
+$stueckpreis_format3_80g_400=0.809;
+$stueckpreis_format3_80g_416=0.835;
+$stueckpreis_format3_80g_432=0.861;
+$stueckpreis_format3_80g_448=0.887;
+$stueckpreis_format3_80g_464=0.913;
+$stueckpreis_format3_80g_480=0.939;
+$stueckpreis_format3_80g_496=0.972;
+$stueckpreis_format3_80g_512=0.995;
+$stueckpreis_format3_80g_528=1.025;
+$stueckpreis_format3_80g_544=1.051;
+$stueckpreis_format3_80g_560=1.076;
+$stueckpreis_format3_80g_576=1.103;
+$stueckpreis_format3_80g_592=1.129;
+$stueckpreis_format3_80g_608=1.164;
+$stueckpreis_format3_80g_624=1.19;
+$stueckpreis_format3_80g_640=1.217;
+
+
+// vierfarbig; Startpreis
+
+$startpreis_4c_60g_128=1850;
+$startpreis_4c_60g_144=2550;
+$startpreis_4c_60g_160=2465;
+$startpreis_4c_60g_176=3170;
+$startpreis_4c_60g_192=2450;
+$startpreis_4c_60g_208=3150;
+$startpreis_4c_60g_224=3065;
+$startpreis_4c_60g_240=3770;
+$startpreis_4c_60g_256=3060;
+$startpreis_4c_60g_272=3765;
+$startpreis_4c_60g_288=3680;
+$startpreis_4c_60g_304=4380;
+$startpreis_4c_60g_320=3660;
+$startpreis_4c_60g_336=4360;
+$startpreis_4c_60g_352=4275;
+$startpreis_4c_60g_368=4980;
+$startpreis_4c_60g_384=4265;
+$startpreis_4c_60g_400=4975;
+$startpreis_4c_60g_416=4890;
+$startpreis_4c_60g_432=5590;
+$startpreis_4c_60g_448=4875;
+$startpreis_4c_60g_464=5575;
+$startpreis_4c_60g_480=5490;
+$startpreis_4c_60g_496=6190;
+$startpreis_4c_60g_512=5475;
+$startpreis_4c_60g_528=6190;
+$startpreis_4c_60g_544=6100;
+$startpreis_4c_60g_560=6800;
+$startpreis_4c_60g_576=6090;
+$startpreis_4c_60g_592=6790;
+$startpreis_4c_60g_608=6705;
+$startpreis_4c_60g_624=7405;
+$startpreis_4c_60g_640=6685;
+
+$startpreis_4c_70g_128=1945;
+$startpreis_4c_70g_144=2690;
+$startpreis_4c_70g_160=2600;
+$startpreis_4c_70g_176=3350;
+$startpreis_4c_70g_192=2590;
+$startpreis_4c_70g_208=3340;
+$startpreis_4c_70g_224=3260;
+$startpreis_4c_70g_240=4005;
+$startpreis_4c_70g_256=3250;
+$startpreis_4c_70g_272=3995;
+$startpreis_4c_70g_288=3905;
+$startpreis_4c_70g_304=4655;
+$startpreis_4c_70g_320=3895;
+$startpreis_4c_70g_336=4655;
+$startpreis_4c_70g_352=4565;
+$startpreis_4c_70g_368=5315;
+$startpreis_4c_70g_384=4555;
+$startpreis_4c_70g_400=5295;
+$startpreis_4c_70g_416=5210;
+$startpreis_4c_70g_432=5960;
+$startpreis_4c_70g_448=5210;
+$startpreis_4c_70g_464=5955;
+$startpreis_4c_70g_480=5870;
+$startpreis_4c_70g_496=6615;
+$startpreis_4c_70g_512=5855;
+$startpreis_4c_70g_528=6605;
+$startpreis_4c_70g_544=6515;
+$startpreis_4c_70g_560=7260;
+$startpreis_4c_70g_576=6510;
+$startpreis_4c_70g_592=7260;
+$startpreis_4c_70g_608=7175;
+$startpreis_4c_70g_624=7920;
+$startpreis_4c_70g_640=7160;
+
+$startpreis_4c_80g_128=2035;
+$startpreis_4c_80g_144=2830;
+$startpreis_4c_80g_160=2740;
+$startpreis_4c_80g_176=3535;
+$startpreis_4c_80g_192=2740;
+$startpreis_4c_80g_208=3530;
+$startpreis_4c_80g_224=3445;
+$startpreis_4c_80g_240=4240;
+$startpreis_4c_80g_256=3430;
+$startpreis_4c_80g_272=4225;
+$startpreis_4c_80g_288=4140;
+$startpreis_4c_80g_304=4945;
+$startpreis_4c_80g_320=4135;
+$startpreis_4c_80g_336=4930;
+$startpreis_4c_80g_352=4840;
+$startpreis_4c_80g_368=5635;
+$startpreis_4c_80g_384=4830;
+$startpreis_4c_80g_400=5635;
+$startpreis_4c_80g_416=5545;
+$startpreis_4c_80g_432=6340;
+$startpreis_4c_80g_448=5530;
+$startpreis_4c_80g_464=6320;
+$startpreis_4c_80g_480=6240;
+$startpreis_4c_80g_496=7045;
+$startpreis_4c_80g_512=6235;
+$startpreis_4c_80g_528=7025;
+$startpreis_4c_80g_544=6945;
+$startpreis_4c_80g_560=7735;
+$startpreis_4c_80g_576=6925;
+$startpreis_4c_80g_592=7720;
+$startpreis_4c_80g_608=7645;
+$startpreis_4c_80g_624=8435;
+$startpreis_4c_80g_640=7630;
+
+// vierfarbig; Stückpreis
+
+$stueckpreis_4c_60g_128=0.284;
+$stueckpreis_4c_60g_144=0.305;
+$stueckpreis_4c_60g_160=0.326;
+$stueckpreis_4c_60g_176=0.357;
+$stueckpreis_4c_60g_192=0.368;
+$stueckpreis_4c_60g_208=0.4;
+$stueckpreis_4c_60g_224=0.421;
+$stueckpreis_4c_60g_240=0.441;
+$stueckpreis_4c_60g_256=0.471;
+$stueckpreis_4c_60g_272=0.491;
+$stueckpreis_4c_60g_288=0.512;
+$stueckpreis_4c_60g_304=0.533;
+$stueckpreis_4c_60g_320=0.555;
+$stueckpreis_4c_60g_336=0.576;
+$stueckpreis_4c_60g_352=0.597;
+$stueckpreis_4c_60g_368=0.621;
+$stueckpreis_4c_60g_384=0.639;
+$stueckpreis_4c_60g_400=0.674;
+$stueckpreis_4c_60g_416=0.695;
+$stueckpreis_4c_60g_432=0.716;
+$stueckpreis_4c_60g_448=0.737;
+$stueckpreis_4c_60g_464=0.758;
+$stueckpreis_4c_60g_480=0.779;
+$stueckpreis_4c_60g_496=0.804;
+$stueckpreis_4c_60g_512=0.821;
+$stueckpreis_4c_60g_528=0.857;
+$stueckpreis_4c_60g_544=0.878;
+$stueckpreis_4c_60g_560=0.899;
+$stueckpreis_4c_60g_576=0.92;
+$stueckpreis_4c_60g_592=0.941;
+$stueckpreis_4c_60g_608=0.962;
+$stueckpreis_4c_60g_624=0.983;
+$stueckpreis_4c_60g_640=1.005;
+
+$stueckpreis_4c_70g_128=0.307;
+$stueckpreis_4c_70g_144=0.331;
+$stueckpreis_4c_70g_160=0.355;
+$stueckpreis_4c_70g_176=0.389;
+$stueckpreis_4c_70g_192=0.403;
+$stueckpreis_4c_70g_208=0.437;
+$stueckpreis_4c_70g_224=0.469;
+$stueckpreis_4c_70g_240=0.493;
+$stueckpreis_4c_70g_256=0.517;
+$stueckpreis_4c_70g_272=0.541;
+$stueckpreis_4c_70g_288=0.565;
+$stueckpreis_4c_70g_304=0.588;
+$stueckpreis_4c_70g_320=0.613;
+$stueckpreis_4c_70g_336=0.647;
+$stueckpreis_4c_70g_352=0.671;
+$stueckpreis_4c_70g_368=0.698;
+$stueckpreis_4c_70g_384=0.719;
+$stueckpreis_4c_70g_400=0.747;
+$stueckpreis_4c_70g_416=0.771;
+$stueckpreis_4c_70g_432=0.794;
+$stueckpreis_4c_70g_448=0.829;
+$stueckpreis_4c_70g_464=0.853;
+$stueckpreis_4c_70g_480=0.877;
+$stueckpreis_4c_70g_496=0.905;
+$stueckpreis_4c_70g_512=0.925;
+$stueckpreis_4c_70g_528=0.953;
+$stueckpreis_4c_70g_544=0.977;
+$stueckpreis_4c_70g_560=1.001;
+$stueckpreis_4c_70g_576=1.029;
+$stueckpreis_4c_70g_592=1.052;
+$stueckpreis_4c_70g_608=1.076;
+$stueckpreis_4c_70g_624=1.1;
+$stueckpreis_4c_70g_640=1.124;
+
+$stueckpreis_4c_80g_128=0.331;
+$stueckpreis_4c_80g_144=0.357;
+$stueckpreis_4c_80g_160=0.384;
+$stueckpreis_4c_80g_176=0.421;
+$stueckpreis_4c_80g_192=0.446;
+$stueckpreis_4c_80g_208=0.483;
+$stueckpreis_4c_80g_224=0.51;
+$stueckpreis_4c_80g_240=0.536;
+$stueckpreis_4c_80g_256=0.564;
+$stueckpreis_4c_80g_272=0.59;
+$stueckpreis_4c_80g_288=0.617;
+$stueckpreis_4c_80g_304=0.654;
+$stueckpreis_4c_80g_320=0.682;
+$stueckpreis_4c_80g_336=0.708;
+$stueckpreis_4c_80g_352=0.735;
+$stueckpreis_4c_80g_368=0.765;
+$stueckpreis_4c_80g_384=0.789;
+$stueckpreis_4c_80g_400=0.83;
+$stueckpreis_4c_80g_416=0.857;
+$stueckpreis_4c_80g_432=0.883;
+$stueckpreis_4c_80g_448=0.911;
+$stueckpreis_4c_80g_464=0.938;
+$stueckpreis_4c_80g_480=0.964;
+$stueckpreis_4c_80g_496=0.998;
+$stueckpreis_4c_80g_512=1.022;
+$stueckpreis_4c_80g_528=1.053;
+$stueckpreis_4c_80g_544=1.079;
+$stueckpreis_4c_80g_560=1.106;
+$stueckpreis_4c_80g_576=1.134;
+$stueckpreis_4c_80g_592=1.16;
+$stueckpreis_4c_80g_608=1.196;
+$stueckpreis_4c_80g_624=1.223;
+$stueckpreis_4c_80g_640=1.25;
+
+// Ende Variablen Taschenbuch
\ No newline at end of file
diff --git a/tests/Mock/PaperRepostory.php b/tests/Mock/PaperRepostory.php
index b5c3660..8b17d44 100644
--- a/tests/Mock/PaperRepostory.php
+++ b/tests/Mock/PaperRepostory.php
@@ -92,6 +92,10 @@ class PaperRepostory implements ObjectRepository
$papier['bdg250'] = new Paper();
$papier['bdg250']->setArtNr('bdg250');
$papier['bdg250']->setDescription1('Bilderdruck glänzend 250 gr');
+ $papier['bdg250']->setPreis(84);
+ $papier['bdg250']->setGrammatur(250);
+ $papier['bdg250']->setPapierTyp1(1);
+
$papier['bdm300'] = new Paper();
$papier['bdm300']->setArtNr('bdm300');
@@ -201,6 +205,15 @@ class PaperRepostory implements ObjectRepository
$papier['sm150g']->setUmschlagen(1);
$papier['sm150g']->setHappy(1);
+ $papier['lwc65'] = new Paper();
+ $papier['lwc65']->setArtNr('lwc65');
+ $papier['lwc65']->setGrammatur('65');
+ $papier['lwc65']->setPreis('73');
+ $papier['lwc65']->setVolume('1');
+ $papier['lwc65']->setDescription1('65g LWC');
+ $papier['lwc65']->setDescription2('65g LWC');
+ $papier['lwc65']->setPapierTyp1(1);
+
return $papier[$criteria['artNr']];
}