putRoomDaily vs getRoomDaily

Availability and inventory control
Post Reply
joholm
Posts: 46
Joined: Wed May 03, 2017 9:09 pm

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
Last edited by joholm on Mon May 08, 2017 6:44 pm, edited 2 times in total.
markkinchin
Site Admin
Posts: 919
Joined: Fri Mar 02, 2012 1:43 pm

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.
joholm
Posts: 46
Joined: Wed May 03, 2017 9:09 pm

Thank you for the quick response. Now the function seems to be working fine and as expected.
joholm
Posts: 46
Joined: Wed May 03, 2017 9:09 pm

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?
markkinchin
Site Admin
Posts: 919
Joined: Fri Mar 02, 2012 1:43 pm

It appears to have been a caching issue, it has come good now.
Post Reply