Home Manufacturing Module Subcontracting Patch For The Posting Error

Subcontracting Patch For The Posting Error

0

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.

Trademarks & Screenshots: Microsoft, Dynamics 365, Business Central, Dynamics NAV, and related names are trademarks of Microsoft Corporation. LS Central and LS Retail are products of LS Retail. Screenshots are used for educational and illustrative purposes only. Navision Planet is an independent resource and is not affiliated with, endorsed by, or sponsored by Microsoft or LS Retail. All product names, logos, and brands are the property of their respective owners.

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version