Navisionguider.dk
Installation af Navsion 4.00A
Denne installationsvejledning retter sig mod de brugere der har fået Logos Consults præsentations CD med Navision 4.00A. Kan også rekvireres gratis her på Navisionguider.dk

Oprettelse af faktura fra sag


Der oprettes ingen slagsfakturaer eller flere salgsfakturaer oprettes forkert, når man kører "Job Create Sales Invoice" rapporten (1093) fra sagen i Microsoft Dynamics Navision (Nav) 5.0
 
Her kan du læse om hotfixen. Nedenfor kan guldmedlemmer downloade selve hotfixen. Informationerne her er på engelsk >>
 

 

SYMPTOMS


When you run the "Job Create Sales Invoice" report (1093) for jobs in Microsoft Dynamics NAV 5.0, no sales invoices are created or more sales invoices are incorrectly created.
 

RESOLUTION

 

Hotfix information
A supported hotfix is now available from Microsoft. However, it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics NAV 5.0 service pack or the next version that contains this hotfix.

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Dato: November 2009

 

Dette link er flyttet til vores nye udgave af navisionguider (www.dnav.dk) som du finder her: http://dnav.dk/content/hotfix-til-oprettelse-af-faktura-fra-sag-0

Denne artikel vil dog kunne benyttes et stykke tid endnu.

 

                                                   

 

Til toppen af siden

Download hotfix


Installation information


Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Note Before you install this hotfix, verify that all Microsoft Navision client users are logged off the system. This includes Microsoft Navision Application Services (NAS) client users. You should be the only client user who is logged on when you implement this hotfix.

To implement this hotfix, you must have a developer license.

We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions:
 
• The Modify permission for the object that you will be changing.

• The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.


Note You do not have to have rights to the data stores unless you have to perform data repair.

Code changes


Note Always test code fixes in a controlled environment before you apply the fixes to your production computers.
To install this hotfix, change the code in the Job Create-Invoice codeunit (1002) as follows.
To do this, follow these steps:
 
        1. Change the code in the CreateSalesInvoiceJT function as follows:
 
Existing code
...
IF CreateNewInvoice(JT,InvoicePerTask,OldJobNo,OldJTNo,LastJobTask) THEN BEGIN
  IF NOT TempJobPlanningLine.FIND('-') THEN
    EXIT;
  ...
  TempJobPlanningLine.DELETEALL;
END;
...
 
 

Replacement code
 ...
IF CreateNewInvoice(JT,InvoicePerTask,OldJobNo,OldJTNo,LastJobTask) THEN BEGIN
  ...
  TempJobPlanningLine.DELETEALL;
END;
...

 
        2. Change the code in the CreateNewInvoice function as follows:

Existing code

IF LastJobTask THEN
  EXIT(TRUE);
NewInvoice := FALSE;
IF OldJobNo <> '' THEN BEGIN
  IF InvoicePerTask THEN
    IF (OldJobNo <> JT."Job No.") OR (OldJTNo <> JT."Job Task No.") THEN
      NewInvoice := TRUE;
  IF NOT InvoicePerTask THEN
    IF OldJobNo <> JT."Job No." THEN
      NewInvoice := TRUE;
END;
OldJobNo := JT."Job No.";
OldJTNo := JT."Job Task No.";
EXIT(NewInvoice);
 
 
Replacement code

IF LastJobTask THEN
  NewInvoice := TRUE
ELSE BEGIN
  IF OldJobNo <> '' THEN BEGIN
    IF InvoicePerTask THEN
      IF (OldJobNo <> JT."Job No.") OR (OldJTNo <> JT."Job Task No.") THEN
        NewInvoice := TRUE;
    IF NOT InvoicePerTask THEN
      IF OldJobNo <> JT."Job No." THEN
        NewInvoice := TRUE;
  END;
  OldJobNo := JT."Job No.";
  OldJTNo := JT."Job Task No.";
END;
IF NOT TempJobPlanningLine.FIND('-') THEN
  NewInvoice := FALSE;
EXIT(NewInvoice);

 

Prerequisites
You must have Microsoft Dynamics NAV 5.0 installed to apply this hotfix.

Removal information
You cannot remove this hotfix. 
 
 

MORE INFORMATION


In Microsoft Dynamics NAV 5.0, jobs contain job tasks. When you run the "Job Create Sales Invoice" report (1093), job tasks are grouped and processed according to the jobs. When a job task is processed in the "Job Create Sales Invoice" report, Microsoft Dynamics NAV executes the CreateSalesInvoiceJT function of the Job Create-Invoice codeunit (1002) to create a sales invoice.
 

STATUS


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 
 

--------------------------------------------------------------------------------
APPLIES TO
• Microsoft Dynamics NAV 5.0
 
 
Download hotfix her >>
 
 
 
 
 
 
Til toppen af siden

Kommentar

Du skal være logget ind før du kan se eller skrive kommentarer til de forskellige indlæg. Klik her for at logge ind, eller oprette en bruger.
Denne artikel
» Oprettelse af faktura fra sag
» Download hotfix

Søg i teksten

Artikel type
- Vejledning

Skrevet af
- Mette Vestergaard

Funktioner
· Anbefal til ven
· Printervenlig
· Kommenter / Bedøm
· Vis fuldskærm

Nøgleord
- 5.0
- Hotfix
- Microsoft Dynamics
- Navision 5
- Sagsstyring
- Salgsfakturering