Sales Item / Service incorrect
Hi,
I have developed a small application that pulls data using the API to generate a timber cut list for a client. This has been working fine until recently where I have found that I am missing some Invoice Numbers. I have identified the issue as that the Invoice Number shows if I call
http://localhost:8080/accountright/cf_uri/Sale/Order/service/?$top=1000
but not
http://localhost:8080/accountright/cf_uri/Sale/Order/item/?$top=1000
When I look at the affected Invoice Numbers in the sales register the Layout is set to Item and everything appears correct.
If I call http://localhost:8080/accountright/cf_uri/Sale/Order I am able to see the invoice numbers are listed as "URI": "http://localhost:8080/AccountRight/cf_uri/Sale/Order/Service/uri",
I have attempted to recreate from the original quote the Invoice however each time it becomes a service rather than an item. This is further an issue as the service fails to return values for UnitCount which prevents me from correctly generating the required cut lists.
Is there a way to force an Invoice to be an Item rather than a Service? It should be an Item in the first place.
Thanks