diff --git a/Controller/BackendController.php b/Controller/BackendController.php index c20e648..7578926 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -28,6 +28,13 @@ use phpOMS\Views\View; * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 + * + * @todo Orange-Management/Modules#102 + * Goal definition + * While costs are universal the goal for promotions, events etc. is not. + * In some cases it could be sales in others it could be response rate etc. + * Implement a way to define goals and allow manual+system side evaluation. + * */ final class BackendController extends Controller { diff --git a/Models/PromotionMapper.php b/Models/PromotionMapper.php index f5f6f99..911161e 100644 --- a/Models/PromotionMapper.php +++ b/Models/PromotionMapper.php @@ -64,11 +64,11 @@ final class PromotionMapper extends DataMapperAbstract 'dst' => 'marketing_promotion_task_relation_dst', 'src' => 'marketing_promotion_task_relation_src', ], - 'media' => [ // todo: maybe make this a has one and then link to collection instead of single media files! - 'mapper' => MediaMapper::class, - 'table' => 'marketing_promotion_media', - 'dst' => 'marketing_promotion_media_src', - 'src' => 'marketing_promotion_media_dst', + 'media' => [ + 'mapper' => MediaMapper::class, + 'table' => 'marketing_promotion_media', + 'dst' => 'marketing_promotion_media_src', + 'src' => 'marketing_promotion_media_dst', ], ];