Report Problem

vijay_g
Member Posts: 884
Check "Applies-to Doc. No." in "Return Receipt Line" and "Sales Cr.Memo Line" for those posted sales invoice if there are any return in both table then Quantity should be Quantity- Sales Return Quantity.
0
Comments
-
.0
-
vijay_g wrote:Check "Applies-to Doc. No." in "Return Receipt Line" and "Sales Cr.Memo Line" for those posted sales invoice if there are any return in both table then Quantity should be Quantity- Sales Return Quantity.
There is no reference of "Applies-to Doc. No." in either "Return Receipt Line" or "Sales Cr.Memo Line", so i had written that code.0 -
Hi all,
I want to design a report to have sales data with the following fields.
=======================================================
Item No. Description Quantity Rate Excise Sales TAX Total
I have designed a report using Sales Invoice Header and Line table and its working also but,
in case, if we post any Sales return then also the report is showing the Sales return data.
now i want to modify this report in such a way, so that the report contains only those quantity for which there is no sales return, i.e Quantity should be Quantity- Sales Return Quantity
.
Can any body tell me how should i work with Sales Credit Memo to subtract the Sales Return Quantity or should i follow other logic.0 -
You can do one thing ...
If you do not want to display record for which Sales Return Quantity is greater than 0 then put this condition on aftergetrecord and just skip this record...0 -
alok_dida wrote:You can do one thing ...
If you do not want to display record for which Sales Return Quantity is greater than 0 then put this condition on aftergetrecord and just skip this record...
hi, thanx for the reply, actually i do not want to skip the record,
Suppose I create a Sales Invoice for 10 items and, say 5 items are returned back then the report should show the details of only those 5 Quantity that is not returned back, i.e- Excise Details,Sales tax details , etc.
I have written the below mentioned code but it is showing some negative value:SalesCreditMemoHeader.RESET; SalesCreditMemoHeader.SETRANGE(SalesCreditMemoHeader."Applies-to Doc. No.","Document No."); IF SalesCreditMemoHeader.FINDFIRST THEN SalesCreditMemoLine.RESET; SalesCreditMemoLine.SETRANGE(SalesCreditMemoLine."Document No.",SalesCreditMemoHeader."No."); IF SalesCreditMemoLine.FINDFIRST THEN SalesCreditMemoLine.SETRANGE(SalesCreditMemoLine."No.","No."); IF SalesCreditMemoLine.Quantity=Quantity THEN CurrReport.SKIP; IF SalesCreditMemoLine.FINDFIRST THEN BEGIN IF Quantity <> SalesCreditMemoLine.Quantity THEN FinalQty:=Quantity-SalesCreditMemoLine.Quantity; FinalAmount:=Amount-SalesCreditMemoLine.Amount ; END ELSE BEGIN FinalQty:=Quantity; FinalAmount:=Amount; END;
Here i am trying to show the quantity and rate, if for any item there is sales return then the Quantity=Quantity-Sales Return Quantity, otherwise
Quantity=Quantity
what is wrong with the code.0 -
[Merged posts from topic http://mibuso.com/forum/viewtopic.php?f=32&t=43498]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
any suggestion0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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