Page 1 of 1

Invoiced Value

Posted: Wed Apr 13, 2022 1:11 am
by dmpchch
When I query 6 months jobs and capture Invoiced value I find I get a line for the Variation job as well. This is ok BUT the original job Invoiced value includes the value of the Variation. When the following is used

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}/invoices/ 
then

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}/invoices/{invoiceID}
the invoice total works out correctly against each job. So the issue is within the logic behind

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}
which if run over a period will return primary job with variation values included as well as variation job.
Ideas? Thoughts?

Re: Invoiced Value

Posted: Wed Apr 13, 2022 10:08 pm
by robbertcha
Hi,

Do you mind to provide us the build detail & job ID/Invoice ID via private message, we will check it for you, thank you.

FYI, instead of using this endpoint:-

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}/invoices/{invoiceID}
We encourage our users to use the endpoint below:-

Code: Select all

/api/v1.0/companies/{companyID}/invoices/{invoiceID}