Selectively Post Purchase Lines
souravb
Member Posts: 135
Hi,
I have a purchase order with 2 lines. In the first line Quantity is 2 and Quantity To Receive is 2. In the second line Quantity is 3 and Quantity to receive is 0. Now i want when the Purchase order is posted as 'Receive and Invoice', only the line having 'Quantity to Receive' field non zero will go to the posted documents and not the other line. How to do that. Plz suggest.
I have a purchase order with 2 lines. In the first line Quantity is 2 and Quantity To Receive is 2. In the second line Quantity is 3 and Quantity to receive is 0. Now i want when the Purchase order is posted as 'Receive and Invoice', only the line having 'Quantity to Receive' field non zero will go to the posted documents and not the other line. How to do that. Plz suggest.
0
Comments
-
You could post with Receive only.
Then create an new invoice for the vendor and use the function "Get receipt lines" (button Functions).
Then you will only have the lines you received in your invoice. Next post the invoice.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
according to your problem,tinoruijs is partially correct. but when u make receipt from order then all lines will be then in posted receipt.
you have to make changes in codeunit where these posted prch. receipt line and posted prch. inv. line are created.Experience Makes Man Perfect....
Rajesh Patel0 -
rajpatelbca wrote:according to your problem,tinoruijs is partially correct. but when u make receipt from order then all lines will be then in posted receipt.
you have to make changes in codeunit where these posted prch. receipt line and posted prch. inv. line are created.
All lines will be in receipt, but that isn't a problem I think.
When you use "get receipt lines", only the lines with quantity <> 0 are being transfered to the invoice.
I think code-changes in codeunits isn't necessary.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
how about changing the Qty to Invoice to zero for the items you don't want invoiced.0
-
Savatage wrote:how about changing the Qty to Invoice to zero for the items you don't want invoiced.
That won't work.
In the second line Quantity is 3 and Quantity to receive is 0.
If you put Qty. to receive to 0, qty. to invoice becomes 0 too.
But still that line will be on the posted invoice with quantity empty.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
eventhugh ı don't understand why you really need this modification, i will tell some hint:
IF Invoice THEN BEGIN // Insert invoice line or credit memo line IF "Document Type" IN ["Document Type"::Order,"Document Type"::Invoice] THEN BEGIN PurchInvLine.INIT; PurchInvLine.TRANSFERFIELDS(TempPurchLine); PurchInvLine."Document No." := PurchInvHeader."No."; PurchInvLine.Quantity := TempPurchLine."Qty. to Invoice"; PurchInvLine."Quantity (Base)" := TempPurchLine."Qty. to Invoice (Base)"; PurchInvLine.INSERT; DimMgt.MoveOneDocDimToPostedDocDim( DocDim,DATABASE::"Purchase Line","Document Type","No.",PurchInvLine."Line No.", DATABASE::"Purch. Inv. Line",PurchInvHeader."No."); ItemJnlPostLine.CollectValueEntryRelation(TempValueEntryRelation,PurchInvLine.RowID1);
in OnRun function of codeunit 90, replace above code as thisIF Invoice THEN BEGIN // Insert invoice line or credit memo line IF "Document Type" IN ["Document Type"::Order,"Document Type"::Invoice] THEN BEGIN PurchInvLine.INIT; PurchInvLine.TRANSFERFIELDS(TempPurchLine); PurchInvLine."Document No." := PurchInvHeader."No."; PurchInvLine.Quantity := TempPurchLine."Qty. to Invoice"; PurchInvLine."Quantity (Base)" := TempPurchLine."Qty. to Invoice (Base)"; IF PurchInvLine.Quantity <> 0 THEN BEGIN PurchInvLine.INSERT; DimMgt.MoveOneDocDimToPostedDocDim( DocDim,DATABASE::"Purchase Line","Document Type","No.",PurchInvLine."Line No.", DATABASE::"Purch. Inv. Line",PurchInvHeader."No."); ItemJnlPostLine.CollectValueEntryRelation(TempValueEntryRelation,PurchInvLine.RowID1); END;0 -
This is a very common request:
1. number of transactions is reduced & database size won't grow so fast.
2. environmentally friendly due to less paper usage.
3. easier on the eyes due to less lines.
4. data mining/selection/auditing becomes easier.NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0
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
