1365 is still printed unexpectedly in the Itemized VAT Statement report (14522) in the Hungarian version of Microsoft Dynamics NAV 2009 R2. 1365 was a temporary name that was used only in the year of 2013. The issue still occurs after implementing hotfix 2976080. Follow the steps in the code changes section to solve this issue.
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:-
Change the code in Object Heading in the Itemized VAT Statement report (14522) as follows:
Existing code...
{ Date=20/02/14; Time=09:14:52; Version List=TFS339063; } PROPERTIES ...Replacement code
...
{ Date=20/02/14; Time=09:14:52; Modified=Yes; Version List=TFS339063; } PROPERTIES ... -
Change the code in Properties in the Itemized VAT Statement report (14522) as follows:
Existing code...
{ CaptionML=[ENU=Itemized VAT Statement; HUN=T�teles fakimutat s]; PaperSize=A4 210 x 297 mm; } DATAITEMS ...Replacement code
...
{ CaptionML=[ENU=Itemized VAT Statement; HUN=T�teles fakimutat s]; OnPreReport=BEGIN ReportCaption := GetFormID(StartDate); END; PaperSize=A4 210 x 297 mm; } DATAITEMS ... -
Change the code in the Itemized VAT Statement report (14522) as follows:
Existing code 1...
{ 1170000015;TextBox;4200 ;846 ;1500 ;423 ;FontSize=9; SourceExpr=PartnerBuffer.COUNT; DataSetFieldName=PartnerBuffer_COUNT } { 1170000054;Label ;750 ;0 ;3750 ;846 ;FontSize=18; CaptionML=[ENU=1365A; HUN=1365A]; DataSetFieldName=V1365ACaption } { 1170000056;Label ;750 ;1692 ;3900 ;846 ;FontSize=18; CaptionML=[ENU=1365A-01-05; HUN=1365A-01-05]; DataSetFieldName=V1365A_01_05Caption } { 1170000057;Label ;750 ;846 ;3450 ;423 ;HorzAlign=Left; FontSize=9; FontBold=Yes; ...Replacement code 1
...
{ 1170000015;TextBox;4200 ;846 ;1500 ;423 ;FontSize=9; SourceExpr=PartnerBuffer.COUNT; DataSetFieldName=PartnerBuffer_COUNT } { 1170000057;Label ;750 ;846 ;3450 ;423 ;HorzAlign=Left; FontSize=9; FontBold=Yes; ...Existing code 2
...
CaptionML=[ENU=Number of Partners:; HUN=Partnerek sz ma:]; DataSetFieldName=Number_of_partners_Caption } { 1170000023;Label ;750 ;4230 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M line 01; HUN=1365M �sszeg�nek 01. sora]; DataSetFieldName=Total_of_1365M_01Caption } { 1170000105;Label ;750 ;4653 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M line 02; HUN=1365M �sszeg�nek 02. sora]; DataSetFieldName=Total_of_1365M_01KCaption } { 1170000106;Label ;750 ;5922 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M line 04; HUN=1365M �sszeg�nek 04. sora]; DataSetFieldName=Total_of_1365M_02Caption } { 1170000107;Label ;750 ;6345 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M line 05; HUN=1365M �sszeg�nek 05. sora]; DataSetFieldName=Total_of_1365M_02KCaption } { 1170000108;Shape ;4500 ;3807 ;13800;423 ;BorderWidth=1pt; ShapeStyle=HorzLine } { 1170000109;Label ;750 ;6768 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M line 06; HUN=1365M �sszeg�nek 06. sora]; DataSetFieldName=Total_of_purchase_invoicesCaption } { 1170000110;Label ;8700 ;3384 ;3300 ;423 ;HorzAlign=Right; FontSize=9; FontBold=Yes; ...Replacement code 2
...
CaptionML=[ENU=Number of Partners:; HUN=Partnerek sz ma:]; DataSetFieldName=Number_of_partners_Caption } { 1170000108;Shape ;4500 ;3807 ;13800;423 ;BorderWidth=1pt; ShapeStyle=HorzLine } { 1170000110;Label ;8700 ;3384 ;3300 ;423 ;HorzAlign=Right; FontSize=9; FontBold=Yes; ...Existing code 3
...
DecimalPlaces=0:0; SourceExpr=VatAmount02Total+VatAmount02KTotal+VatAmount6Total; DataSetFieldName=VatAmount02VatAmount02KVatAmount6 } } } } ...Replacement code 3
...
DecimalPlaces=0:0; SourceExpr=VatAmount02Total+VatAmount02KTotal+VatAmount6Total; DataSetFieldName=VatAmount02VatAmount02KVatAmount6 } { 1170000153;TextBox;750 ;0 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'A' } { 1170000156;TextBox;750 ;1692 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'A-01-05' } { 1170000160;TextBox;750 ;4230 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365Mline,ReportCaption + 'M','01') } { 1170000006;TextBox;750 ;4653 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365Mline,ReportCaption + 'M','02') } { 1170000023;TextBox;750 ;5922 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365Mline,ReportCaption + 'M','04') } { 1170000028;TextBox;750 ;6345 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365Mline,ReportCaption + 'M','05') } { 1170000054;TextBox;750 ;6768 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365Mline,ReportCaption + 'M','06') } } } } ...Existing code 4
...
FontSize=9; SourceExpr=PartnerName; DataSetFieldName=PartnerName } { 1170000059;Label ;750 ;423 ;3900 ;846 ;FontSize=18; CaptionML=[ENU=1365M; HUN=1365M]; DataSetFieldName=V1365MCaption } { 1170000060;Label ;750 ;1692 ;2850 ;423 ;HorzAlign=Left; FontSize=9; FontBold=Yes; ...Replacement code 4
...
FontSize=9; SourceExpr=PartnerName; DataSetFieldName=PartnerName } { 1170000060;Label ;750 ;1692 ;2850 ;423 ;HorzAlign=Left; FontSize=9; FontBold=Yes; ...Existing code 5
...
CaptionML=[ENU=Partner Name:; HUN=Partner neve:]; DataSetFieldName=Partner_name_Caption } { 1170000066;Label ;750 ;4230 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M-01; HUN=1365M-01 �sszege]; DataSetFieldName=Total1365M_01Caption } { 1170000067;Label ;750 ;4653 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M-01K; HUN=1365M-01K �sszege]; DataSetFieldName=Total1365M_01KCapton } { 1170000068;Label ;750 ;5076 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M-02; HUN=1365M-02 �sszege]; DataSetFieldName=Total1365M_02Caption } { 1170000069;Label ;750 ;5499 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of 1365M-02K; HUN=1365M-02K �sszege]; DataSetFieldName=Total1365M_02KCaption } { 1170000070;Label ;750 ;5922 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of purchase invoices; ...Replacement code 5
...
CaptionML=[ENU=Partner Name:; HUN=Partner neve:]; DataSetFieldName=Partner_name_Caption } { 1170000070;Label ;750 ;5922 ;3750 ;423 ;FontSize=9; FontBold=Yes; CaptionML=[ENU=Total of purchase invoices; ...Existing code 6
...
FontBold=Yes; SourceExpr=PartnerNo.Number; DataSetFieldName=PartnerNo_Number } } } } ...Replacement code 6
...
FontBold=Yes; SourceExpr=PartnerNo.Number; DataSetFieldName=PartnerNo_Number } { 1170000157;TextBox;750 ;423 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'M' } { 1170000056;TextBox;750 ;4230 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365M,ReportCaption + 'M-01') } { 1170000105;TextBox;750 ;4653 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365M,ReportCaption + 'M-01K') } { 1170000106;TextBox;750 ;5076 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365M,ReportCaption + 'M-02') } { 1170000107;TextBox;750 ;5499 ;3750 ;423 ;FontSize=9; FontBold=Yes; SourceExpr=STRSUBSTNO(TotalOf1365M,ReportCaption + 'M-02K') } } } } ...Existing code 7
...
} CONTROLS { { 1170000006;Label ;750 ;423 ;3900 ;846 ;FontSize=18; CaptionML=[ENU=1365M-01; HUN=1365M-01]; DataSetFieldName=V1365M_01Caption } } } { PROPERTIES ...Replacement code 7
...
} CONTROLS { { 1170000158;TextBox;750 ;423 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'M-01' } } } { PROPERTIES ...Existing code 8
...
} CONTROLS { { 1170000065;Label ;750 ;423 ;3900 ;846 ;FontSize=18; CaptionML=[ENU=1365M-01K; HUN=1365M-01K]; DataSetFieldName=V1365M_01KCaption } } } { PROPERTIES ...Replacement code 8
...
} CONTROLS { { 1170000159;TextBox;750 ;423 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + '01K' } } } { PROPERTIES ...Existing code 9
...
} CONTROLS { { 1170000028;Label ;750 ;423 ;3900 ;846 ;FontSize=18; CaptionML=[ENU=1365M-02; HUN=1365M-02]; DataSetFieldName=V1365M_02Caption } } } { PROPERTIES ...Replacement code 9
...
} CONTROLS { { 1170000162;TextBox;750 ;423 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'M-02' } } } { PROPERTIES ...Existing code 10
...
} CONTROLS { { 1170000080;Label ;600 ;423 ;3750 ;846 ;FontSize=18; CaptionML=[ENU=1365M-02K; HUN=1365M-02K]; DataSetFieldName=V1365M_02KCaption } } } { PROPERTIES ...Replacement code 10
...
} CONTROLS { { 1170000163;TextBox;750 ;423 ;3900 ;846 ;FontSize=18; SourceExpr=ReportCaption + 'M-02K' } } } { PROPERTIES ... -
Change the code in Global Variables in the Itemized VAT Statement report (14522) as follows:
Existing code 1...
PartnerBuffer@1170000008 : TEMPORARY Record 14551; PartnerName@1170000012 : Text[250]; PartnerVatId@1170000013 : Text[30]; PartnerId@1170000004 : Code[20]; InvNo@1170000017 : Code[20]; InvType@1170000023 : Code[20]; ...Replacement code 1
...
PartnerBuffer@1170000008 : TEMPORARY Record 14551; PartnerName@1170000012 : Text[250]; PartnerVatId@1170000013 : Text[30]; ReportCaption@1170000055 : Text[30]; PartnerId@1170000004 : Code[20]; InvNo@1170000017 : Code[20]; InvType@1170000023 : Code[20]; ...Existing code 2
...
VatAmount02@1170000052 : Decimal; VatAmount02K@1170000051 : Decimal; VatAmount6@1170000050 : Decimal; PROCEDURE SetBuffer@1170000000(VAR Buff@1170000000 : Record 14550;StartPeriod@1170000001 : Date;EndPeriod@1170000002 : Date;VATThresholdAmt@1170000003 : Decimal); BEGIN ...Replacement code 2
...
VatAmount02@1170000052 : Decimal; VatAmount02K@1170000051 : Decimal; VatAmount6@1170000050 : Decimal; TotalOf1365Mline@1170000057 : TextConst 'ENU=Total of %1 line %2;HUN=%1 �sszeg�nek %2. sora'; TotalOf1365M@1170000058 : TextConst 'ENU=Total of %1;HUN=%1 �sszeg�nek'; PROCEDURE SetBuffer@1170000000(VAR Buff@1170000000 : Record 14550;StartPeriod@1170000001 : Date;EndPeriod@1170000002 : Date;VATThresholdAmt@1170000003 : Decimal); BEGIN ... -
Change the code in the GetFormID function in the Itemized VAT Statement report (14522) as follows:
Existing code...
EXIT(ROUND(Amount/1000,1)); END; BEGIN END. } ...Replacement code
...
EXIT(ROUND(Amount/1000,1)); END; PROCEDURE GetFormID@1170000002(PeriodFrom@1170000000 : Date) : Text[4]; BEGIN EXIT(FORMAT(PeriodFrom,0,'<Year>') + '65'); END; BEGIN END. } ...
Prerequisites
You must have the Hungarian version of Microsoft Dynamics NAV 2009 R2 installed to apply this hotfix.
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.