Jump to content

Supplier Contract Value Report


Gareth Cantrell

Recommended Posts

I was wondering how I could create a report in Supplier Manager to show the total contract value per supplier.

I can achieve what I need in Database Direct using the following SQL, however I'm unable to get the same data out in a report.

Does anyone know how to achieve this?

SELECT 
    s.h_name as supplier
    , c.h_currency as currency
    , FORMAT(SUM(c.h_value),2) as "total contract value"
FROM h_supplier_supplier_contracts c
JOIN h_supplier_suppliers s ON s.h_id = c.h_supplier_id
GROUP BY s.h_name, c.h_currency

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...