Qmatic Orchestra supports different durations for additional persons. For example, an appointment with 1 person takes 15 minutes, but each extra person only adds 5 minutes to that.

The followin patch fixes duration calculation and adds this feature to the Orchestra Client API.

Comments

MrHaroldA created an issue. See original summary.

mrharolda’s picture

Status: Active » Needs review
StatusFileSize
new19.5 KB
mrharolda’s picture

StatusFileSize
new18.95 KB

Re-roll with correct path ...

mrharolda’s picture

Status: Needs review » Needs work

Patch doesn't apply since #2666060: Handle time slot errors was committed.

mrharolda’s picture

Component: Code » Qmatic Orchestra
ralphvdhoudt’s picture

Added extra patch required for display of correct duration on time selection, control step, confirmation and e-mail

mrharolda’s picture

Status: Needs work » Needs review
StatusFileSize
new23.57 KB

Here's a re-roll and merge of the patches in #3 and #6.

mrharolda’s picture

ralphvdhoudt’s picture

StatusFileSize
new25.46 KB

Recreated patch against latest dev version

mrharolda’s picture

Status: Needs review » Needs work
-          if (strpos($book_appointment->msg, 'No resource is available for the selected date and time') !== FALSE) {
-            throw new Exception($book_appointment->msg, DVG_APPOINTMENTS_ERRORCODE_DATE_TIME);
-          }
-          throw new Exception($book_appointment->msg, DVG_APPOINTMENTS_ERRORCODE_UNKNOWN);
-        }

This should not be removed.

ralphvdhoudt’s picture

StatusFileSize
new25.48 KB

Adjusted patch

ralphvdhoudt’s picture

Status: Needs work » Needs review
askibinski’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good and is being successfully used in production.

ralphvdhoudt’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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