This article applies to Microsoft Dynamics NAV for the Austrian (at) language locale.
Symptoms
Assume that you install the latest VAT update for the Austrian version of Microsoft Dynamics NAV 2009 R2 and of Microsoft Dynamics NAV 2009 Service Pack 1 (SP1). When you print the VAT Statement report (11110) in the RoleTailored client (RTC), the Option tab in the Edit-VAT Statement dialog box is missing and you cannot set up the VAT Statement report. However, in the Classic client you can print the report as expected. For more information about the latest VAT update, visit one of the following Microsoft websites:
Partners:
VAT Statement Layout Change 2012 for Microsoft Dynamics NAV 2009 SP1 - AustriaCustomers:
VAT Statement Layout Change 2012 for Microsoft Dynamics NAV 2009 SP1 - Austria
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 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 resolve this problem, change the code in the VAT Statement report (11110). To do this, follow these steps:
-
Change the code in the request form as follows:
Existing code...
{
// Delete the following lines.
}
CONTROLS
{
// End of the deleted lines.
}
...Replacement code
...
{
// Add the following lines.
SaveValues=Yes;
OnInit=BEGIN
XMLFilenameControlVisible := TRUE;
FDFFilenameControlVisible := TRUE;
END;
OnOpenPage=BEGIN
CLEAR(NumberPar6Abs1);
IF (Startingdate <> 0D) AND (Endingdate <> 0D) THEN BEGIN
IF (Startingdate = CALCDATE('<-CQ>',Startingdate)) AND (Endingdate = CALCDATE('<+CQ>',Startingdate)) THEN
PeriodType := PeriodType::quarter
ELSE IF (Startingdate = CALCDATE('<-CM>',Startingdate)) AND (Endingdate = CALCDATE('<+CM>',Startingdate)) THEN
PeriodType := PeriodType::month
ELSE
PeriodType := PeriodType::"defined period";
END ELSE
PeriodType := PeriodType::"defined period";
FDFFilenameControlVisible := NOT ISSERVICETIER;
XMLFilenameControlVisible := NOT ISSERVICETIER;
END;
}
CONTROLS
{
{ 1900000001;0;Container;
ContainerType=ContentArea }
{ 1900000002;1;Group ;
CaptionML=ENU=Options }
{ 1160010;2;Field ;
CaptionML=[ENU=Starting Date;
DEA=Startdatum];
SourceExpr=Startingdate;
OnValidate=VAR
RefDate@1160000 : Date;
BEGIN
CLEAR(RefDate);
IF Startingdate <> 0D THEN
RefDate := Startingdate
ELSE IF Endingdate <> 0D THEN
RefDate := Endingdate;
IF RefDate <> 0D THEN BEGIN
IF PeriodType = PeriodType::quarter THEN BEGIN
Startingdate := CALCDATE('<-CQ>',RefDate);
Endingdate := CALCDATE('<+CQ>',RefDate);
END ELSE IF PeriodType = PeriodType::month THEN BEGIN
Startingdate := CALCDATE('<-CM>',RefDate);
Endingdate := CALCDATE('<+CM>',RefDate);
END ELSE BEGIN
IF Endingdate = 0D THEN
Endingdate := RefDate;
IF Startingdate = 0D THEN
Startingdate := RefDate;
END;
END;
END;
}
{ 1160012;2;Field ;
CaptionML=[ENU=Ending Date;
DEA=Enddatum];
SourceExpr=Endingdate;
OnValidate=VAR
RefDate@1160000 : Date;
BEGIN
CLEAR(RefDate);
IF Endingdate <> 0D THEN
RefDate := Endingdate
ELSE IF Startingdate <> 0D THEN
RefDate := Startingdate;
IF RefDate <> 0D THEN BEGIN
IF PeriodType = PeriodType::quarter THEN BEGIN
Startingdate := CALCDATE('<-CQ>',RefDate);
Endingdate := CALCDATE('<+CQ>',RefDate);
END ELSE IF PeriodType = PeriodType::month THEN BEGIN
Startingdate := CALCDATE('<-CM>',RefDate);
Endingdate := CALCDATE('<+CM>',RefDate);
END ELSE BEGIN
IF Startingdate = 0D THEN
Startingdate := RefDate;
IF Endingdate = 0D THEN
Endingdate := RefDate;
END;
END;
END;
}
{ 8 ;2 ;Field ;
CaptionML=[ENU=Include VAT Entries;
DEA=MwSt.-Posten einschlieáen];
OptionCaptionML=[ENU=Open,Closed,Open and Closed;
DEA=Offen,Geschlossen,Offen und geschlossen];
SourceExpr=Selection }
{ 4 ;2 ;Field ;
CaptionML=[ENU=Include VAT Entries;
DEA=MwSt.-Posten einschlieáen];
OptionCaptionML=[ENU=Before and Within Period,Within Period;
DEA=Vor und innerhalb Periode,Innerhalb Periode];
SourceExpr=PeriodSelection }
{ 11 ;2 ;Field ;
CaptionML=[ENU=Reporting Type;
DEA=Berichtstyp];
OptionCaptionML=[ENU=Quarter,Month,Defined period;
DEA=Quartal,Monat,Definierte Periode];
SourceExpr=PeriodType;
OnValidate=BEGIN
IF PeriodType = PeriodType::month THEN
monthPeriodTypeOnValidate;
IF PeriodType = PeriodType::quarter THEN
quarterPeriodTypeOnValidate;
END;
}
{ 1160007;2;Field ;
CaptionML=[ENU=Check Positions;
DEA=Positionen prfen];
SourceExpr=CheckPositions }
{ 1 ;2 ;Field ;
CaptionML=[ENU=Round to Whole Numbers;
DEA=Auf ganze Zahlen runden];
SourceExpr=PrintInWholeNumbers }
{ 1160015;2;Field ;
Name=PDFFilenameControl;
CaptionML=[ENU=PDF File Name;
DEA=PDF-Dateiname];
SourceExpr=PDFFileName;
OnAssistEdit=BEGIN
PDFFileName := CommonDlgMgt.OpenFile(Text1160052,PDFFileName,4,Text1160053,0);
END;
}
{ 1160017;2;Field ;
Name=FDFFilenameControl;
CaptionML=[ENU=FDF File Name;
DEA=FDF-Dateiname];
SourceExpr=FDFFileName;
Visible=FDFFilenameControlVisible;
OnAssistEdit=BEGIN
FDFFileName := CommonDlgMgt.OpenFile(Text1160054,FDFFileName,4,Text1160055,1);
END;
}
{ 1160001;2;Field ;
Name=XMLFilenameControl;
CaptionML=[ENU=XML File Name;
DEA=XML-Dateiname];
SourceExpr=XMLFileName;
Visible=XMLFilenameControlVisible;
OnAssistEdit=BEGIN
XMLFileName := CommonDlgMgt.OpenFile(Text1160056,XMLFileName,4,Text1160057,1);
END;
}
{ 1160003;2;Field ;
CaptionML=[ENU=Surplus Used to Pay Dues;
DEA=Fr Zahlung von Verbindlichkeiten genutzter šberschuss];
SourceExpr=UseARE }
{ 1160005;2;Field ;
CaptionML=[ENU=Additional Invoices sent via Mail;
DEA=Weitere per Post geschickte Rechnungen];
SourceExpr=UseREPO }
{ 1160000;2;Field ;
CaptionML=[ENU=Number õ6 Abs. 1;
DEA=Nummer õ 6 Abs. 1];
Numeric=Yes;
BlankZero=Yes;
SourceExpr=NumberPar6Abs1;
MinValue=0;
MaxValue=99 }
// End of the added lines.
}
... -
Add a global variable, and then specify the variable as follows:
-
Name: FDFFilenameControlVisible
-
DataType: Boolean
-
Subtype: INDATASET
-
-
Add a global variable, and then specify the variable as follows:
-
Name: XMLFilenameControlVisible
-
DataType: Boolean
-
Subtype: INDATASET
-
-
Change the code in the quarterPeriodTypeOnValidatefunction as follows:
Existing code...
BEGIN
...Replacement code
...
// Add the following lines.
LOCAL PROCEDURE quarterPeriodTypeOnValidate@19029369();
BEGIN
IF Startingdate <> 0D THEN
IF (Startingdate <> CALCDATE('<-CQ>',Startingdate)) OR (Endingdate <> CALCDATE('<+CQ>',Startingdate)) THEN
IF CONFIRM(Text1160061, TRUE) THEN BEGIN
Startingdate := CALCDATE('<-CQ>',Startingdate);
Endingdate := CALCDATE('<+CQ>',Startingdate);
END ELSE
ERROR('');
END;
LOCAL PROCEDURE monthPeriodTypeOnValidate@19063435();
BEGIN
IF Startingdate <> 0D THEN
IF (Startingdate <> CALCDATE('<-CM>',Startingdate)) OR (Endingdate <> CALCDATE('<+CM>',Startingdate)) THEN
IF CONFIRM(Text1160061, TRUE) THEN BEGIN
Startingdate := CALCDATE('<-CM>',Startingdate);
Endingdate := CALCDATE('<+CM>',Startingdate);
END ELSE
ERROR('');
END;
// End of the added lines.
BEGIN
...
Prerequisites
You must have one of the following products installed to apply this hotfix:
-
The Austrian version of Microsoft Dynamics NAV 2009 R2
-
The Austrian version of Microsoft Dynamics NAV 2009 Service Pack 1
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 Use for other considerations.