In return Order i want Rcpt no and Rcpt line no

divyesh10
Member Posts: 71
i want to print report No and report Line no. in purchase return order when i click on get posted lines to reverse.
i am able to get it from purch inv line but it is printed in first line i want to print it on 2nd line
i am able to get it from purch inv line but it is printed in first line i want to print it on 2nd line
0
Comments
-
Where did you write code and what code?0
-
i wrote the code in codeunit copy document Mgt on
InsertOldPurchDocNoLine
PurchInvline.SETRANGE(PurchInvline."Document No.",OldDocNo);
IF PurchInvline.FINDFIRST THEN BEGIN
ToPurchLine2."Receipt No." := PurchInvline."Document No.";
ToPurchLine2."Receipt Line No.":=PurchInvline."Line No.";
END;
ToPurchLine2.INSERT;0 -
What if you write below code directly in CopyPurchInvLinesToDoc function?
I didn't test it in real time scenarios, please make sure before you implementIF CopyPurchLine( ToPurchHeader,ToPurchLine,FromPurchHeader, FromPurchLine2,NextLineNo,LinesNotCopied,"Return Shipment No." = '') THEN BEGIN FromPurchInvLine.GET("Receipt No.","Return Shipment Line No."); [b]//MPA BEGIN ToPurchLine."Receipt No." := FromPurchInvLine."Document No."; ToPurchLine."Receipt Line No." := FromPurchInvLine."Line No."; ToPurchLine.MODIFY; //MPA END[/b] CopyFromPstdPurchDocDimToLine( ToPurchLine,PurchDocType::"Posted Invoice", FromPurchRcptLine,FromPurchInvLine,FromReturnShptLine,FromPurchCrMemoLine);
0 -
Yes sir it worked but i want same for posted Receipt...0
-
Go through the code and understand what I did and add same login in CopyPurchRcptLinesToDoc function0
-
Thaks a ton mohana sir .....i got it for posted receipt also...
=D>
0
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