don't want to print the undo transaction record
yonhantdaenta89@hotmail.com
Member Posts: 52
Hi all,
i am having trouble when i want to print the document. when it has the undo record, the system just print all of it , right ? do anyone know how to print only NON-undo lines?
for example
line 1 Qty 100
line 2 Qty -100
line 3 Qty 20
print only line 3.
many thanks,
i am having trouble when i want to print the document. when it has the undo record, the system just print all of it , right ? do anyone know how to print only NON-undo lines?
for example
line 1 Qty 100
line 2 Qty -100
line 3 Qty 20
print only line 3.
many thanks,
0
Best Answer
-
Hi all,
later on. i check on other document that has similar information.
i print on posted whse shipment and i check the undo shipment from posted sales shipment
thanks,
5
Answers
-
This is area of data gathering.
You may firstly generate records and then delete the ones which are opposite to each other or whatsoever.
It is much harder to maintain dataset filtering on printing stage.
concerning your example one of possible solutions should be with several dataitems:
headerrec
integerrec
on header section, add code to fill temporary records, kind of this:
headerrec.onaftergetrecordtemplinesrec.deleteall; linesrec.setrange(docno,headerrec."no."); if linesrec.findset then repeat currentsum += linesrec.qty; if currentsum = 0 then //<==== kind of main check templinesrec.deleteall //<==== result of check else begin templinesrec := linesrec; templinesrec.insert; end; until linesrec.next=0;integerrec.onpredataitemintegerrec.setrange(number,1,templinesrec.count)
integerrec.onaftergetrecordif integerrec.number >1 then templinesrec.next else templinesrec.findfirst;
It is hard to swim against self bloodstream... (c) Old, experienced kamikadze.0 -
Hi all,
later on. i check on other document that has similar information.
i print on posted whse shipment and i check the undo shipment from posted sales shipment
thanks,
5 -
Document undo lines are already hide based on the check "Show Correction Lines" set false in the request page of standard report.0
-
Hi @vijay_g : i dont see that on request page, and what happen if that report don't have a request page. the report just provide reqfilterfield
thanks,
0 -
I can see this in standard report 208 Sales - Shipment and it works. still if you want to identify the records which has undo lines is marked in field Correction=True in shipment line table. hope this will help you.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions