File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 35
35
*/
36
36
class Generate extends Quote implements HttpPostActionInterface
37
37
{
38
+ /**
39
+ * Coupon quantity limit config path
40
+ */
41
+ private const XML_CONFIG_COUPON_QUANTITY_LIMIT = 'promo/auto_generated_coupon_codes/quantity_limit ' ;
42
+
38
43
/**
39
44
* @var CouponGenerator
40
45
*/
@@ -60,11 +65,6 @@ class Generate extends Quote implements HttpPostActionInterface
60
65
*/
61
66
private ScopeConfigInterface $ scopeConfig ;
62
67
63
- /**
64
- * Coupon quantity limit config path
65
- */
66
- private const XML_CONFIG_COUPON_QUANTITY_LIMIT = 'promo/auto_generated_coupon_codes/quantity_limit ' ;
67
-
68
68
/**
69
69
* Generate constructor.
70
70
* @param Context $context
@@ -180,8 +180,8 @@ public function execute(): void
180
180
'Coupon quantity should be less than or equal to the coupon quantity in the store configuration. '
181
181
)
182
182
);
183
- // @codingStandardsIgnoreEnd
184
183
}
184
+ // @codingStandardsIgnoreEnd
185
185
$ this ->_view ->getLayout ()->initMessages ();
186
186
$ result ['messages ' ] = $ this ->_view ->getLayout ()->getMessagesBlock ()->getGroupedHtml ();
187
187
} catch (InputException $ inputException ) {
You can’t perform that action at this time.
0 commit comments