<< Click to Display Table of Contents >> Navigation: PaXcel - functions > GL Functions > GLRepBudget() |
GLRepBudget(Company, ReportCategory, Period, BudgetSet)
This function will return the budget balances using Pastel's Report Writer Category.
The arguments are as follows:
Company: This is the path to your Pastel directory. For example: c:\PastelData\_demo would enable you to retrieve information from the Pastel Partner demo company.
RepCat: This is the category code as defined by you within Sage Pastel; it can be from 1 to 99.
Period: This is either a number from 1 – 13 or a keyword combination for Year to Date
Year to Date x
Last Year to Date x
Future Year to Date x
(where x is the period).
Budget Set: Can be one of the following:
C – Current year budget
L – Last year budget
F – Future year budget
NB: If the Period keyword is of type "Year to Date" and your Budget Set code entered doesn't match the keyword type it will be altered. For example, if you request to display your 'Future' budget set and enter a period keyword of 'Year to Date x' instead of 'Future Year to Date x' then PaXcel will recognise this and internally change the keyword to 'Future Year to Date x'. This will ensure that the expected figures are returned.
Return the total budget for report writer category 1 for periods 1 to 2 this year
GLRepBudget (C1, "1", "Year to Date 2", "C" )
Return the total budget for report writer category 15 for periods 1 to 6 for last year
GLRepBudget (C1, "15", "Last Year To Date 6", "L" )
|