on 01-08-2018 6:41 PM
Hi everyone!
I have a question about the relationship between Orders and Invoices... In oficial SL documentation i can see about how to know the invoices from a particulary client knowing for example a order....The example is like that:
Orders(1)/BusinessPartner/Invices
The problem is... I need to know the invoice from base order... Something like this...
Orders(1)/Invoice
I dont know how to do that relation... i can see a "BaseEntry" in database, but that value is not in the SL queries
Thanks a lot for your time and support, regards.
Hi Ivan,
The relationship between Orders x Invoices is done by the Order's Lines.
That means Orders(1)/Invoice makes no sense, as the lines of Order #1 might be linked to many different invoices.
The link is not only done by the DocNumber (BaseEntry) but also by the Type of the Document (BaseType).
All of that to explain you why the association approach you are trying to do won't work.
I see a couple of ways in your case:
Option #1: Implement a SL Script Engine code that could gather all the Invoices generated for a given order.
Option #2: Encapsulated the invoice query in Calculation View (preferred Graphic) and exposed it via a Odata service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, someone help me...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.