This article applies to Microsoft Dynamics NAV for the French (fr) language locale.

Symptoms

When you delete a line from a payment slip in the French version of Microsoft Dynamics NAV 2009, the deleted line is not available for a new payment slip.This problem occurs in the following products:

  • The French version of Microsoft Dynamics NAV 2009 Service Pack 1

  • The French version of Microsoft Dynamics NAV 2009 R2

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 2009 service pack or the next Microsoft Dynamics NAV 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.

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. However, 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 Dynamics NAV client users are logged off the system. This includes Microsoft Dynamics NAV Application Server (NAS) services. 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 resolve this problem, follow these steps:

  1. Change the code in Controls in the Payment Slip Form (10868) as follows:Existing code 1

    ...CaptionML=[ENU=Modify;FRA=Modifier];OnPush=BEGIN// Delete the following line.CurrForm.Lines.FORM.Modify;// End of the deleted line.END;}{ ID=2;...

    Replacement code 1

    ...CaptionML=[ENU=Modify;FRA=Modifier];OnPush=BEGIN// Add the following line.CurrForm.Lines.FORM.ModifyLines;// End of the added line.END;}{ ID=2;...

    Existing code 2

    ...CaptionML=[ENU=Insert;FRA=Ins�rer];OnPush=BEGIN// Delete the following line.CurrForm.Lines.FORM.Insert;// End of the deleted line.END;}{ ID=3;...

    Replacement code 2

    ...CaptionML=[ENU=Insert;FRA=Ins�rer];OnPush=BEGIN// Add the following line.CurrForm.Lines.FORM.InsertLines;// End of the added line.END;}{ ID=3;...

    Existing code 3

    ...CaptionML=[ENU=Remove;FRA=Supprimer];OnPush=BEGIN// Delete the following line.CurrForm.Lines.FORM.Delete;// End of the deleted line.END;}{ ID=1120028;...

    Replacement code 3

    ...CaptionML=[ENU=Remove;FRA=Supprimer];OnPush=BEGIN// Add the following line.CurrForm.Lines.FORM.DeleteLines;// End of the added line.END;}{ ID=1120028;...
  2. Change the code in the Modify function in the Payment Slip Subform From (10869) as follows:Existing code

    ...END;    END;// Delete the following line.    PROCEDURE Modify@3();// End of the deleted line.    VAR      PaymentLine@1120001 : Record 10866;      PaymentModification@1120000 : Form 10871;...

    Replacement code

    ...END;    END;// Add the following line.    PROCEDURE ModifyLines@3();// End of the added line.    VAR      PaymentLine@1120001 : Record 10866;      PaymentModification@1120000 : Form 10871;...
  3. Change the code in the Insert function in the Payment Slip Subform From (10869) as follows:Existing code

    ...MESSAGE(Text002);    END;// Delete the following line.    PROCEDURE Insert@1120007();// End of the deleted line.    VAR      PaymentManagement@1120000 : Codeunit 10860;    BEGIN...

    Replacement code

    ...MESSAGE(Text002);    END;// Add the following line.    PROCEDURE InsertLines@1120007();// End of the added line.    VAR      PaymentManagement@1120000 : Codeunit 10860;    BEGIN...
  4. Change the code in the Delete function in the Payment Slip Subform From (10869) as follows:Existing code

    ...PaymentManagement.LinesInsert("No.");    END;// Delete the following line.    PROCEDURE Delete@4();// End of the deleted line.    VAR      PostingStatement@1120000 : Codeunit 10860;      StatementLine@1120001 : Record 10866;...

    Replacement code

    ...PaymentManagement.LinesInsert("No.");    END;// Add the following line.    PROCEDURE DeleteLines@4();// End of the added line.    VAR      PostingStatement@1120000 : Codeunit 10860;      StatementLine@1120001 : Record 10866;...
  5. Change the code in the CopyLigBor function in the Payment Management Codeunit (10860) as follows:Existing code

    ...Process@1120009 : Record 10860;      PaymentStatus@1120010 : Record 10861;    BEGIN// Delete the following lines.      FromPaymentLine.MARKEDONLY(TRUE);      IF NOT FromPaymentLine.FIND('-') THEN        FromPaymentLine.MARKEDONLY(FALSE);// End of the deleted lines.      IF FromPaymentLine.FIND('-') THEN BEGIN        Step.GET(FromPaymentLine."Payment Class",NewStep);        Process.GET(FromPaymentLine."Payment Class");...

    Replacement code

    ...Process@1120009 : Record 10860;      PaymentStatus@1120010 : Record 10861;    BEGIN      IF FromPaymentLine.FIND('-') THEN BEGIN        Step.GET(FromPaymentLine."Payment Class",NewStep);        Process.GET(FromPaymentLine."Payment Class");...
  6. Change the code in the DeleteLigBorCopy function in the Payment Management Codeunit (10860) as follows:Existing code

    ...VAR      ToPaymentLine@1120001 : Record 10866;    BEGIN// Delete the following line.      FromPaymentLine.MARKEDONLY(TRUE);// End of the deleted line.      ToPaymentLine.SETCURRENTKEY("Copied To No.","Copied To Line");      IF FromPaymentLine.FIND('-') THEN...

    Replacement code

    ...VAR      ToPaymentLine@1120001 : Record 10866;    BEGIN      ToPaymentLine.SETCURRENTKEY("Copied To No.","Copied To Line");      IF FromPaymentLine.FIND('-') THEN...
  7. Change the code in Properties in the Payment Slip Subform Page (10869) as follows:Existing code 1

    ...OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Delete the following line.                                 _Modify;// End of the deleted line.                               END;                                }      { 1900724604;2 ;Action    ;...

    Replacement code 1

    ...OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Add the following line.                                 ModifyLines;// End of the added line.                          END;                                }      { 1900724604;2 ;Action    ;...

    Existing code 2

    ... OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Delete the following line.                                 INSERT;// End of the deleted line.                          END;                                }      { 1900724504;2 ;Action    ;...

    Replacement code 2

    ...OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Add the following line.                                 InsertLines;// End of the added line.                          END;                                }      { 1900724504;2 ;Action    ;...

    Existing code 3

    ...OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Delete the following line.                                 DELETE;// End of the deleted line.                               END;                                }      { 1905048704;2 ;ActionGroup;...

    Replacement code 3

    ...OnAction=BEGIN                                 //This functionality was copied from page #10868. Unsupported part was commented. Please check it.                                 {CurrPage.Lines.FORM.}// Add the following line.                                 DeleteLines;// End of the added line.                               END;                                }      { 1905048704;2 ;ActionGroup;...
  8. Change the code in the Modify function in the Payment Slip Subform Page (10869) as follows:Existing code 1

    ...END;    END;// Delete the following line.    PROCEDURE _Modify@19068298(); // End of the deleted line.VAR      PaymentLine@1120001 : Record 10866;      PaymentModification@1120000 : Form 10871;...

    Replacement code 1

    ...END;    END;// Add the following line.    PROCEDURE ModifyLines@3();// End of the added line.VAR      PaymentLine@1120001 : Record 10866;      PaymentModification@1120000 : Form 10871;...

    Existing code 2

    ...MESSAGE(Text002);    END;// Delete the following lines.    PROCEDURE Modify@3();    VAR      PaymentLine@1120001 : Record 10866;      PaymentModification@1120000 : Form 10871;    BEGIN      IF "Line No." = 0 THEN        MESSAGE(Text001)      ELSE IF NOT Posted THEN BEGIN        PaymentLine.COPY(Rec);        PaymentLine.SETRANGE("No.","No.");        PaymentLine.SETRANGE("Line No.","Line No.");        PaymentModification.SETTABLEVIEW(PaymentLine);        PaymentModification.RUNMODAL;      END ELSE        MESSAGE(Text002);    END;// End of the deleted lines.    PROCEDURE Insert@1120007();    VAR      PaymentManagement@1120000 : Codeunit 10860;    BEGIN...

    Replacement code 2

    ...MESSAGE(Text002);    END;    PROCEDURE InsertLines@1120007();    VAR      PaymentManagement@1120000 : Codeunit 10860;    BEGIN...
  9. Change the code in the Delete function in the Payment Slip Subform Page (10869) as follows:Existing code

    ...PaymentManagement.LinesInsert("No.");    END;// Delete the following line.    PROCEDURE Delete@4();// End of the deleted line.    VAR      PostingStatement@1120000 : Codeunit 10860;      StatementLine@1120001 : Record 10866;...

    Replacement code

    ...PaymentManagement.LinesInsert("No.");    END;// Add the following line.    PROCEDURE DeleteLines@4();// End of the added line.    VAR      PostingStatement@1120000 : Codeunit 10860;      StatementLine@1120001 : Record 10866;...

Prerequisites

You must have one of the following products installed to apply this hotfix:

  • The French version of Microsoft Dynamics NAV 2009 Service Pack 1

  • The French version of Microsoft Dynamics NAV 2009 R2

Removal information

You cannot remove this hotfix.

Status

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

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Usefor other considerations.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.