When I have options set for the rooms (breakfast...) then the 'base cost' and 'cost' display different prices in the search results screen. It appears that the 'cost' value adds an extra unit.

There also seems to be a problem when adding a quantity of more than one for each option, the price calculated seems to only calculate one when you you move to the next 'book this' screen.

CommentFileSizeAuthor
#1 base cost.jpg39.51 KBcrazyprof
drupalroom bug.jpg25.22 KBkevl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

crazyprof’s picture

FileSize
39.51 KB

I am also getting this error when adding room booking options, the base cost is 79.00 but the search result will show double the price in cost section. I do have settings bookable per night not per person. This only happens when adding options to any room booking. Deleting room options will correct the search calculation error.

The attached image was booked for one night although displays double amount in cost section therefor must be adding an extra unit when search room availability.

Anyone else getting this error or have any recommendations?

Cheers!
Crazyprof

kevl’s picture

You will also probably find that if you add multiple options, say 2x breakfast @ £5 (£10) it only adds a single option (£5)

crazyprof’s picture

Thanks for heads up on the additional errors with room booking options. Interestingly enough, there has not been any other bug reports of the option calculations besides us and wondering if it is just us having some conflict with some other module that we are using?

Unfortunately, these errors are way over my head to figure out and now alternatively using other booking 'option' methods that will be displayed when client checks out. Other option methods can be created using the commerce module sub-modules 'product option', and product attributes.

Hope this helps!

artatac’s picture

I have also noticed this plus it is also reported here
https://drupal.org/node/1995008

ronald_istos’s picture

Issue summary: View changes
Issue tags: +7.1
Pedro Lozano’s picture

Assigned: Unassigned » Pedro Lozano
nictc’s picture

Hi @all

I think i found the reason why rooms calculate "Total-Cost" wrong:
I've debugged it and found out that the "Total-Cost" is every-time one day more than the "Base-Cost".

Here in rooms_pricing.unit_pricing_calendar.inc on the follow function you can reproduce the error:

public function calculatePrice(DateTime $start_date, DateTime $end_date, $persons = 0, $children = 0, $children_ages = array()) {}
The first time this function is called it calculates the right value - but after that it wants to calculate the "Total-Cost"

Perhaps somehow can help to fix this nasty bug ;-)

PS The bug don't appear if you choose:
Show availability on a per-type basis.
OR:
Price Per Person instead of Per Night.

Best regards Nico

plopesc’s picture

Assigned: Pedro Lozano » plopesc

Working on this one...

  • Commit 06f4e1b on master, 7.x-1.x by plopesc:
    Issue #2089125 by kevl: Base cost and cost differ in availability search...
  • Commit 3e7d226 on master, 7.x-1.x by plopesc:
    Issue #2089125 by kevl: (followup) Base cost and cost differ in...
  • Commit a718363 on master, 7.x-1.x by ronald_istos:
    Merge pull request #52 from plopesc/issue-2089125
    
    Issue #2089125 by...
ronald_istos’s picture

Status: Active » Fixed
ronald_istos’s picture

Status: Fixed » Closed (fixed)