From 40656da7251852b23fd463399cae9822b68bf452 Mon Sep 17 00:00:00 2001
From: alexm <alexm@verdnatura.es>
Date: Wed, 17 Nov 2021 13:15:59 +0100
Subject: [PATCH 1/2] fix(zone): calendar event

---
 modules/zone/front/calendar/index.js | 2 ++
 modules/zone/front/events/index.html | 1 +
 2 files changed, 3 insertions(+)

diff --git a/modules/zone/front/calendar/index.js b/modules/zone/front/calendar/index.js
index 00b6176c7f..a24d10aef6 100644
--- a/modules/zone/front/calendar/index.js
+++ b/modules/zone/front/calendar/index.js
@@ -45,6 +45,8 @@ class Controller extends Component {
         let date = new Date(this.date.getTime());
         date.setMonth(date.getMonth() + (this.nMonths * direction));
         this.date = date;
+
+        this.emit('step');
     }
 
     get data() {
diff --git a/modules/zone/front/events/index.html b/modules/zone/front/events/index.html
index 25ec2827f0..e71a1ae262 100644
--- a/modules/zone/front/events/index.html
+++ b/modules/zone/front/events/index.html
@@ -3,6 +3,7 @@
     vn-id="calendar"
     data="data"
     on-selection="$ctrl.onSelection($days, $type, $weekday, $events, $exclusions)"
+    on-step="$ctrl.refresh()"
     class="vn-w-md">
 </vn-zone-calendar>
 <vn-side-menu side="right">

From 03c7b3f743ca7779023e0ddef8b6a5105bbb1720 Mon Sep 17 00:00:00 2001
From: joan <joan@verdnatura.es>
Date: Thu, 18 Nov 2021 11:13:10 +0100
Subject: [PATCH 2/2] fix(smtp): exclude png files on attachments

---
 print/core/smtp.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/print/core/smtp.js b/print/core/smtp.js
index 0017739da6..36a76dbafc 100644
--- a/print/core/smtp.js
+++ b/print/core/smtp.js
@@ -28,7 +28,7 @@ module.exports = {
             for (let attachment of options.attachments) {
                 const fileName = attachment.filename;
                 const filePath = attachment.path;
-                // if (fileName.includes('.png')) return;
+                if (fileName.includes('.png')) return;
 
                 if (fileName || filePath)
                     attachments.push(filePath ? filePath : fileName);