Report for Sales Lines Invoiced at 0 (zero) quantity
emulsified
Member Posts: 139
Kind of like a DAILY 0 QTY NOT SHIPPED Report
I'm wondering what would be the most effecient way to create a report that will give me ITEMS grouped by ITEM."No." that were on Posted Invoices with a 0 (zero) or blank quantity field.
I guess I could just create a report based on Sales Invoice Line table and set the following manually each time:
Document Type: Invoice
Type: Item
Qty To Ship: < 0
Date Filter: 12/30/07..12/31/07
Group Footer or Totals or something on ITEM so that the number only shows up once instead of each time it occurs in all documents.
Any suggestions?
I'm wondering what would be the most effecient way to create a report that will give me ITEMS grouped by ITEM."No." that were on Posted Invoices with a 0 (zero) or blank quantity field.
I guess I could just create a report based on Sales Invoice Line table and set the following manually each time:
Document Type: Invoice
Type: Item
Qty To Ship: < 0
Date Filter: 12/30/07..12/31/07
Group Footer or Totals or something on ITEM so that the number only shows up once instead of each time it occurs in all documents.
Any suggestions?
Half-empy or half-full how do you view your database?
Thanks.
Thanks.
0
Comments
-
0
-
look this...
http://www.mibuso.com/forum/viewtopic.php?t=22963
the problem is the same: why we don't have something like distinct in nav??
0 -
Here is the report I have:
All I want to do is have each ITEM# only show up 1 time on the report even if it occurs on 30 invoices as 0 quantity. I can't remember how to make it do that.
Here is my current report CODE:OBJECT Report 50049 Items Invoiced at ZERO { OBJECT-PROPERTIES { Date=01/03/08; Time=[ 5:42:55 PM]; Modified=Yes; Version List=; } PROPERTIES { } DATAITEMS { { PROPERTIES { DataItemTable=Table113; DataItemTableView=SORTING(Posting Date,Shortcut Dimension 1 Code,Shortcut Dimension 2 Code); OnPreDataItem=BEGIN LastFieldNo := FIELDNO("Posting Date"); END; ReqFilterFields=Posting Date,Type,Quantity; GroupTotalFields=No.; } SECTIONS { { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=1692; } CONTROLS { { 1000000001;Label ;0 ;0 ;7500 ;423 ;FontSize=8; FontBold=Yes; CaptionML=[ENU=Items Invoiced at ZERO Quantity; ESM=Hist¢rico l¡n. factura venta; FRC=Ligne facture vente; ENC=Sales Invoice Line] } { 1000000002;TextBox;15000;0 ;3150 ;423 ;HorzAlign=Right; SourceExpr=FORMAT(TODAY,0,4) } { 1000000003;TextBox;0 ;423 ;7500 ;423 ;SourceExpr=COMPANYNAME } { 1000000004;TextBox;17700;423 ;450 ;423 ;CaptionML=ENU=Page; SourceExpr=CurrReport.PAGENO } { 1000000005;Label ;16950;423 ;750 ;423 ;ParentControl=1000000004 } { 1000000006;TextBox;15900;846 ;2250 ;423 ;HorzAlign=Right; SourceExpr=USERID } } } { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=423; } CONTROLS { } } { PROPERTIES { SectionType=GroupHeader; SectionWidth=18150; SectionHeight=423; OnPreSection=BEGIN CurrReport.SHOWOUTPUT := FooterPrinted; FooterPrinted := FALSE; END; } CONTROLS { } } { PROPERTIES { SectionType=GroupHeader; SectionWidth=18150; SectionHeight=423; OnPreSection=BEGIN CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY = "Sales Invoice Line".FIELDNO("Posting Date"); END; } CONTROLS { { 1000000008;TextBox;3150 ;0 ;1200 ;423 ;HorzAlign=Left; SourceExpr="Posting Date" } { 1000000009;Label ;0 ;0 ;3000 ;423 ;ParentControl=1000000008 } } } { PROPERTIES { SectionType=GroupHeader; SectionWidth=18150; SectionHeight=423; OnPreSection=BEGIN CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY = LastFieldNo; END; } CONTROLS { } } { PROPERTIES { SectionType=Body; SectionWidth=18150; SectionHeight=846; } CONTROLS { { 1000000011;TextBox;2100 ;0 ;4500 ;423 ;HorzAlign=Left; SourceExpr=Description } { 1000000013;TextBox;450 ;0 ;1500 ;423 ;HorzAlign=Left; SourceExpr="No." } { 1000000014;TextBox;0 ;0 ;300 ;423 ;HorzAlign=Left; SourceExpr=Type } } } } } } REQUESTFORM { PROPERTIES { Width=9020; Height=3410; } CONTROLS { } } CODE { VAR LastFieldNo@1000000000 : Integer; FooterPrinted@1000000001 : Boolean; BEGIN END. } }
If someone can remind me I would appreciate it. I know it is something very simple.Half-empy or half-full how do you view your database?
Thanks.0 -
Can it be done when there is not "Item No" key?
0 -
I meant to fill a temp table and then retrieve item nos from there...
follow the link I posted before, take a look to the code wrote by ara3n to fill the temp table and then you can loop into the temptable to obtain only one occurence per article...
Hope it's clear,
0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions