From a1760f43df9855be7a4fe0132cc9cdd14b33f569 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Patrick=20M=C3=BCller?= <p.mueller@pcsg.de>
Date: Mon, 24 Sep 2018 16:10:11 +0200
Subject: [PATCH] fix: #3

---
 src/QUI/ERP/Coupons/Handler.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/QUI/ERP/Coupons/Handler.php b/src/QUI/ERP/Coupons/Handler.php
index 122cfa1..621dfc4 100644
--- a/src/QUI/ERP/Coupons/Handler.php
+++ b/src/QUI/ERP/Coupons/Handler.php
@@ -230,7 +230,7 @@ public static function editCouponCode($id, $discountIds, $settings = [])
             'title'       => empty($settings['title']) ? null : $settings['title'],
             'createDate'  => $Now->format('Y-m-d H:i:s'),
             'code'        => $code,
-            'isReusable'  => !empty($settings['reusable']),
+            'isReusable'  => !empty($settings['reusable']) ? 1 : 0,
             'discountIds' => json_encode($discountIds)
         ];
 
-- 
GitLab