Browse code

Add notification sent timestamp to notification tokens

Benjamin Roth authored on08/09/2023 12:41:36
Showing1 changed files
... ...
@@ -60,6 +60,7 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
60 60
         'slot_date',
61 61
         'slot_time',
62 62
         'slot_standort',
63
+        'booking_ncsent',
63 64
     ),
64 65
     'email_text'    => array
65 66
     (
... ...
@@ -74,6 +75,7 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
74 75
         'slot_ernteart',
75 76
         'slot_lage',
76 77
         'slot_anmerkungen',
78
+        'booking_ncsent',
77 79
         'booking_behaelter',
78 80
         'booking_sorten',
79 81
         'booking_ernteart',
... ...
@@ -92,6 +94,7 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
92 94
         'slot_ernteart',
93 95
         'slot_lage',
94 96
         'slot_anmerkungen',
97
+        'booking_ncsent',
95 98
         'booking_behaelter',
96 99
         'booking_sorten',
97 100
         'booking_ernteart',
Browse code

Add Standort to notification tokens

Benjamin Roth authored on07/09/2023 10:41:36
Showing1 changed files
... ...
@@ -58,7 +58,8 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
58 58
         'member_email',
59 59
         'admin_email',
60 60
         'slot_date',
61
-        'slot_time'
61
+        'slot_time',
62
+        'slot_standort',
62 63
     ),
63 64
     'email_text'    => array
