Skip to main content

Hello. I want to create a dataview in my customization in order to get these data.

In the invoices form, From the credit memo type i want to get its detail total and then go to the application tab and select its invoice and get the Amount from the invoice in the Invoices and Memos form.

I need the detail total from this credit memo

 

And then i will go the applications tab and go to its invoice.
And from the Invoice form i need to get its Amount.

How can i write this into a query where i can create data view for my customization?

I have created this relationship joinin using the report builder for my report but i am unable to come up with the written query for this. Please help!

JOIN 1
JOIN 2

I simply need the written dataview query of the two joins. Thanks in advance.

 I’m not quite following your report joins. I believe these are the data views that the graphs are using.

public SelectFrom<ARAdjust2>.
InnerJoin<ARPayment>.
On<ARAdjust2.FK.Payment>.
View Adjustments;

 

public SelectFrom<ARInvoice>.
LeftJoin<ARAdjust>.
On<ARAdjust.FK.Invoice>.
View Invoices;

Let me know if I’m misunderstanding something.


 I’m not quite following your report joins. I believe these are the data views that the graphs are using.

public SelectFrom<ARAdjust2>.
InnerJoin<ARPayment>.
On<ARAdjust2.FK.Payment>.
View Adjustments;

 

public SelectFrom<ARInvoice>.
LeftJoin<ARAdjust>.
On<ARAdjust.FK.Invoice>.
View Invoices;

Let me know if I’m misunderstanding something.

 

Hello Dear.

I actually need to join ARInvoice to ARAdjust using note id and memo id and comeback from ARAdjust to ARInvoice using the AdjdRefNbr from ARAdjust and RefNbr from ARInvoice. Hope this is is clear.

Thanks.


That would look like this:

public SelectFrom<ARInvoice>.
LeftJoin<ARAdjust>.
On<ARAdjust.memoID.IsEqual<ARInvoice.noteID>>.
View View;

 


Reply