Skip to main content

Hello,

I need to write a report (or GI) that allows me to report if there are more than 1 sales order in Acumatica with the same “Customer Order Nbr.”

I have done similar things a million times in other report writers, but I do not know of a method to accomplish this with Acumatica’s report writer.

So I need to run through the SO’s and report Acumatica sales orders and their associated “Customer Order Nbr”, but only if multiple sales orders have the same “Customer Order Nbr.”.  I’ve used functions like running totals that reset on the change of a field value etc… using other reporting tools, but I don’t know how to accomplish this here.

Any great ideas on Friday afternoon in AcumaticaLand!!!???

Thanks!!!!

@ltussing03 Pretty sure for this you will need to join in the SOOrder table more than once, give the other table an alias like DuplicateOrder and have a condition where if SOOrder.CustomerOrderNbr = DuplicateOrder.CustomerOrderNbr then it will show in the results.

This method is useful for comparing data from within a single table against its own data.


Ben,

THANKS!!!

I think I can make this work!

However, I don’t see how to add the SOOrder table more than once.

It’s the only table on the report and it is not available for selection a second time from the table tree.

I see you can have an ALIAS on the relationships tab, but cannot get this to take.

Can you offer any advice on getting the table into the report twice using an alias.

And thank you!!!


@ltussing03 Yes, the way to do this is with the Relationships tab using the Alias option.

This is a screenshot off the AR Invoice form:

First they gave the ARAddress table an Alias so that it can be easily recognized what they are looking to pull out of the table based on the link to BillAddressID.

Because the Shipping contact details are also in the invoice and in the ARAddress table, linking with a new Alias allows to link on ShipAddressID and get different address details.

If this doesn’t help get the relations working post some screenshots of where the report is running amiss,

Thanks!


Bill,

My difficulty is the child and parent are the same table.  It lets me type it in and I add an alias, but it doesn’t save it.  Both the child and parent are SOOrder.  So I need to create the alias before this screen it seems.

Thanks,

Larry


@ltussing03 I was able to create a join on the SOOrder on itself:

The Alias table has to be the Child table.


Ben thanks.

I must have been doing something wrong.

I’m tied up now and will test.

Thanks again for all of your time and efforts helping me out!!!


Thanks!!!!


Reply