64 65
     (
... ...
@@ -67,6 +68,7 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
67 68
         'member_memberno', // The member account number of the recipient
68 69
         'slot_date',
69 70
         'slot_time',
71
+        'slot_standort',
70 72
         'slot_behaelter',
71 73
         'slot_sorten',
72 74
         'slot_ernteart',
... ...
@@ -84,6 +86,7 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_book
84 86
         'member_memberno', // The member account number of the recipient
85 87
         'slot_date',
86 88
         'slot_time',
89
+        'slot_standort',
87 90
         'slot_behaelter',
88 91
         'slot_sorten',
89 92
         'slot_ernteart',
Browse code

Add booking notification

Benjamin Roth authored on04/09/2023 10:47:12
Showing1 changed files
... ...
@@ -32,3 +32,66 @@ $GLOBALS['TL_MODELS']['tl_vr_wa_rebsorte'] = WeinanlieferungRebsorteModel::class
32 32
 $GLOBALS['TL_MODELS']['tl_vr_wa_leseart'] = WeinanlieferungLeseartModel::class;
33 33
 $GLOBALS['TL_MODELS']['tl_vr_wa_lage'] = WeinanlieferungLageModel::class;
34 34
 $GLOBALS['TL_MODELS']['tl_vr_wa_reservation'] = WeinanlieferungReservationModel::class;
35
+
36
+
37
+// Notification
38
+$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['weinanlieferung']['wa_booking_change'] = array
39
+(
40
+    'recipients'    => array
41
+    (
42
+        'member_email', // The email address of the recipient
43
+        'admin_email' // The email address of the recipient
44
+    ),
45
+    'email_sender_address'    => array
46
+    (
47
+        'member_email', // The email address of the recipient
48
+        'admin_email' // The email address of the recipient
49
+    ),
50
+    'email_sender_name'    => array
51
+    (
52
+        'member_email', // The email address of the recipient
53
+        'admin_email' // The email address of the recipient
54
+    ),
55
+    'email_subject'        => array
56
+    (
57
+        'domain',
58
+        'member_email',
59
+        'admin_email',
60
+        'slot_date',
61
+        'slot_time'
62
+    ),
63
+    'email_text'    => array
64
+    (
65
+        'member_firstname', // The firstname of the recipient
66
+        'member_lastname', // The lastname of the recipient
67
+        'member_memberno', // The member account number of the recipient
68
+        'slot_date',
69
+        'slot_time',
70
+        'slot_behaelter',
71
+        'slot_sorten',
72
+        'slot_ernteart',
73
+        'slot_lage',
74
+        'slot_anmerkungen',
75
+        'booking_behaelter',
76
+        'booking_sorten',
77
+        'booking_ernteart',
78
+        'booking_lage',
79
+    ),
80
+    'email_html'    => array
81
+    (
82
+        'member_firstname', // The firstname of the recipient
83
+        'member_lastname', // The lastname of the recipient
84
+        'member_memberno', // The member account number of the recipient
85
+        'slot_date',
86
+        'slot_time',
87
+        'slot_behaelter',
88
+        'slot_sorten',
89
+        'slot_ernteart',
90
+        'slot_lage',
91
+        'slot_anmerkungen',
92
+        'booking_behaelter',
93
+        'booking_sorten',
94
+        'booking_ernteart',
95
+        'booking_lage',
96
+    )
97
+);
Browse code

Lot's of changes and improvements

Benjamin Roth authored on30/08/2023 17:18:43
Showing1 changed files
... ...
@@ -8,6 +8,7 @@
8 8
  * @license commercial
9 9
  */
10 10
 
11
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungLageModel;
11 12
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungRebsorteModel;
12 13
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungLeseartModel;
13 14
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungReservationModel;
... ...
@@ -18,7 +19,7 @@ use Contao\ArrayUtil;
18 19
 ArrayUtil::arrayInsert($GLOBALS['BE_MOD'],1,[
19 20
     'weinanlieferung' => [
20 21
         'weinanlieferung' => [
21
-            'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte','tl_vr_wa_leseart','tl_vr_wa_reservation'),
22
+            'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte','tl_vr_wa_leseart','tl_vr_wa_lage','tl_vr_wa_reservation'),
22 23
             'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
23 24
         ]
24 25
     ]
... ...
@@ -29,4 +30,5 @@ $GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
29 30
 $GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
30 31
 $GLOBALS['TL_MODELS']['tl_vr_wa_rebsorte'] = WeinanlieferungRebsorteModel::class;
31 32
 $GLOBALS['TL_MODELS']['tl_vr_wa_leseart'] = WeinanlieferungLeseartModel::class;
33
+$GLOBALS['TL_MODELS']['tl_vr_wa_lage'] = WeinanlieferungLageModel::class;
32 34
 $GLOBALS['TL_MODELS']['tl_vr_wa_reservation'] = WeinanlieferungReservationModel::class;
Browse code

Update

Benjamin Roth authored on17/08/2023 00:07:19
Showing1 changed files
... ...
@@ -13,12 +13,17 @@ use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungLeseartModel;
13 13
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungReservationModel;
14 14
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungSlotsModel;
15 15
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungStandortModel;
16
+use Contao\ArrayUtil;
17
+
18
+ArrayUtil::arrayInsert($GLOBALS['BE_MOD'],1,[
19
+    'weinanlieferung' => [
20
+        'weinanlieferung' => [
21
+            'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte','tl_vr_wa_leseart','tl_vr_wa_reservation'),
22
+            'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
23
+        ]
24
+    ]
25
+]);
16 26
 
17
-$GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
18
-(
19
-    'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte','tl_vr_wa_leseart'),
20
-    'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
21
-);
22 27
 
23 28
 $GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
24 29
 $GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
Browse code

Update

Benjamin Roth authored on15/08/2023 00:19:43
Showing1 changed files
... ...
@@ -9,17 +9,19 @@
9 9
  */
10 10
 
11 11
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungRebsorteModel;
12
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungLeseartModel;
12 13
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungReservationModel;
13 14
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungSlotsModel;
14 15
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungStandortModel;
15 16
 
16 17
 $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
17 18
 (
18
-    'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte'),
19
+    'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte','tl_vr_wa_leseart'),
19 20
     'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
20 21
 );
21 22
 
22 23
 $GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
23 24
 $GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
24 25
 $GLOBALS['TL_MODELS']['tl_vr_wa_rebsorte'] = WeinanlieferungRebsorteModel::class;
