diff --git a/src/QUI/ERP/Discount/Discount.php b/src/QUI/ERP/Discount/Discount.php index 92a64962a5907dfd9bd8922f43b8f7e5110df9f9..2715d73681b662bdb25545db46ae9eaf77858022 100644 --- a/src/QUI/ERP/Discount/Discount.php +++ b/src/QUI/ERP/Discount/Discount.php @@ -11,7 +11,6 @@ use QUI\Users\User; use QUI\Permissions\Permission; use QUI\Utils\Security\Orthos; - use QUI\ERP\Areas\Utils as AreaUtils; /** diff --git a/src/QUI/ERP/Discount/Handler.php b/src/QUI/ERP/Discount/Handler.php index b706918422f10d1a9354db31f31a7d52734b4098..bde72a9ebd37cfaf313880c6a69b5d7ed851079b 100644 --- a/src/QUI/ERP/Discount/Handler.php +++ b/src/QUI/ERP/Discount/Handler.php @@ -22,7 +22,7 @@ class Handler extends QUI\CRUD\Factory const DISCOUNT_TYPE_PERCENT = 1; /** - * discount type -> crrency + * discount type -> currency */ const DISCOUNT_TYPE_CURRENCY = 2; @@ -130,7 +130,7 @@ public function __construct() // create new translation var for the discount $this->Events->addEvent('onCreateEnd', function ($New, $data) { /* @var $New QUI\ERP\Discount\Discount */ - $newVar = 'discount.'.$New->getId().'.title'; + $newVar = 'discount.' . $New->getId() . '.title'; $current = QUI::getLocale()->getCurrent(); $title = $New->getAttribute('title'); @@ -146,9 +146,9 @@ public function __construct() try { QUI\Translator::addUserVar('quiqqer/discount', $newVar, [ - $current => $title, + $current => $title, 'datatype' => 'php,js', - 'package' => 'quiqqer/discount' + 'package' => 'quiqqer/discount' ]); } catch (QUI\Exception $Exception) { QUI::getMessagesHandler()->addAttention(