Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

It’s not possible to select a Posted Receipt Line in charge-assignment if a Job No. is defined in Posted Receipt Line in Microsoft Dynamics NAV


Symptoms

In Microsoft Dynamics NAV it is not possible to add Item Charges to a Job No. if the user works with function Get Receipt Lines to select a Posted Receipt Line in charge-assignment.

↑ Back to the top


Cause

Microsoft Dynamics If the user uses function "Get Receipt Lines" on form 5805 - Item Charge Assignment (Purch) form 5806 - Purch. Receipt Lines  opens.
The issue is that there we use a filter on Job.No.,  SETRANGE("Job No.",'')

 

↑ Back to the top


Resolution

OBJECT Form 5806 Purch. Receipt Lines
========================
OnOpenForm
----------------
remove this line:

      SETRANGE("Job No.",'');


OBJECT Codeunit 5805 Item Charge Assgnt. (Purch.)
================================
PROCEDURE CreateDocChargeAssgnt
---------------------------------------------
remove this line:

      (FromPurchLine."Job No." = '') AND

PROCEDURE CreateRcptChargeAssgnt
---------------------------------------------
remove this line:

      FromPurchRcptLine.TESTFIELD("Job No.",'');


OBJECT Codeunit 90 Purch.-Post
====================
LOCAL PROCEDURE PostItemChargePerOrder
-------------------------------------------------------
remove this line:

        PurchLine.TESTFIELD("Job No.",'');

LOCAL PROCEDURE PostItemChargePerRcpt
-----------------------------------------------------
remove this line:

      PurchRcptLine.TESTFIELD("Job No.",'');

↑ Back to the top


More Information

The above line of changes will allow Purchase Receipt Line with Job No. to be selected through Purchase Invoice -> Click (Line) -> Item Charge Assignment -> Functions-> Get Receipt Lines functionality and on posting of purchase order, job ledger entry will be created and that will be updated through the following process:

1. Run ‘Adjust Cost Item Entries’ batch job

2. Run ‘Update Job Item Cost’ batch job

The above activity will add the Item Charge to the Job Ledger Entry.

 

↑ Back to the top


Keywords: kbmbsmigrate, kbmbspartner, vkball, kb

↑ Back to the top

Article Info
Article ID : 2018740
Revision : 2
Created on : 1/27/2017
Published on : 1/27/2017
Exists online : False
Views : 102