26
+$GLOBALS['TL_MODELS']['tl_vr_wa_leseart'] = WeinanlieferungLeseartModel::class;
25 27
 $GLOBALS['TL_MODELS']['tl_vr_wa_reservation'] = WeinanlieferungReservationModel::class;
Browse code

Update

Benjamin Roth authored on09/08/2023 01:02:13
Showing1 changed files
... ...
@@ -9,6 +9,7 @@
9 9
  */
10 10
 
11 11
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungRebsorteModel;
12
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungReservationModel;
12 13
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungSlotsModel;
13 14
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungStandortModel;
14 15
 
... ...
@@ -21,3 +22,4 @@ $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
21 22
 $GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
22 23
 $GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
23 24
 $GLOBALS['TL_MODELS']['tl_vr_wa_rebsorte'] = WeinanlieferungRebsorteModel::class;
25
+$GLOBALS['TL_MODELS']['tl_vr_wa_reservation'] = WeinanlieferungReservationModel::class;
Browse code

Update

Benjamin Roth authored on08/08/2023 12:37:24
Showing1 changed files
... ...
@@ -8,6 +8,7 @@
8 8
  * @license commercial
9 9
  */
10 10
 
11
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungRebsorteModel;
11 12
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungSlotsModel;
12 13
 use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungStandortModel;
13 14
 
... ...
@@ -19,3 +20,4 @@ $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
19 20
 
20 21
 $GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
21 22
 $GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
23
+$GLOBALS['TL_MODELS']['tl_vr_wa_rebsorte'] = WeinanlieferungRebsorteModel::class;
Browse code

Update

Benjamin Roth authored on07/08/2023 16:41:30
Showing1 changed files
... ...
@@ -8,8 +8,14 @@
8 8
  * @license commercial
9 9
  */
10 10
 
11
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungSlotsModel;
12
+use vonRotenberg\WeinanlieferungBundle\Model\WeinanlieferungStandortModel;
13
+
11 14
 $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
12 15
 (
13 16
     'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte'),
14 17
     'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
15 18
 );
19
+
20
+$GLOBALS['TL_MODELS']['tl_vr_wa_slot'] = WeinanlieferungSlotsModel::class;
21
+$GLOBALS['TL_MODELS']['tl_vr_wa_standort'] = WeinanlieferungStandortModel::class;
Browse code

Add backend global operation icon for grape varieties

Benjamin Roth authored on07/08/2023 14:18:52
Showing1 changed files
... ...
@@ -10,5 +10,6 @@
10 10
 
11 11
 $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
12 12
 (
13
-    'tables'      => array('tl_vr_wa_standort', 'tl_vr_wa_slot','tl_vr_wa_rebsorte'),
13
+    'tables'     => array('tl_vr_wa_standort', 'tl_vr_wa_slot', 'tl_vr_wa_rebsorte'),
14
+    'stylesheet' => array('bundles/vonrotenbergweinanlieferung/css/backend.css')
14 15
 );
Browse code

Update

Benjamin Roth authored on06/08/2023 22:56:38
Showing1 changed files
... ...
@@ -10,5 +10,5 @@
10 10
 
11 11
 $GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
12 12
 (
13
-    'tables'      => array('tl_vr_wa_standort', 'tl_vr_wa_slot'),
13
+    'tables'      => array('tl_vr_wa_standort', 'tl_vr_wa_slot','tl_vr_wa_rebsorte'),
14 14
 );
Browse code

Update

Benjamin Roth authored on06/08/2023 17:38:02
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+/**
4
+ * This file is part of contao-weinanlieferung-bundle.
5
+ *
6
+ * (c) vonRotenberg
7
+ *
8
+ * @license commercial
9
+ */
10
+
11
+$GLOBALS['BE_MOD']['content']['weinanlieferung'] = array
12
+(
13
+    'tables'      => array('tl_vr_wa_standort', 'tl_vr_wa_slot'),
14
+);