Você está na página 1de 8

OBJECT Report 33009168 Statement of accounts

{
OBJECT-PROPERTIES
{
Date=05-06-11;
Time=[ 7:39:22 PM];
Modified=Yes;
Version List=EDU3.0;
}
PROPERTIES
{
CaptionML=ENU=Statement of accounts;
LeftMargin=3000;
OnPreReport=BEGIN
// Start 01.KATHIR
Companyinformation.GET;
Companyinformation.CALCFIELDS(Picture);
// Stop 01.KATHIr
END;
}
DATAITEMS
{
{ PROPERTIES
{
DataItemTable=Table33009146;
DataItemTableView=SORTING(No.);
NewPagePerGroup=Yes;
OnPreDataItem=BEGIN
IF StartingDate = 0D THEN
ERROR(Text000);
IF EndingDate = 0D THEN
ERROR(Text001);
END;
OnAfterGetRecord=BEGIN
// Start 02.KATHIR
IF StateRec.GET(State) THEN;
IF Countries.GET(Country) THEN;
TotalDebit := 0;
NetBalance := 0;
TotalCredit := 0;
// Start 02.KATHIR
END;
ReqFilterFields=No.;
GroupTotalFields=No.;
}
SECTIONS
{
{ PROPERTIES
{
SectionType=Header;
PrintOnEveryPage=Yes;
SectionWidth=14912;
SectionHeight=7273;
}
CONTROLS
{
{ 1102155025;Label ;4376 ;6772 ;5250 ;423 ;HorzAlign=Center;
FontSize=10;
FontBold=Yes;
CaptionML=ENU=STATEMENT
OF ACCOUNTS;
DataSetFieldName=Applic
ation_DetailsCaption }
{ 1102155013;Shape ;636 ;1957 ;13520;5316 }
{ 1102155016;Label ;1430 ;4894 ;12600;846 ;HorzAlign=Center;
VertAlign=Center;
FontName=Arial;
FontSize=14;
CaptionML=ENU=The Hyder
abad Public School, Begumpet }
{ 1102155017;Label ;1430 ;5740 ;12600;423 ;HorzAlign=Center;
VertAlign=Center;
FontSize=8;
CaptionML=ENU=1-11-87 &
88, Begumpet, S. P. Road, Hyderabad, AP 500016, India. Phone: +91 (40) 2776-15
46, }
{ 1102155018;Label ;1430 ;6163 ;12600;423 ;HorzAlign=Center;
VertAlign=Center;
FontSize=8;
CaptionML=ENU=Fax: (40)
2776-4698 web: - hpsbegumpet.org.in email: - contactus@hpsbegumpet.org.in }
{ 1102155019;PictureBox;5573;2248;3000;2538 ;SourceExpr=CompanyInfor
mation.Picture;
DataSetFieldName=CompIn
foRec_Picture }
}
}
{ PROPERTIES
{
SectionType=Body;
SectionWidth=14912;
SectionHeight=2538;
}
CONTROLS
{
{ 1102155043;TextBox;3450 ;0 ;1800 ;423 ;FontSize=10;
SourceExpr="No.";
DataSetFieldName=Studen
t__No__ }
{ 1102155045;TextBox;7650 ;0 ;5850 ;423 ;FontSize=10;
SourceExpr=Name;
DataSetFieldName=Studen
t_Name }
{ 1102155047;Label ;1200 ;0 ;2100 ;423 ;FontSize=10;
FontBold=Yes;
CaptionML=ENU=Student N
o :;
DataSetFieldName=Studen
t_No__Caption }
{ 1102155048;Label ;5550 ;0 ;1800 ;423 ;FontSize=10;
FontBold=Yes;
CaptionML=ENU=Name :;
DataSetFieldName=Name__
_Caption }
{ 1102155050;Shape ;600 ;0 ;50 ;2538 ;ShapeStyle=VertLine }
{ 1102155051;Shape ;14100;0 ;50 ;2538 ;ShapeStyle=VertLine }
{ 1102155005;TextBox;7650 ;423 ;5850 ;423 ;FontSize=9;
SourceExpr=Address1;
DataSetFieldName=Studen
t_Address1 }
{ 1102155026;TextBox;7650 ;846 ;5850 ;423 ;FontSize=9;
SourceExpr=Address2;
DataSetFieldName=Studen
t_Address2 }
{ 1102155031;TextBox;7650 ;1269 ;5850 ;423 ;FontSize=9;
SourceExpr=City;
DataSetFieldName=Studen
t_City }
{ 1102155057;TextBox;7650 ;1692 ;2250 ;423 ;FontSize=9;
SourceExpr="Post Code";
DataSetFieldName=Studen
t__Post_Code_ }
{ 1102155059;TextBox;7650 ;2115 ;5850 ;423 ;FontSize=9;
SourceExpr=Countries.Na
me;
DataSetFieldName=Countr
ies_Name }
{ 1102155061;TextBox;10350;1692 ;3150 ;423 ;FontSize=9;
SourceExpr=StateRec.Des
cription;
DataSetFieldName=StateR
ec_Description }
{ 1102155024;Label ;5550 ;423 ;1800 ;423 ;FontSize=10;
FontBold=Yes;
CaptionML=ENU=Address :
;
DataSetFieldName=Addres
s__Caption }
}
}
{ PROPERTIES
{
SectionType=Body;
SectionWidth=14912;
SectionHeight=866;
}
CONTROLS
{
{ 1102155069;Label ;7800 ;0 ;2250 ;846 ;HorzAlign=Right;
FontSize=9;
FontBold=Yes;
CaptionML=ENU=FEE DUE;
DataSetFieldName=FEE_DU
ECaption }
{ 1102155070;Label ;11400;0 ;2250 ;846 ;HorzAlign=Right;
FontSize=9;
FontBold=Yes;
CaptionML=ENU=FEE PAID;
DataSetFieldName=FEE_PA
IDCaption }
{ 1102155071;Label ;1200 ;0 ;1500 ;846 ;FontSize=9;
FontBold=Yes;
CaptionML=ENU=DATE;
DataSetFieldName=DATECa
ption }
{ 1102155072;Label ;3450 ;0 ;3150 ;846 ;FontSize=9;
FontBold=Yes;
CaptionML=ENU=PARTICULA
RS;
DataSetFieldName=PARTIC
ULARSCaption }
{ 1102155073;Shape ;600 ;0 ;50 ;840 ;ShapeStyle=VertLine }
{ 1102155074;Shape ;640 ;0 ;13500;50 ;ShapeStyle=HorzLine }
{ 1102155075;Shape ;640 ;816 ;13500;50 ;ShapeStyle=HorzLine }
{ 1102155076;Shape ;14100;0 ;50 ;840 ;ShapeStyle=VertLine }
{ 1102155077;Shape ;3150 ;0 ;50 ;840 ;ShapeStyle=VertLine }
{ 1102155078;Shape ;7650 ;0 ;50 ;840 ;ShapeStyle=VertLine }
{ 1102155079;Shape ;10650;0 ;50 ;840 ;ShapeStyle=VertLine }
}
}
{ PROPERTIES
{
SectionType=GroupFooter;
SectionWidth=14912;
SectionHeight=2115;
}
CONTROLS
{
{ 1102155002;Shape ;600 ;0 ;13520;2115 }
{ 1102155003;TextBox;7930 ;423 ;2250 ;423 ;FontSize=9;
FontBold=Yes;
SourceExpr=TotalDebit;
DataSetFieldName=Total_
Debit_ }
{ 1102155007;TextBox;11380;423 ;2400 ;423 ;FontSize=9;
FontBold=Yes;
SourceExpr=TotalCredit;
DataSetFieldName=Total_
Credit_ }
{ 1102155009;Label ;4930 ;423 ;2400 ;423 ;HorzAlign=Right;
FontSize=9;
FontBold=Yes;
CaptionML=ENU=GRAND TOT
AL;
DataSetFieldName=GRAND_
TOTALCaption }
{ 1102155011;Label ;4930 ;1269 ;2400 ;423 ;HorzAlign=Right;
FontSize=9;
FontBold=Yes;
CaptionML=ENU=NET BALAN
CE;
DataSetFieldName=NET_BA
LANCECaption }
{ 1102155012;TextBox;7930 ;1269 ;2250 ;423 ;HorzAlign=Right;
FontSize=9;
FontBold=Yes;
SourceExpr=NetBalance;
DataSetFieldName=Net_Ba
lance_ }
{ 1102155014;Shape ;7650 ;0 ;50 ;2115 ;ShapeStyle=VertLine }
{ 1102155015;Shape ;10650;0 ;50 ;2115 ;ShapeStyle=VertLine }
}
}
}
}
{ PROPERTIES
{
DataItemIndent=1;
DataItemTable=Table21;
DataItemTableView=SORTING(Customer No.,Posting Date);
OnPreDataItem=BEGIN
// Start 03.KATHIR
SETFILTER("Posting Date",'<%1',StartingDate);
// Start 03.KATHIR
END;
OnAfterGetRecord=BEGIN
// Start 04.KATHIR
TotalDebit += "Amount (LCY)";
OpBal += "Amount (LCY)";
NetBalance := OpBal;
// Start 04.KATHIR
END;
TotalFields=Amount (LCY);
CalcFields=Amount (LCY);
DataItemLink=Customer No.=FIELD(No.);
}
SECTIONS
{
{ PROPERTIES
{
SectionType=Footer;
SectionWidth=14912;
SectionHeight=600;
}
CONTROLS
{
{ 1102155001;TextBox;7950 ;0 ;2250 ;423 ;HorzAlign=Right;
FontSize=9;
SourceExpr="Amount (LCY
)";
DataSetFieldName=Cust__
Ledger_Entry__Amount__LCY__ }
{ 1102155000;Label ;3450 ;0 ;2850 ;423 ;FontSize=9;
CaptionML=ENU=Opening B
alance;
DataSetFieldName=Openin
g_BalanceCaption }
{ 1102155010;TextBox;1050 ;0 ;1800 ;423 ;FontSize=9;
SourceExpr=StartingDate
;
DataSetFieldName=Starti
ng_Date_ }
{ 1102155020;Shape ;3150 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155021;Shape ;7650 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155022;Shape ;10650;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155023;Shape ;14100;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155049;Shape ;600 ;0 ;50 ;600 ;ShapeStyle=VertLine }
}
}
}
}
{ PROPERTIES
{
DataItemIndent=1;
DataItemTable=Table21;
DataItemTableView=SORTING(Customer No.,Posting Date);
DataItemVarName=Cust. Ledger Entry1;
OnPreDataItem=BEGIN
// Start 05.KATHIR
SETRANGE("Posting Date",StartingDate,EndingDate);
// Start 05.KATHIR
END;
OnAfterGetRecord=BEGIN
// Start 06.KATHIR
TotalDebit += "Debit Amount (LCY)";
TotalCredit += "Credit Amount (LCY)";
NetBalance += "Amount (LCY)";
// Start 06.KATHIR
END;
CalcFields=Debit Amount (LCY),Credit Amount (LCY),Amount (LCY);
DataItemLink=Customer No.=FIELD(No.);
}
SECTIONS
{
{ PROPERTIES
{
SectionType=Header;
SectionWidth=14912;
SectionHeight=600;
}
CONTROLS
{
{ 1102155039;Label ;3900 ;0 ;3150 ;423 ;FontSize=9;
FontBold=Yes;
CaptionML=ENU=OTHER EXP
ENSES;
DataSetFieldName=OTHER_
EXPENSESCaption }
{ 1102155052;Shape ;600 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155053;Shape ;14100;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155054;Shape ;3150 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155055;Shape ;7650 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155056;Shape ;10650;0 ;50 ;600 ;ShapeStyle=VertLine }
}
}
{ PROPERTIES
{
SectionType=Body;
SectionWidth=14912;
SectionHeight=600;
}
CONTROLS
{
{ 1102155006;TextBox;7800 ;0 ;2550 ;423 ;FontSize=9;
SourceExpr="Debit Amoun
t (LCY)";
DataSetFieldName=Cust__
Ledger_Entry1__Debit_Amount__LCY__ }
{ 1102155008;TextBox;11250;0 ;2550 ;423 ;FontSize=9;
SourceExpr="Credit Amou
nt (LCY)";
DataSetFieldName=Cust__
Ledger_Entry1__Credit_Amount__LCY__ }
{ 1102155004;TextBox;3300 ;0 ;4200 ;423 ;FontSize=9;
SourceExpr=Description;
DataSetFieldName=Cust__
Ledger_Entry1_Description }
{ 1102155027;TextBox;900 ;0 ;1950 ;423 ;FontSize=9;
SourceExpr="Posting Dat
e";
DataSetFieldName=Cust__
Ledger_Entry1__Posting_Date_ }
{ 1102155029;Shape ;600 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155033;Shape ;3150 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155034;Shape ;7650 ;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155035;Shape ;10650;0 ;50 ;600 ;ShapeStyle=VertLine }
{ 1102155037;Shape ;14100;0 ;50 ;600 ;ShapeStyle=VertLine }
}
}
}
}
}
REQUESTFORM
{
PROPERTIES
{
Width=9020;
Height=3410;
}
CONTROLS
{
{ 1102155000;TextBox;3740 ;440 ;1700 ;440 ;InPage=-1;
SourceExpr=StartingDate }
{ 1102155001;Label ;330 ;440 ;3300 ;440 ;ParentControl=1102155000;
CaptionML=ENU=Starting Date }
{ 1102155002;TextBox;3740 ;990 ;1700 ;440 ;InPage=-1;
SourceExpr=EndingDate }
{ 1102155003;Label ;330 ;990 ;3300 ;440 ;ParentControl=1102155002;
CaptionML=ENU=Ending Date }
}
}
REQUESTPAGE
{
PROPERTIES
{
}
CONTROLS
{
{ 1102155000;;Container;
Name=Statement of accounts;
ContainerType=ContentArea }
{ 1102155001;1;Field ;
Name=Starting Date;
CaptionML=ENU=Starting Date;
SourceExpr=StartingDate }
{ 1102155002;1;Field ;
Name=Ending Date;
CaptionML=ENU=Ending Date;
SourceExpr=EndingDate }
}
}
CODE
{
VAR
StartingDate@1102155000 : Date;
EndingDate@1102155001 : Date;
TotalDebit@1102155003 : Decimal;
Companyinformation@1102155002 : Record 79;
TotalCredit@1102155004 : Decimal;
NetBalance@1102155005 : Decimal;
OpBal@1102155006 : Decimal;
StateRec@1102155007 : Record 13762;
Countries@1102155008 : Record 9;
Text000@1102155009 : TextConst 'ENU=Starting date cannot be empty';
Text001@1102155010 : TextConst 'ENU=Ending date cannot be empty.';
BEGIN
{
No Date Sign Trigger Descri
ption
--------------------------------------------------------------------------
--------------------
01 14/10/09 KATHIR Report - OnPreReport() Code a
dded to display company information
02 14/10/09 KATHIR Student - OnAfterGetRecord() Code a
dded to display State Name and Country Name
03 14/10/09 KATHIR Cust. Ledger Entry - OnPreDataItem() Code a
dded to filter Cust Led Entry to get opening balance
04 14/10/09 KATHIR Cust. Ledger Entry - OnAfterGetRecord() Code a
dded to add all debit amount for opening balance
05 14/10/09 KATHIR Cust. Ledger Entry1 - OnPreDataItem() Code a
dded to Filter records based on Starting date and ending d
06 14/10/09 KATHIR Cust. Ledger Entry1 - OnAfterGetRecord() Code a
dded to Calculate Net Balance
}
END.
}
}

Você também pode gostar