Hi,

every time I want to update the Availability calender (eg. to set the room unavailable for some days), the last status of the month's availability gets lost. This means I have to enter the availability of the whole month again.
Is this right or am I doing wrong, and what am I doing wrong??
Thorsten

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

There is logic in the code to set all items before a certain date as unavailable.
In the admin settings form it is marked as something like 'auto-expire' or similar - what have you got set there?
Is it throwing any database errors?
Is it possible that your php's max_post_size is set quite low? With a large form sometimes php silently drops the posted form variables if their size exceeds that. It is common to experience that issue on the permissions form where there are lots of fields.

Slartibartfass’s picture

Hi, I tried setting Defauilt Number Available to "0" and to "1" which lead to setting the whole month's availability to "0" or "1".
"Close Availability" is set to "Yesterday", I tried also the other options.
Where do I find php's max_post_size? This would make sense to me.
Thank you for support!

Slartibartfass’s picture

Hi,
set max_post_size = 2M
Same behaviour.
These are the errors at the node:
* Notice: Undefined index: display_price in uc_taxes_node_view() (Zeile 98 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: #value in uc_taxes_node_view() (Zeile 98 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: sell_price in uc_taxes_node_view() (Zeile 101 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: #value in uc_taxes_node_view() (Zeile 101 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).

Any idea?

larowlan’s picture

Hi
Those taxes warnings are unrelated.
Are all dates being set to zero or just the old ones?
What month are you editing?
Have you got the auto-availability option set?
LR

Slartibartfass’s picture

Hi!
All dates are set to zero / the value in auto-availability.
I tried setting/resetting auto-availability.
It seems to me as if the existing values are not read when opening the calender-edit-mode...
ts

larowlan’s picture

FileSize
554 bytes

Here's a debug patch (it doesn't change anything - just adds debugging).
You'll need to download and enable the devel module first.
Then when you save the rates - you should get an output of the submitted form values.
Can you expand the 'calendar' data and paste it here - either as a screenshot/pdf print or just the raw data.
Please change the status back to active when you've done that.

larowlan’s picture

Status: Active » Postponed (maintainer needs more info)
FileSize
1.21 KB

Sorry, here's the correct patch :-)

larowlan’s picture

Can you also check what version of php you have?
This module relies on some date/time functions in php and these changed significantly between php 5.2 and 5.3.

Slartibartfass’s picture

Hi,
php --version says 5.3.3,

I'll try to run the patch. Thank you.

Slartibartfass’s picture

Status: Postponed (maintainer needs more info) » Active
FileSize
206.28 KB

Hi, larowlan,
I'm not really sure I did what you suggested, but this is the output of my operation.
I set availability of July,21 to "1" and then loaded "hotel availabilits calender" again. This showed up July,21 set to "0", however.

I hope this output is what you needed.
Thorsten

halter’s picture

Version: 7.x-1.0-alpha1 » 6.x-2.0-beta4
Assigned: Unassigned » halter
Priority: Normal » Critical

hello. I'm using uc_hotel. and when i translate room to different language edit calendar availibility becomes impossible. why?Can u help me? and i want that modification of one of languages nodes change the others languages to same update.

larowlan’s picture

Version: 6.x-2.0-beta4 » 7.x-1.x-dev
Assigned: halter » Unassigned
Category: support » bug
Priority: Critical » Normal

hi @halter welcome to drupal please don't hijack existing threads, this relates to a different version - create a new one.
Please see the definitions of priority here: http://drupal.org/node/45111

sygnetica’s picture

Hi.

I have the same problem.

When someone reserves the room - reservation on the calendar in the node is visible. But when I want to edit the availability of the room all the values ​​are to 1 instead of 0 in the reserved period.

PHP Version: 5.3.6
post_max_size: 16M

Close Availability: Yesterday (i tried the other options)
Auto available interval: 1 (i tried the other options)

Any idea ?

sygnetica’s picture

SOLVED:

hotel_booking.calendars.inc

-- line 164: $ref_date = new DateObject($day['calendar_dt'], date_default_timezone(), DATE_FORMAT_ISO);
++ line 164: $ref_date = new DateObject($day['calendar_dt'], date_default_timezone(), DATE_FORMAT_DATETIME);


Best regards ;-)

IetC_development’s picture

Status: Active » Fixed

Works very fine, thank you very much @sygnetica !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.