Skip to content

Commit 3c98445

Browse files
author
Ivo Salmre
committed
Small update to count the days check-ins in # stayovers to be consistent with product dashboard
1 parent 49cf0f2 commit 3c98445

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
*.user

CloudbedsApp/CloudbedsDailyOperationsReportManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ private int DateCheck_CalculateNumberForReservation_Stayovers(DateTime compareDa
256256
if (thisRoom.Room_Status != CloudbedsReservationRoom.RoomStatus_Cancelled)
257257
{
258258

259-
if ((compareDate > thisRoom.Room_CheckIn) &&
259+
//if ((compareDate > thisRoom.Room_CheckIn) &&
260+
if ((compareDate >= thisRoom.Room_CheckIn) && //2024-04-05: Include today's check ins
260261
(compareDate < thisRoom.Room_CheckOut))
261262
{
262263
numberStayOvers++;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>C:\Users\ivosa\OneDrive\Setup_CBApp</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
</PropertyGroup>
13+
</Project>

0 commit comments

Comments
 (0)