From a252a271a4c709afa19ce116901de68641ed0c64 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 28 Aug 2023 22:06:36 +0000 Subject: [PATCH] update --- README.md | 36 +++++++++++++++++++++++++++++++++++- tests/Autoloader.php | 4 +--- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9e152d..56030fb 100755 --- a/README.md +++ b/README.md @@ -1 +1,35 @@ -# Sales # +# Sales + +## Analysis + +Filters: + +* Localization: Global/region/country +* Item: All/Segment/Group/Type/Item +* Customer: All/Segment/Group/Type/Customer +* Steps: Annually/Quarterly/Monthly/Daily +* Timeframe: YTD/Total/Isolated +* Time: + +Results: + +Always with table below chart + +* Top 25 items +* Lorenze curve of items + gini coefficient +* Top 25 customers +* Lorenze curve of customers + gini coefficient + +* Item: Segment/Group/Type bar chart +* Customer: Segment/Group/Type bar chart + +* Bar chart + bubble chart for countries +* Region doughnut chart +* Region map graphic with circles indicating sales volume + +Analysis: + +1. Product cluster based on purchased together +2. Customers potentially interested in product X +3. Lowest selling items +4. \ No newline at end of file diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 80a0a1e..d2d0080 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -71,14 +71,12 @@ final class Autoloader * * @return void * - * @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation. - * * @since 1.0.0 */ public static function defaultAutoloader(string $class) : void { $class = \ltrim($class, '\\'); - $class = \str_replace(['_', '\\'], '/', $class); + $class = \strtr($class, '_\\', '//'); foreach (self::$paths as $path) { $file = $path . $class . '.php';