AL icon indicating copy to clipboard operation
AL copied to clipboard

Wrong parameter for GenJnlCheckLine.IsDateNotAllowed in codeunit 395 "FinChrgMemo-Issue"

Open Frantic42 opened this issue 3 years ago • 1 comments

Finance Charge Memo with a Name field length over 20 characters cannot be issued due to an overflow. When CheckVATDate runs in c395, the following code is executed: if GenJnlCheckLine.IsDateNotAllowed(FinChrgMemoHeader."VAT Reporting Date", SetupRecID, **FinChrgMemoHeader.Name**) then

The overload for IsDateNotAllowed that accepts a third parameter expects a Code[20] value for TemplateName: procedure IsDateNotAllowed(PostingDate: Date; var SetupRecordID: RecordID; **TemplateName: Code[20]**) DateIsNotAllowed: Boolean

This can be reproduced by issuing a Finance Charge Memo with a Name containing more than 20 characters.

Frantic42 avatar Sep 18 '23 11:09 Frantic42

Wrong repository. Besides, this was already fixed in BC22.2.

dannoe avatar Sep 19 '23 05:09 dannoe