Skip to content

Workflow's "Date + x Business Hours" parameter does not reflect CRM-set Business Hours #10656

Open
@johnM2401

Description

@johnM2401

Issue

When running a Workflow that uses the "Date + x Business Hours" parameter, this appears to use real-time hours and not the set Business hours in the CRM.

See gif

Image

I have a Workflow to add 24 Business hours

Today is Friday 28th, So this should cause my date field to give me Wednesday 2nd April.
(Skipped Weekends + 3 Business days of 8hours each)

However, It causes my date field to give Today+24Hours, which is Saturday 29th.

Possible Fix

No response

Steps to Reproduce the Issue

1. Create a Workflow that uses a Date + [x] Business Hours parameter in the actions
2. Set your Business hours in Admin->Business Hours
3. Run the Workflow
4. See that the result is a calculation based on Real Hours
...

Context

No response

Version

7.14.6

What browser are you currently using?

Firefox

Browser Version

Firefox 136.0.1

Environment Information

MariaDB 10.4.12, PHP8.2

Operating System and Version

Ubuntu 22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: WorkflowIssues & PRs related to all things regarding workflowPriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsSeverity: ModerateKey function failed, but no or little impactType: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions