Subcontracting Patch For The Posting Error

Subcontracting Posting Error while receiving Items

In the case of receiving 2items in the subcontracting procedure only first line material is shown in the GRN properly. Second item w'nt be displayed in the normal database this can be over come by the following type of customization. 

  1. Open the Codeunit 90 Purch.-Post
  2. In the OnRun(VAR Rec : Record "Purchase Header") function first you have to identify following code.

    PurchLine.RESET; 
    PurchLine.SETRANGE("Document Type","Document Type");
    PurchLine.SETRANGE("Document No.","No.");
    LineCount := 0; 
    AmountAddedtoVendor := 0; 
    SrcCurrAmountAddedtoVendor := 0;
  3. Now you can replace this by following type of codes

PurchLine.RESET; 
PurchLine.SETRANGE("Document Type","Document Type");
PurchLine.SETRANGE("Document No.","No.");

IF Subcontracting THEN // add line
PurchLine.SETRANGE("Line No.",SubConPostLine); // addline
LineCount := 0; 
AmountAddedtoVendor := 0; 
SrcCurrAmountAddedtoVendor := 0;

After doing this you can able to receive more than 1 items using Subcontracting.

[disqus][facebook][blogger]

Jubel Thomas

{picture#https://plus.google.com/u/0/photos/116645982191572612106/albums/profile/5718535508567382818} Having 9+ years of Dynamics NAV Experience with Modules like Finance, Sales, Manufacturing, Warehouse, Purchase, Human Resource etc. Also know LS retail, Dynamics AX, Business Intelligence. {facebook#https://www.facebook.com/Navision-Planet-347570178709579/} {twitter#https://twitter.com/NavisionPlanet}

Contact Form

Name

Email *

Message *

Powered by Blogger.