Invoiced Value

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
dmpchch
Posts: 36
Joined: Mon Aug 26, 2019 2:52 am

Invoiced Value

Post by dmpchch » Wed Apr 13, 2022 1:11 am

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?
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Invoiced Value

Post by robbertcha » Wed Apr 13, 2022 10:08 pm

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}
Robbert
API Developer | simPRO Software Group
Post Reply