From d75bed7a65c0e04cb7a67b428977e9ebd83b05e7 Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Wed, 22 Jan 2020 16:16:11 +0100 Subject: [PATCH] Fix Calc --- src/Engine.php | 2 +- tests/Customer/B/CalcTest.php | 44 + tests/Customer/B/calc.xml | 1510 ++++++++++++++++++++++++++ tests/Customer/B/calcTemplates.xml | 2 + tests/Customer/B/formels.txt | 0 tests/Customer/B/papierContainer.xml | 7 + tests/Customer/B/parameters.txt | 965 ++++++++++++++++ 7 files changed, 2529 insertions(+), 1 deletion(-) create mode 100644 tests/Customer/B/CalcTest.php create mode 100644 tests/Customer/B/calc.xml create mode 100644 tests/Customer/B/calcTemplates.xml create mode 100644 tests/Customer/B/formels.txt create mode 100644 tests/Customer/B/papierContainer.xml create mode 100644 tests/Customer/B/parameters.txt diff --git a/src/Engine.php b/src/Engine.php index 0752290..531a4d5 100644 --- a/src/Engine.php +++ b/src/Engine.php @@ -376,7 +376,7 @@ class Engine /** * @return \SimpleXMLElement */ - public function getTemplates(): \SimpleXMLElement + public function getTemplates() { return $this->templates; } diff --git a/tests/Customer/B/CalcTest.php b/tests/Customer/B/CalcTest.php new file mode 100644 index 0000000..8c2a952 --- /dev/null +++ b/tests/Customer/B/CalcTest.php @@ -0,0 +1,44 @@ +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(945.00, $this->engine->getPrice()); + } +} \ No newline at end of file diff --git a/tests/Customer/B/calc.xml b/tests/Customer/B/calc.xml new file mode 100644 index 0000000..40f30d5 --- /dev/null +++ b/tests/Customer/B/calc.xml @@ -0,0 +1,1510 @@ + + + + Taschenbuch + kein + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/Customer/B/calcTemplates.xml b/tests/Customer/B/calcTemplates.xml new file mode 100644 index 0000000..093d936 --- /dev/null +++ b/tests/Customer/B/calcTemplates.xml @@ -0,0 +1,2 @@ + + diff --git a/tests/Customer/B/formels.txt b/tests/Customer/B/formels.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/Customer/B/papierContainer.xml b/tests/Customer/B/papierContainer.xml new file mode 100644 index 0000000..139811c --- /dev/null +++ b/tests/Customer/B/papierContainer.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/Customer/B/parameters.txt b/tests/Customer/B/parameters.txt new file mode 100644 index 0000000..ac21b9e --- /dev/null +++ b/tests/Customer/B/parameters.txt @@ -0,0 +1,965 @@ +// ########## 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