Page 1 of 1

putRoomDaily vs getRoomDaily

Posted: Sat May 06, 2017 11:05 pm
by joholm
Can anyone explain this....

putRoomDaily CSV....
Change List
2017-08-09 roomid 77185 set inventory = 3
2017-08-10 roomid 77185 set inventory = 1
2017-08-11 roomid 77185 set inventory = 1
2017-08-12 roomid 77185 set inventory = 0

getRoomDaily CSV....
"year","month","date","roomid",inventory,price1,price2,price3,price4
"2017","08","09","77185","3","","","",""
"2017","08","10","77185","2","","","",""
"2017","08","11","77185","2","","","",""
"2017","08","12","77185","0","","","",""

This is occurring on many dates for different room types.
The description of "getRoomDaily CSV" says "Inventory is the number of rooms available for sale"; but as far as I can see the Inventory shown on each date is the number of room available for sale PLUS the rooms booked out (as imported from Booking.com existing booking).

It makes it hard to double check availability when the number given doesn't show actual availability

Re: putRoomDaily vs getRoomDaily

Posted: Sun May 07, 2017 3:35 pm
by markkinchin
The getRoomDaily function was not taking bookings into account in the reported inventory.
We have changed this now so it shows the remaining rooms available for sale which is more logical.

Re: putRoomDaily vs getRoomDaily

Posted: Sun May 07, 2017 5:39 pm
by joholm
Thank you for the quick response. Now the function seems to be working fine and as expected.

putRoomDaily vs getRoomDaily

Posted: Mon May 08, 2017 6:03 pm
by joholm
I must have spoken too soon.

More trouble with put and get RoomsDaily...

Change List (from Put)
2017-06-18 roomid 77181 set inventory = 1
2017-06-19 roomid 77181 set inventory = 1
2017-06-20 roomid 77181 set inventory = 1
2017-06-21 roomid 77181 set inventory = 1
2017-06-22 roomid 77181 set inventory = 1

Followed by Get...
"2017","06","18","77181","1","","","",""
"2017","06","19","77181","0","","","",""
"2017","06","20","77181","0","","","",""
"2017","06","21","77181","0","","","",""
"2017","06","22","77181","1","","","",""

I was trying to add availability of 1 on those three days by use Put.
The Calendar show correctly - so why does Get get it wrong?

Re: putRoomDaily vs getRoomDaily

Posted: Tue May 09, 2017 10:06 am
by markkinchin
It appears to have been a caching issue, it has come good now.