|
|
Joined: Mar 2017
Posts: 25
Adagio Enthusiast
|
|
Adagio Enthusiast
Joined: Mar 2017
Posts: 25 |
I am working on a Gridview to look at our sales. I am able to pull all the information of orders, invoices and credits except for credits without an order number.
I am currently using the OE Hst Detail /w Head. Table. How can I pull this info either with this table or a separate one.
Thanks, Lance
Lance Tennier TDL Canada
|
|
|
|
|
Joined: Mar 2002
Posts: 4,571
Adagio God
|
|
Adagio God
Joined: Mar 2002
Posts: 4,571 |
Hi Lance
That table will work. But it's not an easy table to work with. For one thing, credit notes appear as positives unless you turn them around using a formula. For another, orders are in there and you want to exclude them if it's a sales report.
What's wrong with using the OE History Header table - it doesn't have the item details but it certainly has the total sales? And if you want the details, what's wrong with using the History button, Items tab in OrderEntry itself?
You are almost definitely doing something wrong in building the GridView but figuring that out on the forum will not be easy. If you are determined to use that table, select all fields and see which one(s) result in the desired output. Then pare it down.
Steve
|
|
|
|
|
Joined: Mar 1999
Posts: 10,504
Adagio Master
|
|
Adagio Master
Joined: Mar 1999
Posts: 10,504 |
Hi Lance, Your Filter should look like this: OR(
{Doc Type} = "I",
{Doc Type} = "C"
)to select Invoices and Credit Notes. I wouldn't recommend displaying all the fields in the table - there are too many of them. Just make sure that you include all the fields you are using in calculated columns or Filters, so you can make sure that the expressions are working properly. You can delete them from the View later if they are not necessary.
Andrew Bates
|
|
|
|
|
Joined: Mar 2017
Posts: 25
Adagio Enthusiast
|
|
Adagio Enthusiast
Joined: Mar 2017
Posts: 25 |
Thanks All, My current filter for testing is:
AND(
OR(
{D: Doc Type} ="C",
{D: Doc Type} ="I"),
{Date} >= 43435,
{Date} <= 43465,
LEFT({D: Category},2) <>"RC",
LEFT({Item #},2) <>"SH",
LEFT({Item #},2) <>"DE",
{Line Type} ="R"
)
This is showing All invoices and credit notes between Dec 1st to Dec 31st 2018, and filtering out RC item codes (Recycle Fees) and SH & DE (Shipping and Delivery). I have exported this list and compared it to our GL account for sales and it matches exactly except for two things. AP/AR direct entries (Do not need to fix) Credit Notes that do not have an order number. I have changed the filter to not include anything other than
OR(
RIGHT({CN #}="59370",5),
RIGHT({CN #}="59378",5),
RIGHT({CN #}="59380",5),
RIGHT({CN #}="59409",5),
RIGHT({CN #}="59412",5),
RIGHT({CN #}="59414",5),
RIGHT({CN #}="59464",5),
RIGHT({CN #}="59472",5),
RIGHT({CN #}="59547",5),
RIGHT({CN #}="59558",5)
)
This returns no results. I have tried looking at this view without any filters and I cannot find the 10 credit notes that way either. The only common thing about these credits in OE is they all are Order Number "No Order". I believe these do not appear in this GV, no matter what I make my filter. Thanks,
Lance Tennier TDL Canada
|
|
|
|
|
Joined: Mar 1999
Posts: 10,504
Adagio Master
|
|
Adagio Master
Joined: Mar 1999
Posts: 10,504 |
If these credit notes have no detail lines, then there will be no details to select them. You need to find them from the Header.
Andrew Bates
|
|
|
|
|
Joined: Mar 2017
Posts: 25
Adagio Enthusiast
|
|
Adagio Enthusiast
Joined: Mar 2017
Posts: 25 |
They do have detail lines, but do not reference an Invoice or Order number.
Lance Tennier TDL Canada
|
|
|
|
|
Joined: Mar 1999
Posts: 11,762
Adagio Action Team
|
|
Adagio Action Team
Joined: Mar 1999
Posts: 11,762 |
Perhaps start with a simpler filter, like just credit notes, to limit the number of records. Ensure that columns for Date, Category, Item # and Line Type are selected for the view (at least for now) since those are the other fields referenced in your filter. When that filter is selected, find one of your credit notes that was not based on an order. If you can't find any, then that would explain why your complete filter doesn't. If you can find at least one, then you can investigate the other 4 field values to see why it isn't being selected from your complete filter.
Regards, Softrak Tech Support
|
|
|
|
|
Joined: Mar 1999
Posts: 11,762
Adagio Action Team
|
|
Adagio Action Team
Joined: Mar 1999
Posts: 11,762 |
Your filter selecting specific credit notes is not syntactically correct. Each line should be:
RIGHT({CN #},5) = "59370"
Regards, Softrak Tech Support
|
|
|
|
|
Joined: Mar 2017
Posts: 25
Adagio Enthusiast
|
|
Adagio Enthusiast
Joined: Mar 2017
Posts: 25 |
Interesting I found them. On orders that do not reference any invoice or order the {Date} is blank but the {Inv Date} contains the date I need. I will update this.
Thanks for your help.
Lance Tennier TDL Canada
|
|
|
|
Forums5
Topics14,680
Posts71,643
Members1,874
| |
Most Online1,408 Dec 9th, 2025
|
|
|
S |
M |
T |
W |
T |
F |
S |
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
|
29
|
30
|
|
|
|
|
|
|
|
|