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.

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version