Submit your Suggestions for Vista Web

Expense reviewer based on GL account reviewer

It would be helpful to route expense approvals based on their GL account coding, if there is a reviewer set up for that account in the GL Chart of Accounts. If blank, it can default to the employee's manager.

  • Lauren Spalinger
  • Aug 14 2023
  • Shipped
Company Shaw Construction
Job Title / Role Controller
I need it... Yesterday...Come on already
  • Attach files
  • Kevin Halme commented
    August 14, 2023 22:38

    This is an easy add and a common request, why isn't this standard already. You can test the code below after the Job Reviewer insert, I've been using this for clients. There maybe be some edge cases that this doesn't cover.


    Kevin Halme | Constructive Tech Solutions



    INSERT ExpenseApproval

    (

    ExpenseItemID

    , Reviewer

    , ReviewerSeq

    ,RevSource

    )

    SELECT ExpenseItems.ExpenseItemID

    , kHQRD.Reviewer

    , kHQRD.ApprovalSeq

    ,'G'

    FROM ExpenseItems

    INNER JOIN kGLAC ON ExpenseItems.GLCo = kGLAC.GLCo

    AND ExpenseItems.GLAcct = kGLAC.GLAcct

    INNER JOIN kHQRD ON kGLAC.ReviewerGroup = kHQRD.ReviewerGroup

    INNER JOIN kDynamicHQRV ON kHQRD.Reviewer = kDynamicHQRV.Reviewer

    LEFT OUTER JOIN @SubmitterReviewer SubmitterReviewer ON kDynamicHQRV.Reviewer = SubmitterReviewer.Reviewer

    WHERE ExpenseHeaderID = @ExpenseHeaderID

    AND kDynamicHQRV.Active = 'Y'

    AND kHQRD.Active = 'Y'

    AND ( kHQRD.ThresholdAmount < ExpenseItems.Amount

    OR ThresholdAmount IS NULL)

    AND ExpenseItems.GLAcct IS NOT NULL

    AND @ReviewerOnSubmit = 0

    AND 1 = CASE WHEN @ExpenseAllowSelfApproval = 0

    AND SubmitterReviewer.Reviewer IS NOT NULL

    THEN 0

    ELSE 1

    END




Dear Viewpoint Suggestion Box contributor;

We at Viewpoint sincerely thank you for your contribution to Suggestion Box on how we can improve Viewpoint products. While we can’t do everything at once, we rely upon your feedback to help guide the prioritization of our product improvements, and Suggestion Box is a critical tool for us to understand and prioritize our customers’ needs. Viewpoint reviews Suggestion Box regularly for all of our products and updates statuses, adds comments, and performs various house-keeping (including deleting) as needed to ensure that Suggestion Box is maintained as a productive environment for product enhancements requests.

1515 SE Water Avenue, Suite 300, Portland, OR 97214 |  800.333.3197  | Contact Us | Terms of Use | Privacy | Support Policies

© 2024 Trimble Inc. All Rights Reserved. Viewpoint®, Vista™, Spectrum®, ProContractor™, Jobpac Connect™, Viewpoint Team™, Viewpoint Analytics™, Viewpoint Field View™, Viewpoint Estimating™, Viewpoint For Projects™, Viewpoint HR Management™, Viewpoint Field Management™, Viewpoint Financial Controls™, Vista Field Service™, Spectrum Service Tech™, ViewpointOne™, ProjectSight® and Trimble Construction One™ are trademarks or registered trademarks of Trimble Inc. or its affiliates in the United States and other countries. Other names and brands may be claimed as the property of others.