Skip to content

Business Trip / Auto-Update Status #82

Description

@0xD0M1M0

When using the Business Trip Doctype and generating the Expense Claim, the status in the Business Trip needs to be set currently manually. I would propose some hooks, that are linked to the expense claim. Once the expense claim is updated and the status changed, the Business Trip would auto-update itself.

As it is a 1:n link between Business Trip and Expense Claim, what would be a good logic for the auto-update?

  • "Submit" is set once the business trip is submitted.
  • "Approved" is set once at least one expense claims is approved and the rest is either status approved or rejected.
  • "Rejected" is set once all expense claims are rejected.
  • "Paid" is set once all approved expense claims are paid.
  • "Billed" has to be set manually? I personnally would move this field in a seperate field. Approved, Rejected and Paid are linked to the employee, while "Billed" is rather linked to a customer and should be adjustable independently. Status: Billable / Not Billable / Billed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions