Professional Documents
Culture Documents
Sage300People CalculationManagement 2020
Sage300People CalculationManagement 2020
01
Notices
Disclaimer
The course materials provided are the property of The Sage Group plc or its licensors (“Sage”). Please do
not copy, reproduce, modify, distribute or disburse without express consent from Sage.
This material is provided as a general guidance for informational purposes only. Accordingly, Sage does
not provide advice per the information included. The use of this material is not a substitute for the
guidance of a lawyer, tax, or compliance professional. When in doubt, please consult your lawyer, tax, or
compliance professional for counsel. This material is provided on an ”as is” basis. Sage makes no
representations or warranties of any kind, express or implied, about the completeness or accuracy of this
training materials. Whilst Sage may make changes to this training materials at any time without notice,
Sage makes no commitment to update the training materials every time Sage’s products are updated.
The Sage product(s) described herein is/are governed by the terms and conditions per the Sage End
User License Agreement ("EULA") or other agreement that is provided with or included in the Sage
product(s). Nothing in this document supplements, modifies, or amends those terms and conditions.
© 2022 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and
service names mentioned herein are the trademarks of The Sage Group plc or its licensors. All other
trademarks are the property of their respective owners.
Copyrights
This product is copyrighted to © Sage South Africa. This product is owned by Sage and is protected by
copyright laws and international treaty provisions. All rights reserved. This publication, or any part thereof,
may not be reproduced or transmitted in any form or by any means, electronic or mechanical, including
photocopying, recording, storage in an information retrieval system. All of the copyright, trademarks, trade
names, patents and other intellectual property rights subsisting in or used in connection with the product
including all documentation relating thereto are and remain the property of Sage. This book conveys no
rights to the software or other products about which it was written; all use or licensing of such software is
held by Sage and users of this book are required to adhere to licence agreement conditions as specified
on the software. Information in this manual is subject to change without notice and does not constitute a
commitment on the part of the supplier. Sage reserves the right to revise this publication and the product,
and to make changes to the content thereof, from time to time, without obligation of Sage to notify any
person or organisation of such revision or changes.
You acknowledge that unless agreement is reached directly with Sage to provide services (including
implementation, training, consulting and similar) for the software, you are responsible for engaging a
qualified party to provide such services on terms that you negotiate. You also accept the responsibility for
independently investigating the skills and qualifications of such party to ensure that they have and can
provide the level of skill and service required. You agree that the Sage shall have no liability whatsoever
for any failure associated with such services, even if the party engaged is an authorised or certified
dealer, reseller, consultant, installer, business partner, trainer or training centre with Sage.
Training material
Is this material a genuine Sage product? All original manuals printed by Sage and its affiliates will carry a
Sage logo in the bottom right of every alternative page. Should the Sage logo not be in colour please
report this to the Sage training department.
The information above allows Sage to respond accurately and timeously to the enquiry submitted.
Lesson flow
Each lesson of this course creates building blocks for the next lesson assisting learners with process
flows and sequential learning.
POPIA
We have put in place, a set of protective measures, based on recognised industry best practices.
Click on the link below for a detailed overview.
https://www.sage.com/en-gb/legal/status/governance/
Simple and secure online payment solutions for your business. Sage Pay is
a leading payments provider to small and medium-sized businesses
throughout South Africa.
Netcash
www.netcash.co.za
support@netcash.co.za
Sales.VIP@sage.com
Additional help options
To ensure that you always get the best support from us, the following channels can be used, depending
on your query.
Sage Support Central is the official online support website, offering you a one-
stop support center for all your accounting and payroll queries.
Sage Training: For all your training requirements, from booking training
(classroom and e-Learning) to writing online assessments.
Available 24 hours a day, seven days a week, Sage City is a great place
for customers to find answers on their own and at their convenience. In
addition, Sage City gives customers a place to communicate with other
business builders on the various ways other companies are using our
solutions – allowing them to share ideas and network with one another.
The Newsfeed section inside the Sage 300 People application displays
important and relevant messages by Sage to inform you of known
support issues, legislative updates, and other communication.
Newsfeed
The Newsfeeds are added to Sage Connect and updated with the license check.
The licence check is performed each day by the first user who logs into your
Sage 300 People application.
If you find yourself in a situation where you just have a quick question and do
not want to wait in the telephone support queue, then pop us your question on
Chat support for
live chat.
quick and simple
questions
You must please keep in mind that this service can get very busy, so questions
must be short and sweet.
Sage 300 People Calculation Management
Learning objectives
On completion of this lesson, you will be able to:
1
Sage 300 People Calculation Management
Introduction
Calculations may be defined to be linked to payroll definitions in the Sage 300 People system.
Calculations may be defined for all companies in the database and may be used for more than one
payroll definition. A payroll definition may only have one linked default calculation but can be linked to
more than one custom calculation.
This type of calculation provides the opportunity to create your own formulas
Custom Calculations
and may be defined as company-specific or general calculations.
Table Lookup This function is mostly used where tables form part of medical aid
Manager calculations which are defined database wide.
Any pro rata calculation will be defined as this type of calculation and is
Pro Rata Calculations
defined database wide.
2
Sage 300 People Calculation Management
Learning objectives
On completion of this lesson, you will be able to:
3
Sage 300 People Calculation Management
Button Description
Click on the Detail button to view the information of an existing calculation on the
Detail
Calculation Detail screen.
4
Sage 300 People Calculation Management
Column Description
This column displays the company name for which the specific calculation is
Company defined. When the calculation is added as a general calculation, in other words,
not linked to a specific company, this column will be blank.
The information in this column defaults from the fields on the Properties section of
Calculation
the Expression Builder screen. Note that this field will still display on the screen
Entry Type
but has been made inactive.
Code The unique code for the specific calculation displays here.
Description The unique description for the specific calculation displays here.
As a calculation may have more than one version, generated when changes to the
Active Version
calculation are applied, this column displays the currently active version.
This column displays the selected type of answer that will be returned by the
Return Type
calculation.
5. Click on New.
5
Sage 300 People Calculation Management
13. The New record button will now be available in the Calculation Definition section to define a
calculation on the Expression Builder screen. This will be discussed in detail in the following
sections.
6
Sage 300 People Calculation Management
Select a company from the drop-down list that the calculation must be
available for. If the calculation must be available for all companies, leave this
field blank to add the calculation as a general calculation.
Make sure to link the company that will use the calculation, to enable you
to pick up other company-specific setup screen information, for example,
Medical Aid and other calculations loaded for the company.
The calculation must be linked to a calculation group that the calculation refers
to, for example, earnings when you are loading a calculation for an earning
definition. This field is used for sorting purposes on the Custom Calculations
screen and is very helpful in grouping specific calculations together. Select the
applicable group from the drop-down list.
Calculation Group
Important information
Return Type The calculation will return a decimal value, unless the answer is
Decimal
a whole number.
7
Sage 300 People Calculation Management
When you add a calculation, the Sage 300 People system will generate a
version number. The first time you add the calculation, the version number will
be 1. When you apply and save changes to the calculation, the version
Active Version
number will be 2, etc. Each version will be kept on record and you will be able
to determine which version of the calculation was used in a specific time frame.
You can select a previous version to be the currently active version.
Calculation Version This column displays the version number of the applicable calculation.
This column displays the rounding option selected on the Properties section of
Round To
the Expression Builder screen.
This column displays the operator selected on the Properties section of the
Calculation Check
Expression Builder screen for a specific logic or condition, which must apply to
Operand
the result of the calculation.
Calculation Check This column displays the value applicable to the logic or condition specified on
Value the Properties section of the Expression Builder screen.
Calculation Check This column displays the required result, as specified on the Properties section
Return of the Expression Builder screen when the logic or condition defined is true.
Buttons under the Calculation Definition section of the Calculation Details screen
Buttons Description
Important information
Activate Version
Important information
A calculation cannot be deleted while the ID of the calculation is linked to a payroll definition
8
Sage 300 People Calculation Management
5. Select the applicable calculation and click on Detail. Alternatively double-click on the applicable
calculation.
6. The Calculation Details screen displays:
9
Sage 300 People Calculation Management
9. The calculation can be edited on the Expression Builder screen, which will be discussed in detail
in the following section.
10
Sage 300 People Calculation Management
Section Description
On the Variables tab the groups (containers), containing different fields or values
applicable to employees, companies or the setup on the Sage 300 People system,
Variables tab
are listed. The items in these groups may be used in calculations, for example, the
employee’s date engaged or fixed salary.
On the Calculations tab the groups, containing existing calculations, are listed.
Calculations tab
The existing calculations in these groups may be used in other calculations.
The Operators section lists operators used for statements or comparisons. The
operators are grouped under the following three categories:
Operators
Math,
section
Logical and
Relational.
11
Sage 300 People Calculation Management
Section Description
Expression New calculations are entered in this section and existing calculations can be
section viewed here.
You may define certain behavioural properties that change the way the expression
presents the result, for example, if the answer is less than 10, display 1 instead.
The following options are available on the Properties section:
Return States the value that will replace the expression answer if ‘If
Calculation Value’ is true.
12
Sage 300 People Calculation Management
Calculation Tooltip
On the Own User Management screen, you can select to display calculation tooltips. The calculation
tooltip will display the schema, table and field name where the applicable field resides in the database.
This will assist you when creating the calculation.
To access the Own User Management screen, from the Navigation pane:
Example
The tooltip displays when you hover over a specific field. This tooltip
states: Employee.EmployeeRule.PeriodSalary (Employee).
When searching for an item on the Expression Builder screen, the same path can be used to find the
field. In the above example, the field will thus be found by navigating to Employee, Employee Rule and
then selecting the Period Salary.
End of example
13
Sage 300 People Calculation Management
Variable section
Variables refer to information available throughout the Sage 300 People system. This information is
unique per employee (for example, own salary information, etc.). The field can be selected in the
Variables section of the Expression Builder screen.
Important information
To use an employee’s fixed salary in a calculation, you will have to refer to the applicable field as shown
in the tooltip above, for example, [Employee.EmployeeRule.PeriodSalary] x 15%.
To find and select the applicable variable for the period salary of an employee, from the Calculation
Details screen:
14
Sage 300 People Calculation Management
15
Sage 300 People Calculation Management
5. Double-click on the record selector () for the Period Salary (PeriodSalary) option.
6. The following displays:
7. Once you have double-clicked on the field name on the Variables tab, the variable will be added to
the calculation in the Expression section.
16
Sage 300 People Calculation Management
Important information
When you want to multiply with a specific % you can either type it as, for example, * 15 / 100 OR
just * 0.15. The % sign under Math option refers to a different functionality that will be explained in
the next section.
17
Sage 300 People Calculation Management
Calculations tab
The Calculations tab refers to any other previously saved expressions. This list presents the user with a
shortcut to insert an existing expression into the current expression.
Important information
A copy of the selected calculation is inserted into the current calculation. This implies that a
link exists between the two calculations; if one calculation is changed at any point it will
affect the other.
To add an existing calculation to the current calculation the user will double-click on the
field’s record selector:
Nested calculations should be contained within brackets to keep the original integrity of the
expression.
18
Sage 300 People Calculation Management
Operators section
Operators are symbols used either to perform a comparison of two values or to calculate a mathematical
statement.
Math
Operator selections under the Math section of the Expression Builder screen
Operator Description
Adds the value on the left of the operator to the value on the right of the
operator and returns the sum.
+ Plus
For example:
Statement: 3 + 5 Result: 8
Deducts the value on the right of the operator from the value on the left
of the operator and returns the difference.
- Minus
For example:
Statement: 8 - 3 Result: 5
Multiplies the value on the left of the operator with the value on the right
of the operator and returns the product.
* Multiply
For example:
Statement: 3 * 4 Result: 12
Divides the value on the left of the operator by the value on the right of
the operator and returns the result.
/ Divide
For example:
Statement: 8 / 2 Result: 4
Divides the value on the left of the operator by the value to the right of
the operator and returns the remaining value after the value is divided.
For example:
Statement: 17 % 5 Result: 2
% Mod
Explanation:
17 / 5 = 3.5
5*3 = 15
17 – 15 = 2
19
Sage 300 People Calculation Management
Logical
Operator selections under the Logical section of the Expression Builder screen
Operator Description
Combines two statements and only if both statements are true does the operator return a
True. Normally this function is combined with an If statement.
And
For example:
Statement: (3 = 3) And (5 = 5) Result: True
Statement: (4 = 4) And (6 = 8) Result: False
Combines two statements and if either statement is true does the operator return a True.
Normally this function is combined with an If statement.
Or For example:
Statement: (1 = 1) Or (2 = 3) Result: True
Statement: (9 = 9) Or (2 = 2) Result: True
Statement: (1 = 3) Or (2 = 5) Result: False
Important information
Order of operation will always be from left to right (order of appearance). Brackets should be used
if the order of operation is to be changed. Order of operation:
1. Calculations in brackets.
2. Multiply and divide from left to right.
3. Add and subtract from left to right.
For example:
15 – 3 x 5 =0 BUT (15 – 3) x 5 = 60
15 – 15 =0 (12) x 5 = 60
20
Sage 300 People Calculation Management
Relational
All the relational functions are normally combined with an If-statement. The If-statement can be found in
the Functions section.
Operator selections under the Relational section of the Expression Builder screen
Operator Description
Compares the value on the left of the operator to the value on the right of the
= Equals operator. If the values are the same the operator returns a True. For example:
Statement: 8 = 8 Result: True
Compares the value on the left of the operator to the value on the right of the
Less
< operator. If the left value is smaller the operator returns a True. For example:
Than
Statement: 3 < 5 Result: True
Compares the value on the left of the operator to the value on the right of the
Greater
> operator. If the left value is greater the operator returns a True. For example:
Than
Statement: 7 > 5 Result: True
Compares the value on the left of the operator to the value on the right of the
Less operator. If the left value is either smaller or equal the operator returns a True.
<= Than or For example:
Equal To Statement: 3 <= 5 Result: True
Statement: 5 <= 5 Result: True
Compares the value on the left of the operator to the value on the right of the
Greater operator. If the left value is either greater or equal the operator returns a True.
>= Than or For example:
Equal To Statement: 7 >= 5 Result: True
Statement: 5 >= 5 Result: True
Compares the value on the left of the operator to the value on the right of the
Not operator. If the values are not the same the operator returns a True.
<>
Equal To For example:
Statement: 3 <> 5 Result: True
Important information
To add a symbol to the expression, the user can either enter the symbol or double-click on the
symbols record selector.
• Order of operation will be similar to MS Excel, for example, % then / then * then + then -
• Brackets should be used if the order of the operation is to be changed.
For example, 2 + (3 * (10 / 2)) = 17
21
Sage 300 People Calculation Management
Functions section
The Functions section lists built-in functions used to calculate complex formulas. Most functions require
some brackets to provide information necessary to calculate the result.
Function groups under the Functions section of the Expression Builder screen
Function
Descriptions
Group
A logical function is one that can return a true or false value. These functions are
Logical most commonly used when doing comparisons to determine if certain fields are, for
example, equal to, greater than or lesser than each other.
Most text functions are used to manipulate text or to retrieve information about the
String text string. Some text functions can change the look of the text, and the most
commonly used strings are: ToUpper, ToLower and Proper.
Most Math functions are used to analyse values for statistical purposes. Some of the
Math
Math functions available are Average, Countif, Max and Min.
Date functions are used to return a date according to specifications defined in the
Date calculation. Some of the date functions can be used to get a day, week, month, year
or periods from a specified date and time.
A lookup is used to return a value from a custom sliding scale. To use a lookup in a
Lookup calculation, you first must define the sliding scale or table. A lookup (sliding scale) is
defined on the Table Lookup Manager screen.
Custom
This calculation was added for Singapore and is n/a for South Africa.
Functions
Important information
To add a function to the expression the user can either enter the function manually or
double-click on the record selector.
Most functions will require at least one parameter to process the request. The user must
ensure to enter all mandatory parameters.
Functions are case sensitive.
Functions can be nested, i.e. can be placed in one-another; any function can act as a
parameter. If nested functions are used, ensure to carefully enter all mandatory parameters
for each function.
22
Sage 300 People Calculation Management
Logical
Operator selections under the Logical Functions section of the Expression Builder screen
Operator Description
iif( , , )
Important information
Example
Logical Test:
A testable condition which will result in either a true or false result.
Value if True:
Parameters:
The value that must be returned if the condition is true.
Value if False:
The value that must be returned if the condition is false.
True = “Yes”
Result:
False = “No”
23
Sage 300 People Calculation Management
Operator Description
if (THEN ELSE) is being used when more than one condition is being
tested.
Example
Logical Test:
A testable condition which will result in either a true or false result.
Value if True:
Parameters:
The value that must be returned if the condition is true.
Value if False:
The value that must be returned if the condition is false.
True = “Male”
Result:
False = “Female”
Operator Description
Checks if a given parameter is Null, and in the case when it is Null, returns
GetValueOrDefault( , ) the default value specified. Note that a space or an empty string is not Null,
i.e. returns the parameter.
Example
Value:
A value, variable of the field which will result in either a true or false
result.
Parameters:
Default Value:
The value that should be returned if the value to be checked contains
a Null value.
24
Sage 300 People Calculation Management
Operator Description
Example
Value:
Parameters: A value, variable of the field which will result in either a true or false
result.
Usage: HasValue(Value)
Example: HasValue(Employee_Termination_Date)
Operator Description
This calculation was added for Singapore and is not applicable for South
ProRateSplitPeriods( , )
Africa.
This calculation was added for Singapore and is not applicable for South
SplitPeriods( , )
Africa.
This calculation was added for Singapore and is not applicable for South
CountChildren()
Africa.
This calculation was added for Singapore and is not applicable for South
CountNaturalChildren()
Africa.
25
Sage 300 People Calculation Management
String
Operator selections under the String Functions section of the Expression Builder screen
Operator Description
Example
Usage: ToUpper(String)
Operator Description
Example
Usage: ToLower(String)
Operator Description
Example
Usage: Propper(String)
26
Sage 300 People Calculation Management
Operator Description
Example
Result: Poppins
Operator Description
Example
Operator Description
Example
Result: Mary_Poppins_and_McCain
27
Sage 300 People Calculation Management
Operator Description
IndexOf() Returns the position of the first occurrence of a string within another string.
Example
String1: The full string within which the position of the second string is
to be determined.
Parameters:
String2: The character(s) of which the position of the first occurrence
is required.
Result: 4
Result: 14
Operator Description
Removes all spaces from the text string except for single spaces between
Trim()
words.
Example
Usage: Trim(String1)
Operator Description
Example
Usage: TrimStart(String1)
28
Sage 300 People Calculation Management
Operator Description
Example
Usage: TrimEnd(String1)
Operator Description
Example
Usage: Len(String1)
Result: 23
29
Sage 300 People Calculation Management
Math
Operator Description
Example
Usage: Abs(Value)
Example: Abs(-561.84)
Result: 561.84
Operator Description
Example
Parameters: Value: The value of which the user wants the square root.
Usage: Sqrt(Value)
Example: Sqrt(16)
Result: 4
Operator Description
Returns the average value from the specified values, to a maximum of four
Average()
decimals.
Example
Result: 205.3333
30
Sage 300 People Calculation Management
Operator Description
Example
Result: 2
Operator Description
Example
Value1: The first of the values being compared to return the highest
value.
Value2: The second of the values being compared to return the
Parameters:
highest value.
ValueN: Any number of values can be listed to return the highest
value.
Result: 365
Operator Description
Example
Value1: The first of the values being compared to return the lowest
value.
Value2: The second of the values being compared to return the
Parameters:
lowest value.
ValueN: Any number of values can be listed to return the lowest
value.
Result: 10
31
Sage 300 People Calculation Management
Important information
If the values in the Min() and Max() functions need to be calculated, it is better to do the
calculations as nested calculations which are then used in these functions.
Operator Description
Returns the smallest integer that is greater than or equal to the given
Ceiling()
numeric expression.
Example
Value: The value of which you want the ceiling integer value, i.e. this
Parameters:
function rounds the value upwards to the nearest integer.
Usage: Ceiling(Value)
Example: Ceiling(64.16)
Result: 65
Example 2 Ceiling(-28.99)
Result -28
Operator Description
Example
Number: The numeric value of which the user wants the round.
Parameters:
Significance: The multiple to which you want to round.
Example: Floor(3.7)
Result: 3
32
Sage 300 People Calculation Management
Date
Important information
Please note all dates should be typed in the following format within formulas: yyyy/mm/dd. The
dates should be typed in single quotes – ‘yyyy/mm/dd’.
Operator Description
Example
Parameters: Value: A string value from which the date must be returned.
Usage: Today()
Example: Today()
Operator Description
Example
Start Date: The date from which to calculate the number of days
difference.
Parameters:
End Date: The date to which to calculate the number of days
difference.
Result: 3
33
Sage 300 People Calculation Management
Operator Description
Example
Start Date: The date from which to calculate the number of months
difference.
Parameters:
End Date: The date to which to calculate the number of months
difference.
Usage: DateDiffMonth(Start_Date,End_Date)
Result: 2
Operator Description
Example
Start Date: The date from which to calculate the number of years
difference.
Parameters:
End Date: The date to which to calculate the number of years
difference.
Result: 2
Operator Description
Example
Start Date: The date from which to calculate the number of months
difference.
Parameters:
End Date: The date to which to calculate the number of months
difference.
34
Sage 300 People Calculation Management
Operator Description
DateDiffBusinessDays() Returns the number of business days difference between two dates.
Example
Start Date: The date from which to calculate the number of business
days difference.
Parameters:
End Date: The date to which to calculate the number of business
days difference.
Result: 10
Operator Description
Example
Result: 7
Operator Description
Example
Parameters: Value: A string value from which the date must be returned
Usage: GetDate()
Example: GetDate()
35
Sage 300 People Calculation Management
Operator Description
Example
Date_Time: The date from which the weekday number must be extracted.
Parameters:
This is a value out of 7.
Usage: GetDayOfWeek(Date_Time)
Example: GetDayOfWeek(‘2020/10/09’)
Result: 5
Operator Description
Example
Date_Time: The date from which the day of year number must be extracted.
Parameters: This is a value out of 365 or 366. The calculation will look at the calendar
year.
Usage: GetDayOfYear(Date_Time)
Result: 176
Operator Description
Example
Parameters: Date_Time: The date from which the period day number must be extracted.
Usage: GetDayOfPeriod(Date_Time)
Example: GetDayOfPeriod(‘2020/09/24’)
36
Sage 300 People Calculation Management
Operator Description
Returns a date that is the specified number of business days away from the
AddBusinessDays()
specified date.
Example
Operator Description
Returns a date that is the specified number of days away from the specified
AddDays()
date.
Example
Example: AddDays(‘2020/11/26’, 6)
Operator Description
Example
if True = “R3300”
Result:
if False = “R2000”
37
Sage 300 People Calculation Management
Operator Description
Example
Iif(IsBusinessDay([CF.Payslip.UnitLine.DateWorked] = True),
Usage:
Value_If_True, Value_If_False)
Iif(IsBusinessDay([CF.Payslip.UnitLine.DateWorked] = True,
Example:
“3300”, “2000”)
if True = “R3300”
Result:
if False = “R2000”
Operator Description
GetEmployeeCurrentYearWorking
Returns the total working days in the current calendar year.
Days()
Example
Usage: GetEmployeeCurrentYearWorkingDays()
Example: GetEmployeeCurrentYearWorkingDays()
Result: Will count all the working days in the current calendar year.
38
Sage 300 People Calculation Management
Operator Description
GetEmployeeCurrentYear
Returns the total number of working days in the current calendar year.
TotalCalendarDays()
Example
Example: GetEmployeeCurrentYearTotalCalendarDays(False)
Will count all the working days in the current calendar year excluding
Result:
the Public Holidays.
Operator Description
Returns a date that is the specified number of months away from the
AddMonths()
specified date.
Example
Example: AddMonths(‘2020/01/15’, 3)
Operator Description
Returns a date that is the specified number of periods away from the
AddPeriods() specified date. If the given date falls in the middle of a period, the result
date will also fall in the middle of a period.
Example
Example: AddPeriods(‘2020/06/15’, 3)
39
Sage 300 People Calculation Management
Operator Description
Returns a date value that is the specified number of years away from the
AddYears()
specified date.
Example
Example: AddYears(‘2018/01/07’, 2)
Operator Description
Example
Date_Time: The date from which the week number must be extracted. This does
Parameters:
not look at your system when in a weekly company but at the calendar weeks.
Usage: GetWeekNumber(Date_Time)
Result: 6
Operator Description
Example
Parameters: Date_Time: The date from which the year must be extracted.
Usage: GetYear(Date_Time)
Example: GetYear(‘2020/02/15’)
Result: 2020
40
Sage 300 People Calculation Management
Operator Description
Example
Date_Time: The date from which the month number must be extracted. This is a
Parameters:
value out of 12.
Usage: GetMonth(Date_Time)
Example: GetMonth(‘2020/09/18’)
Result: 9
Operator Description
Example
Parameters: Date_Time: The date from which the day must be extracted.
Usage: GetDay(Date_Time)
Example: GetDay(‘2020/02/15’)
Result: 15
41
Sage 300 People Calculation Management
Lookup
A lookup is used to return a value from a custom sliding scale. To use a lookup in an expression the user
must first define the sliding scale.
Operator Description
Example
Result: 1592
Example
42
Sage 300 People Calculation Management
Lookup selection.
Lookup calculation.
([Go to the Lookup table KeyCare Plus Adult and Main, [Get the employee’s Period Salary to see in
which bracket the employee falls])] and return the value for the bracket. After this, the value is multiplied
by the number of medical aid dependants and the following lookup is done.
The employees medical aid calculates as R 1 592.00, due to the employee’s period salary being
R 22 500.00 which is in the last bracket of the table lookup.
43
Sage 300 People Calculation Management
End of example
Refer to
44
Sage 300 People Calculation Management
Expression section
The expression area displays the current calculation as it is entered. This area is populated by either
typing the calculation or using a combination of typing and double-clicking on field selections.
4. Click on Ok.
5. The following message displays:
6. Click on Yes.
45
Sage 300 People Calculation Management
8. Click on Save.
9. The following message displays:
Important information
Remember when using any form of numbers within your calculation to always give it two
decimals in order to return the correct value. If no decimals are used the value will be rounded up
or down or an error message might be returned. For example, instead of entering only 3 x 5 enter
it as 3.00 x 5.00.
46
Sage 300 People Calculation Management
Nested calculations
Existing calculations on the Calculations tab of the Expression Builder screen may be used within each
other or in new calculations. When an existing calculation is used in another calculation it is referred to as
a nested calculation. The list of calculations in the Calculations section allows you to simply double-click
on the record indicator of the applicable calculation.
Example
End of example
Important information
Nested calculation brackets execute first, then all other brackets before the entire calculation is
done.
47
Sage 300 People Calculation Management
5. Click on New.
48
Sage 300 People Calculation Management
49
Sage 300 People Calculation Management
50
Sage 300 People Calculation Management
51
Sage 300 People Calculation Management
26. Place the cursor in front of the THEN and press Enter on your keyboard.
27. Place the cursor after the of [EE.ER.PeriodSalary] function.
28. Expand the Relational operator under the Operators section.
29. Double-click on the less than (<) operator.
30. Enter the value of 11000.00.
52
Sage 300 People Calculation Management
31. Indicate what the calculation will be, if the period salary should be less than R11 000.00, after the
THEN:
32. Place the cursor after the THEN and press Enter on your keyboard.
33. Place the cursor after the of THEN function.
34. Double-click on Period Salary (PeriodSalary) option.
35. Expand the Math option under the Operators section.
36. Double-click on the multiply (*) operator.
37. Enter the percentage value as 0.10.
38. Indicate what the calculation will be, if the period salary should be greater than or equal to
R11 000.00, after the ELSE.
53
Sage 300 People Calculation Management
Calculation condition.
Value if True.
Value if False.
54
Sage 300 People Calculation Management
Important information
Remember to link the calculation to a payroll definition in order for it to calculate on an employee.
General rules
The following are general rules to follow when using a calculation:
For every opening bracket, you need a closing bracket.
Order of operation: Calculates from left to right, in order of appearance. Multiply and divide will
happen before adding and subtracting when no brackets are used.
Brackets: Executes nested brackets first, then all other brackets before the entire calculation is
done.
Never have a space between a function and the opening bracket.
An expression can be nested to formulate extremely complex expressions. To use a nested
expression, select an existing expression from the ‘Calculations’ tab.
Do not use the % sign when multiplying with a % value, for example, Period Salary * 8% should be
written as Period Salary * 0.08 OR Period Salary * 8.00 / 100.00. The % sign refers to the Mod
operator and is used for something else.
When using a DateDiffMonth or DateDiffYear or DateDiffDay calculation, remember that it will
exclude the current therefore you have to + 1 in the calculation should you have to include the
current month / year / day as well. This rule applies to all DateDiff calculations.
A check is built into the system to verify calculations in the Sage 300 People system which are faulty.
The check will run the first time Sage 300 People is opened after an update is installed.
Example
After the check you will receive a warning message with a list of faulty calculations.
End of example
55
Sage 300 People Calculation Management
Calculation examples
Pension fund
Pension fund calculations
Contribution: 8% of monthly
[EE.ER.PeriodSalary] * 0.08
salary
Provident fund
Provident fund calculation
56
Sage 300 People Calculation Management
RFI
RFI calculation:
[PS.EA.CODE.SALARY.Total] + [PS.EA.CODE.WAGE.Total] +
Basic RFI calculation
[PS.EA.CODE.UNPAID_LVE.Total]
Min({TAX_PACK_COMP},{PENSIONABLE_SAL})
Important information
Never use the Period Salary from the Employee Rule screen for the RFI calculation when the
Pension/Provident Fund is based on the package. It will be doubled by the number of Pay Runs on
the employee’s Payslip Definition screen, which will calculate the incorrect amount. RFI is based
on actuals, therefore the Total column should always be used. Should the Pension/Provident
Fund calculation be based on the package, then the Remuneration Amount should be used from
the employee’s Payslip Definition screen.
Important information
Depending on the RFI calculation (Salary, Cost-to-Company or Wages) you might have to create
more than one Retirement Fund for one specific fund. More than one Pension/Provident Fund
definition (deduction and CC) should also be created in order to link the Company Retirement
Fund to the Company contribution. If not, then the one RFI calculation should cater for all options.
The reason for this is because only one RFI calculation can be linked to the Company Retirement
Fund (DB and Hybrid funds).
57
Sage 300 People Calculation Management
Production bonus
Production bonus calculation
ELSE 0)))
( {ANN_BON} - [PS.PV.CODE.PROV_TAX_BONUS.YTDTotal] )
Employees would like to / {REM_TAX_PR}
make provision on tax for
their annual bonus. Where {ANN_BON} is:
if( [EE.PeriodsInService] >= 6
They will only receive an THEN [EE.ER.PeriodSalary]
annual bonus if they worked ELSE 0)
at the company for more
than 6 months. Where {REM_TAX_PR} is:
DateDiffPeriod([PR.EndDate],[CR.CompanyTaxYearEnd]) +1
Condition Calculation
if(DateDiffMonth([EE.DateEngaged],[PR.EndDate] + 1) > 96
An employee receives three THEN 6.00
extra leave days if employed
for five years, and ELSE
An additional three days if if(DateDiffMonth([EE.DateEngaged],[PR.EndDate] + 1) > 60
he/she is employed for THEN 3.00
longer than eight years.
ELSE 0))
58
Sage 300 People Calculation Management
Null values
Fields with no values i.e. empty fields are saved as NULL values in the database because no value is
specified. When using a value in a calculation that could be NULL, for example, Additional Rates,
Termination Date or Termination Reason, the calculation will not calculate correctly. If no Period Salary,
Annual Salary, Rate per Day or Rate per Hour are entered then the values will be saved as NULL.
When using a value in a calculation that can be NULL, make use of the GetValueOrDefault( , ) logical
function. If not used, the entire calculation will fail, and nothing will pull through.
Condition Calculation
if({CHARGE_OUT} = 0
THEN ([PS.EA.CODE.CALL_OUT.UnitsCapture] *
Callouts after hours should be [EE.ER.RatePerHour])
paid against the Charge Out Rate.
ELSE
For employees without a Charge ([PS.EA.CODE.CALL_OUT.UnitsCapture] * {CHARGE_OUT}))
Out Rate, use the Rate Per Hour.
Where {CHARGE_OUT} is:
GetValueOrDefault([EE.ER.ChargeoutRate],0)
Actual age
There is no employee actual age field that can be selected in the Calculation Manager, Report Writer or
Data Export. The only age field available is the tax age (age up until the end of the tax year). A calculation
can be created calculating the actual age of each employee.
Or
Floor((DateDiffMonth([EE.EN.BirthDate],[PR.EndDate])-1)/12)
59
Sage 300 People Calculation Management
Date calculations
Custom calculations can be created to compare dates in Sage 300 People. These calculations may be
used as nested calculations, execution able calculations or as alert calculations.
Alert calculation
Example
In the example above, you will have to use the Units Capture field because you will do the input on the
same earning line once or more times. If you were to select the Units field, no amount will be calculated
the first time you do input and thereafter it will calculate the incorrect amount as it will use the
accumulated hours’ value and not the current captured hours value.
Units example
Incentive: Total Overtime hours x 100.
In the example above, you will have to use the Units field as you want to look at the TOTAL accumulated
hours in order to perform the calculation for the Incentive. The Units Capture field will not work as you are
not going to capture any unit input on the Incentive earning line, but on the Overtime earning line.
End of example
60
Sage 300 People Calculation Management
Learning objectives
On completion of this lesson, you will be able to:
61
Sage 300 People Calculation Management
To access the Table Lookup Manager screen, from the Navigation pane:
62
Sage 300 People Calculation Management
Field Description
When you add a calculation, the Sage 300 People system will generate a
version number. The first time you add the calculation, the version number will
be 1. When you add new sliding scale values, the version number will be 2,
Active Version
etc. Each version will be kept on record and you will be able to determine
which version of the calculation was used in a specific time frame. You can
select a previous version to be the currently active version.
Select the format of the lookup value, i.e. the value that will be returned by the
lookup calculation. These values will be defined in the Range Value column of
the table lookup. The options are:
You can specify a default value. This value will default for every record unless
no default value is specified. This can be used for Flexi GL purposes where for
Default Int Value
example, you want to default the same value for all records except for the first
or last.
Tick the box to use the minimum value as the minimum cap for each sliding
scale. For example, if your minimum value = 1000 and an employee only got
Min Value Inclusive 999, then the Range Value returned will look at the previous sliding scale
where 999 is included. The minimum values are specified in the Min Range
column for each sliding scale.
Tick the box to use the maximum value as the maximum cap for each sliding
scale. For example, if your maximum value = 1000 and an employee got
Max Value Inclusive 1000.50, then the Range Value returned will look at the next sliding scale
where 1000.50 is included. The maximum values are specified in the Max
Range column for each sliding scale.
63
Sage 300 People Calculation Management
Important information
Should you want to use the Min Value Inclusive as well as the Max Value Inclusive, you must
make sure that the sliding scales includes all cents (decimal) figures in-between amounts to make
sure that no amounts are excluded.
Example
For example:
Scale Contribution
0 – 600 1000
End of example
64
Sage 300 People Calculation Management
5. Click on New.
6. The Table Lookup Items screen displays:
65
Sage 300 People Calculation Management
66
Sage 300 People Calculation Management
Once you have created the Table Lookup, you can use it for a custom calculation or a Flexi GL. In a
custom calculation, you will use the Lookup function. The Lookup function is used to return a value from
a sliding scale.
Lookup
Usage: Lookup(Value)
Result: 0.05
All the Table Lookups defined will be listed under the Lookup function.
After the comma, select the field in Sage 300 People that should be
checked per employee before the Range Value is returned from the sliding
scale the employee falls in. This is what the Table Lookup is based on.
67
Sage 300 People Calculation Management
Example
The Anniversary Bonus calculation is based on the employees’ years in service with the company. The
Table Lookup refers to the Periods in Service values as sliding scales in order to return the Anniversary
Bonus amount:
The Sage 300 People system will do the {MIS} calculation in order to calculate each employee’s periods
in service value. The Table Lookup sliding scales will then be used to check the bracket in which each
employee falls in order to return the Annual Bonus amount.
End of example
68
Sage 300 People Calculation Management
Learning objectives
At the end of this lesson, you will be able to:
69
Sage 300 People Calculation Management
To access the Pro Rata Calculations screen, from the Navigation pane:
Field Description
Average
Calculation = Period Salary / 30.
Calendar Days
70
Sage 300 People Calculation Management
Field Description
If the Pro Rata Type is set to Custom Standard, select the calculation to which to
Calculation Entry
link the pro rata definition.
If the Pro Rata Type is set to Simple Divide, enter the value the employee’s
Amount
period salary must be divided by to calculate the employee’s rate per day.
Important information
When the Cash earning is calculated by means of a Remuneration Structure, the Cash pro rata
calculation will first pro rata the Period Salary and then all the package components will be
subtracted before the Cash value is calculated.
71
Sage 300 People Calculation Management
Learning objectives
On completion of this lesson, you will be able to:
73
Sage 300 People Calculation Management
To access the applicable Definition Detail screen, from the Navigation pane:
Input Type
Select the type of input that will be done on the Payslip Detail screen:
Integer: this option allows you to enter units without decimals.
Decimal: this option allows you to enter units with decimals.
Hours and minutes: this option allows you to enter hours and minutes.
Hours and decimals: this option allows you to enter hours in a decimal format.
Calculation/Input: this option allows you to define a calculation that will calculate the payslip
amount. Also, select this option when you must manually enter the amount on the payslip. This
option does not allow you to enter any unit or hourly input to calculate the amount.
74
Sage 300 People Calculation Management
Calculation Type
If you have selected Calculation/Input as the Input Type, you can enter a fixed amount or create a
custom calculation. If this field is equal to None, you must enter amounts manually on the Payslip Detail
screen.
If you have selected any of the other options, the Sage 300 People system will allow you to create a
custom calculation or select one of the pre-defined smart calculations:
Custom: available for all input types. This option allows you to create a custom calculation using
the Expression Builder.
Fixed Amount: this option is only available for the Calculation/Input type. This option allows you to
enter a fixed amount.
Units * Amount: available for Decimal and Integer Input Types.
Units * Amount * RPH: available for Hours/Minutes and Hours/Decimal Input types.
Units * Amount * RPH (where the units default to the employee hours per period): available
for Hours/Minutes and Hours/Decimal Input types.
Units * Amount * RPD: available for Integer and Decimal input types.
Units * Amount * RPD (where the units default to the employee days per period): available for
Integer and Decimal Input types.
Units * Amount On Unit Line (Default Value on Definition): available for Integer and Decimal
Input types.
Units * Calculated Amount based on Unit Line: available for Integer and Decimal Input types.
Important information
75
Sage 300 People Calculation Management
Learning objectives
On completion of this lesson, you will be able to:
77
Sage 300 People Calculation Management
Example
End of example
When a custom calculation is linked to a payroll definition, you can select which calculation applies to
each employee by selecting one of the following options in the Emp Calculation Status field:
Default Calculation: this is the default option per payslip line. Select this option when the payroll
definition has one default calculation which should pull through for the employee.
No Calculation: select this option should no calculation pull through for the employee.
Override Calculation: select this option when the payroll definition has more than one linked
calculation, in order to select the applicable calculation for the employee.
Important information
If a definition is linked to a calculation and you add a fixed amount on the same definition, the
fixed amount will override the calculation. If a fixed amount on a definition already exists and the
definition is linked to a calculation, the fixed amount will be cleared. Therefore, if you must use a
calculation and a fixed amount on the same definition, use the recurrence amount for the fixed
value.
78
Sage 300 People Calculation Management
Example
End of example
Unit/Hourly input
Unit and hourly input are done and allowed on the employee’s Payslip Detail screen where the payroll
definition allows hourly or decimal input.
Example
End of example
79
Sage 300 People Calculation Management
The Input Type field of the payroll definition should be set to one of the following:
Integer,
Decimal,
Hours/Minutes, or
Hours/Decimal.
All unit or hourly input must be done in the Units Capture column. Units or hours entered in the Units
Capture column will be saved as a separate transaction on the Unit Details screen. A consolidated total of
the Unit Details Screen will be displayed in this Units column.
Example
End of example
Example
You will be able to add, edit or delete unit/hourly transactions after it was entered.
End of example
80
Sage 300 People Calculation Management
Amount input
Once-off amount input is done and allowed on the employee’s Payslip Detail screen where the payroll
definition’s Input Type = Calculation/Input.
Example
All once-off earning amounts for the current processing period are entered on the Payslip Detail screen in
the Amount column.
End of example
81
Sage 300 People Calculation Management
Example
The pro rata calculation will use the units/hours entered or defaulted in the Units column to calculate the
pro rata amount. Once the pro rata amount has been calculated the system will calculate the difference
between the pro rata amount and the fixed amount. The difference displays in the Pro Rata Amount
column.
End of example
82
Sage 300 People Calculation Management
The prorated units will default for the following employees accordingly:
Terminated employees: the number of days/hours worked from the period start date until the
termination date.
New employees: the number of days/hours worked from the date engaged until the period end
date.
Existing employees: the number of days/hours for the current pay period will default.
Important information
The system calculates the number of days worked based on the workdays specified for the
employee on the Employee Detail Screen. Public holidays and non-business days will be
calculated as days worked.
If you tick the ‘Is Pro Rata’ box before you enter the termination date for the employee, the system
will calculate the total number of days/hours for the pay period. This value may be changed.
Always enter the termination date and reason BEFORE you tick this box.
Is Pro Rata = Tick the box when you need to pro rata the amount
Pro Rata Amount = Fixed Salary – Total
Total = Fixed – Pro Rata Amount
Thus, the employee will be paid the amount in the Total column
The following formula is used to calculate a prorated salary for a monthly paid employee:
Monthly salary
÷ Average number of working days per month
= Rate per day
x Actual days worked
= Prorated salary
83
Sage 300 People Calculation Management
Lesson 7: Reports
Learning outcomes
The purpose of this lesson is to give an overview of the reports that can be used to view linked
calculations.
Learning objectives
At the end of this lesson, you will be able to:
Print various reports, indicating the linked calculations, from the All Reports screen.
Print the Payroll Analysis report, in order to view calculation details.
85
Sage 300 People Calculation Management
86
Sage 300 People Calculation Management
Filter on the Company and Definition Type under Select Definitions. Select the definition(s) and
applicable calculation(s) that you want to display in the reports. Current, YTD, YTD+, MTD or MTD+
values can be printed. You can choose to display employees with zero values.
87
Sage 300 People Calculation Management
Example
Example where the Medical Aid company contribution and deduction were selected:
End of example
88
Sage 300 People Calculation Management
Entry Calcs
The default calculation as well as the linked calculations of the definition display. Select the applicable
calculation(s) that you want to print in the report.
Contribution Split
The field will only be applicable to linked deductions and company contributions. In this case, the
definition may have financial values for both the deduction and the company contribution. Here you will be
able to select which values should be printed. Options are:
Total – deduction and company contribution will print as one total.
Employee – only the deduction (employee contribution) will print.
Company – only the company contribution will print.
Print Zeros
If the tick box is ticked the report will include employees where the total of the selected definition is zero.
If not ticked, employees with zero values will be excluded.
Example
Example where the Medical Aid Company Contribution and Deduction were selected:
89
Sage 300 People Calculation Management
End of example
Example
To access the Payroll Analysis report screen, from the Navigation pane:
90
Sage 300 People Calculation Management
91
Sage 300 People Calculation Management
11. Drag and drop the Calculation Description and/or Calculation Code fields in the report in order
to display the details of the calculations linked to each employee.
12. You can export the report to MS Excel in order to add a filter for specific calculations.
92
Sage 300 People Calculation Management
End of example
93
Sage 300 People Calculation Management
Learning objectives
At the end of this lesson, you will be able to:
95
Sage 300 People Calculation Management
Regional settings
Access your computers Regional Settings and apply the following settings:
Formats tab
96
Sage 300 People Calculation Management
97
Sage 300 People Calculation Management
Currency tab
Positive currency format and Negative currency format: must be as above. If the Negative currency
amount is in brackets, then the calculations in the Sage 300 People system does not work.
98
Sage 300 People Calculation Management
Learning objectives
At the end of this lesson, you will be able to:
99
Sage 300 People Calculation Management
Commission (Monthly)
Activity 1
The commission is based on a sales amount that the customer will enter on the Additional screen
each month.
If the sales amount is less than R2 000.00, the employee receives no commission.
If the sales amount is less than R8 000.00, the employee receives 5% of the sales amount.
If the sales amount is less than R15 000.00, the employee receives 6% of the sales amount,
otherwise 7% of the sales amount.
Activity solution
Step Description
5. Click on New.
100
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
101
Sage 300 People Calculation Management
102
Sage 300 People Calculation Management
28. Place the cursor after the first bracket and double-click on the Total (Total) option.
29. Complete the calculation by typing < 2000.
30. Enter 0 (zero) after the THEN to complete the first calculation condition.
31. Enter the second condition of the calculation. If the sales amount is less than R8 000.00, the
employee receives 5% of the sales amount:
103
Sage 300 People Calculation Management
42. Enter the third condition of the calculation. If the sales amount is less than R15 000.00, the
employee receives 6% of the sales amount, otherwise 7% of the sales amount:
104
Sage 300 People Calculation Management
105
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
106
Sage 300 People Calculation Management
107
Sage 300 People Calculation Management
10. If the values do not automatically display, click on the Calculate button on the ribbon.
11. The employee did not receive any commission. The condition was that if the sales amount is less
than R2 000.00, the employee receives no Commission.
The value entered is less than condition value of R 2 000.00. The employee should not receive
commission.
R 1 000.00 x 0 = R 0.00
The examples on the following screens, is an indication of how the other conditions can be tested.
108
Sage 300 People Calculation Management
Example
Example of condition 2: If the Sales amount is less than R8 000.00, the employee receives 5% of
the Sales amount.
Additional screen:
Summary screen:
The value entered is less than condition value of R 8 000.00. The employee should receive 5% of the
sales amount as commission.
R 7 000.00 x 5% = R 350.00
109
Sage 300 People Calculation Management
Example of condition 3: If the sales amount is less than R15 000.00, the employee receives 6% of
the sales amount, otherwise 7% of the sales amount.
Additional screen:
Summary screen:
The value entered is less than condition value of R 15 000.00. The employee should receive 6% of the
sales amount as commission.
R 10 000.00 x 6% = R 600.00
110
Sage 300 People Calculation Management
Additional screen:
Summary screen:
The value entered is greater than condition value of R 15 000.00. The employee should receive 7% of the
sales amount as commission.
R 20 000.00 x 7% = R 1 400.00
End of example
End of activity
111
Sage 300 People Calculation Management
Activity 2
The employee pays 6% and the company pays 8% of the Period Salary plus Fixed Travel
Allowance, with the Company Contribution capped to a maximum contribution of R1 200.00 per
month. This is a DC fund.
Activity solution
Step Description
Step 4 Link the company contribution calculation to the company contribution definition.
5. Click on New.
112
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
113
Sage 300 People Calculation Management
114
Sage 300 People Calculation Management
115
Sage 300 People Calculation Management
116
Sage 300 People Calculation Management
117
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
118
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
119
Sage 300 People Calculation Management
120
Sage 300 People Calculation Management
121
Sage 300 People Calculation Management
122
Sage 300 People Calculation Management
123
Sage 300 People Calculation Management
124
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Deductions calculation group.
11. Click on the Liberty Pension Deduction calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
125
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Company Contributions calculation group.
11. Click on the Liberty Pension CC calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
126
Sage 300 People Calculation Management
127
Sage 300 People Calculation Management
7. If the values do not automatically display, click on the Calculate button on the ribbon.
8. The employees Liberty Pension Fund deduction should calculate as:
Period Salary + Fixed Travel Allowance x 6%.
The company contribution is more than the maximum amount. The employee only received the
maximum amount of R 1 200.00.
End of activity
128
Sage 300 People Calculation Management
Activity 3
If the Period Salary is less than or equal to R10 000.00, then the Travel Allowance must be
R1 000.00.
If the Period Salary is greater than R10 000.00 but less than or equal to R20 000.00, then the
Travel Allowance must be R2 000.00.
If the Period Salary is greater the R20 000.00, then the Travel Allowance must be R2 500.00.
Activity solution
Step Description
Step 2 Link the Travel Allowance calculation to the Travel Allowance earning definition.
5. Click on New.
129
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
130
Sage 300 People Calculation Management
131
Sage 300 People Calculation Management
132
Sage 300 People Calculation Management
34. Enter the second condition of the calculation. If the Period Salary is greater than R10 000.00 but
less than or equal to R20 000.00, then the Travel Allowance must be R2 000.00:
133
Sage 300 People Calculation Management
134
Sage 300 People Calculation Management
135
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Travel Allowance calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
136
Sage 300 People Calculation Management
7. If the values do not automatically display, click on the Calculate button on the ribbon.
8. The employees Travel Allowance should calculate according to one of the following conditions:
If the Period Salary is less than or equal to R10 000.00, then the Travel Allowance must be
R1 000.00.
If the Period Salary is greater than R10 000.00 but less than or equal to R20 000.00, then
the Travel Allowance must be R2 000.00.
If the Period Salary is greater the R20 000.00, then the Travel Allowance must be R2
500.00.
The employees period salary is R 20 686.62. He should receive R 2 500.00 Travel Allowance
according to the third condition.
Example
Example of the amount calculated when the period salary is changed to fulfill the first condition:
The period salary is equal to the condition value of R 10 000.00. The employee should receive R 1000.00
Travel Allowance.
137
Sage 300 People Calculation Management
Example of the amount calculated when the period salary is changed to fulfill the second
condition:
The period salary is less than or equal to the condition value of R 20 000.00. The employee should
receive R 2 000.00 Travel Allowance.
End of example
End of activity
138
Sage 300 People Calculation Management
Activity 4
All employees receive an Incentive Bonus in December of every year. In the weekly company the
bonus pays out in the last week of December. The bonus is calculated on the total Overtime (1.5 &
2.0) hours worked from January to December.
R100.00 per hour if the total hours worked are more than 80 hours, otherwise no bonus.
The Incentive Bonus should never be more than R25 000.00
Activity solution
Step Description
Step 3 Link the Incentive Bonus calculation to the Incentive Bonus earning definition.
Step 5 Make changes to the Overtime 1.5 and 2.0 earning definitions.
139
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
140
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
141
Sage 300 People Calculation Management
19. Use the scroll bar to scroll down to the Payslip Line Code (CODE) group.
23. Double-click on the Special Accumulated Units (SpecialAccumulatedUnits) option and enter a
plus (+) sign.
24. Double-click on the Units (Units) option and enter a plus (+) sign.
142
Sage 300 People Calculation Management
25. Use the scroll bar to scroll down to the Overtime 2.0 (OT20) group.
28. Double-click on the Special Accumulated Units (SpecialAccumulatedUnits) option abd enter a
plus (+) sign.
29. Double-click on the Units (Units) option.
30. Click on Verify.
143
Sage 300 People Calculation Management
144
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
145
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
146
Sage 300 People Calculation Management
18. Enter the first condition of the calculation. Employees will receive R100.00 per hour if the total
hours worked are more than 80 hours, otherwise no bonus:
23. Double-click on the Total Overtime Hours calculation on the Calculation tab and enter * 100.
147
Sage 300 People Calculation Management
27. Select the greater as (>) sign in the If Calculation Value field.
28. Enter 25 000.00 in the Check Value and Return fields.
29. Click on Verify.
148
Sage 300 People Calculation Management
149
Sage 300 People Calculation Management
Step 3: Link the Incentive Bonus calculation to the Incentive Bonus earning
definition
To access the Earning Definition Detail screen, from the Navigation pane:
150
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Incentive Bonus calculation.
12. Click on Save.
13. Click on OK.
14. Stay on the screen.
1. Select the Main Payrun field for the Marvel Monthly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
4. In the This item will occur field, select Exact period of the tax year from the drop-down.
151
Sage 300 People Calculation Management
9. Select the Main Payrun field for the Marvel Weekly company rule.
10. Click on the ellipsis in Calculation Recurrence Type field.
11. The Recurrence screen displays:
12. In the This item will occur field, select Last N periods of the month from the drop-down.
13. In the On periods (Item will occur) field, enter 1.
14. In the Occurs only in month field, select December from the drop-down.
15. Ensure that the calculation will only take place in last period of December each year by scrolling
through the Example section.
16. Click on Ok.
152
Sage 300 People Calculation Management
17. The screen will return to the Earning Definition Detail screen:
153
Sage 300 People Calculation Management
Step 5: Make changes to the Overtime 1.5 and 2.0 earning definitions
To make changes to the Overtime 1.5 and Overtime 2.0 earning definitions, from the Earnings screen:
3. Select the Main Payrun field for the Marvel Monthly company rule.
4. Use the scroll bar to scroll to the Special Unit Balance field.
5. In the Special Unit Balance field, select Increase from the drop-down.
6. In the Special Unit Clearing Option field, select Clear on Recurrence from the drop-down.
7. Click on the ellipsis in Special Unit Recurrence Type field.
154
Sage 300 People Calculation Management
9. In the This item will occur field, select Exact period of the tax year from the drop-down.
10. In the On periods (Item will occur) field, enter 11.
11. Ensure that the recurrence will only take place in January each year by scrolling through the
Example section.
12. Click on Ok.
13. The screen will return to the Earning Definition Detail screen:
14. Select the Main Payrun field for the Marvel Weekly company rule.
15. Use the scroll bar to scroll to the Special Unit Balance field.
16. In the Special Unit Balance field, select Increase from the drop-down.
17. In the Special Unit Clearing Option field, select Clear on Recurrence from the drop-down.
18. Click on the ellipsis in Special Unit Recurrence Type field.
155
Sage 300 People Calculation Management
20. In the This item will occur field, select First N periods of the month from the drop-down.
21. In the On periods (Item will occur) field, enter 1.
22. In the Occurs only in month field, select January.
23. Ensure that the recurrence will only take place in the first period of January each year by scrolling
through the Example section.
24. Click on Ok.
25. The screen will return to the Earning Definition Detail screen:
156
Sage 300 People Calculation Management
Important information
A recurrence is set up for the Incentive Bonus to only calculate in December. The company rule is
currently not in December. To test the calculation in the current period you will need to remove
the recurrence on the Earning Definition Detail screen and add it again after testing the
calculation.
157
Sage 300 People Calculation Management
7. Capture 160 hours in the Units Capture field, on the Overtime 1.5 earning definition line.
8. Capture 100 hours in the Units Capture field, on the Overtime 2.0 earning definition line.
9. The Incentive Bonus is calculating for the employee as R 25 000.00.
10. The employee worked more than 80 hours overtime. They should thus get
R 100 x 260 hours = R 26 000.00 as a bonus. This amount is more than the maximum amount of
R 25 000.00. The system only calculates R25 000.00, which is correct.
11. The custom calculation on the system is correct for the monthly employee.
12. Click on Save.
13. Click on OK.
14. Close the screen.
158
Sage 300 People Calculation Management
End of activity
159
Sage 300 People Calculation Management
Activity 5
If the Period Salary is less than R11 000.00, then the Housing Allowance must be 10% of the
Period Salary.
If the Period Salary is greater than or equal to R11 000.00, then the Housing Allowance must
be 15% of Period Salary.
Activity solution
Step Description
5. Click on New.
160
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
161
Sage 300 People Calculation Management
162
Sage 300 People Calculation Management
28. Double-click on the Period Salary (PeriodSalary) option and enter < 11000.
29. Place the cursor after the THEN and double-click on the Period Salary (PeriodSalary) option and
enter * 0.1.
163
Sage 300 People Calculation Management
30. Enter the second condition of the calculation. If the Period Salary is greater than or equal to
R11 000.00, then the Housing Allowance must be 15% of Actual Salary:
31. Place the cursor after the ELSE and double-click on the Period Salary (PeriodSalary) option and
enter * 0.15.
32. Click on Verify.
164
Sage 300 People Calculation Management
165
Sage 300 People Calculation Management
166
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Housing Allowance calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
167
Sage 300 People Calculation Management
7. If the values do not automatically display, click on the Calculate button on the ribbon.
8. The employees Housing Allowance should calculate according to one of the following conditions:
If the Period Salary is less than R11 000.00, then the Housing Allowance must be 10% of the
Actual Salary paid.
If the Period Salary is greater than or equal to R11 000.00, then the Housing Allowance must
be 15% of Actual Salary.
The employees period salary is R 45 833.33. He should receive R 6 875.00 Housing Allowance
according to the second condition. The custom calculation is correct on the system.
9. Click on Save.
10. Click on OK.
11. Close the screens.
Example
Example of the amount calculated when the period salary is changed to fulfill the first condition:
The period salary is R 9 500.00, which is less than the first condition value of R 11 000.00. The employee
should receive R 950.00 Housing Allowance.
End of example
End of activity
168
Sage 300 People Calculation Management
Activity 6
If the employee has been in service for up to a year, the employee receives R300.00 for
every month in service plus a fixed value of R230.00.
If the employee has been in service for longer than a year, up to 5 years, the employee
receives R60.00 for every week in service plus a fixed value of R500.00. The bonus may
however not exceed R16 000.00.
If the employee has been in service for more than 5 years, the employee is paid R1 260.00
for every completed year in service. The Production Bonus to be paid may never be more
than 15% of the Annual Salary.
Activity solution
Step Description
Step 6 Link the production bonus calculation to the Productions Bonus earning definition.
169
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
170
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
171
Sage 300 People Calculation Management
20. Double-click on the Months in Service (MonthsInService) option and enter / 12.
21. Enter a closing bracket ) and a plus sign (+).
22. Enter an opening bracket (.
23. Scroll down to the Years / Months in Service (YearsInService) option.
172
Sage 300 People Calculation Management
173
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
174
Sage 300 People Calculation Management
9. Click on OK.
10. The screen will stay on the Calculation Details screen:
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
175
Sage 300 People Calculation Management
19. Use the scroll bar to scroll down to the Period (PR) group.
176
Sage 300 People Calculation Management
177
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
178
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
179
Sage 300 People Calculation Management
180
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
181
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
182
Sage 300 People Calculation Management
17. Enter the third condition of the calculation. If the employee has been in service for more than 5
years, the employee is paid R1 260.00 for every completed year in service. The Production Bonus
to be paid may never be more than 15% of the Annual Salary:
21. Double-click on the Years / Months in Service (YearsinService) option and enter * 1260 >=.
22. Scroll up to the Employee Rule (ER) group.
23. Expand the Employee Rule (ER) group.
183
Sage 300 People Calculation Management
25. Double-click on the Annual Salary (AnnualSalary) option and enter * 0.15.
26. Place the cursor after the THEN.
27. Double-click on the Annual Salary (AnnualSalary) option and enter * 0.15.
28. Place the cursor after the ELSE.
29. Scroll down to the Years / Months in Service (YearsInService) option.
30. Double-click on the Years / Months in Service (YearsInService) option and enter * 1260.
184
Sage 300 People Calculation Management
185
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
186
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
187
Sage 300 People Calculation Management
20. Double-click on the Years / Months in Service (YearsInService) option and enter <= 1.
21. Place the cursor after the THEN.
188
Sage 300 People Calculation Management
189
Sage 300 People Calculation Management
190
Sage 300 People Calculation Management
191
Sage 300 People Calculation Management
192
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
193
Sage 300 People Calculation Management
194
Sage 300 People Calculation Management
10. The employees Production Bonus should calculate according to one of the following conditions:
If the employee has been in service for up to a year, the employee receives R300.00 for
every month in service plus a fixed value of R 230.00.
If the employee has been in service for longer than a year, up to 5 years, the employee
receives R60.00 for every week in service plus a fixed value of R500.00. The bonus may
however not exceed R16 000.00.
If the employee has been in service for more than 5 years, the employee is paid R1 260.00
for every completed year in service. The Production Bonus to be paid may never be more
than 15% of the Annual Salary.
195
Sage 300 People Calculation Management
The employee has been in service for 3 years and 3 months. She should receive R 10 640.00
Production Bonus according to the second condition.
Example
Example of the amount calculated for an employee employed more than 5 years:
196
Sage 300 People Calculation Management
She should receive R 11 340.00 Production Bonus according to the third condition.
End of example
End of activity
197
Sage 300 People Calculation Management
Activity 7
If there are no earnings, there should be no Union Fee deduction. If there are earnings, the
employee needs to pay 2% of the total of the Actual Salary + Travel Allowance + Housing
Allowance.
Activity solution
Step Description
Step 2 Link the Union Fee calculation to the Union Fee deduction definition.
5. Click on New.
198
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
199
Sage 300 People Calculation Management
200
Sage 300 People Calculation Management
201
Sage 300 People Calculation Management
34. Double-click on the Total (Total) option and enter a plus sign (+).
35. Repeat steps 29 – 31 for the following earnings:
Wage: [PS.EA.CODE.WAGE.Total]
Cash: [PS.EA.CODE.CASH.Total]
Travel Allowance: [PS.EA.CODE.TRAVEL.Total]
Housing Allowance: [PS.EA.CODE.HOUSING.Total]
36. Enter a closing bracket ) and enter * 0.02.
37. Place the cursor after the ELSE.
38. Enter a 0 (zero).
39. Click on Verify.
202
Sage 300 People Calculation Management
203
Sage 300 People Calculation Management
Step 2: Link the Union Fee calculation to the Union Fee deduction definition
To access the Deduction Definition Detail screen, from the Navigation pane:
204
Sage 300 People Calculation Management
7. Ensure that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Deductions calculation group.
11. Click on the Union Fee calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
205
Sage 300 People Calculation Management
The employees total earnings are greater than zero (0). The Union deduction should then calculate
as follow:
End of activity
206
Sage 300 People Calculation Management
Activity 8
If an employee has been in service for exactly 5 years, then calculate the maximum of either
1% of Annual Salary or 30% of R15 000.00 .
If an employee has been in service for exactly 10 years, then calculate the minimum of
either 2% of Annual Salary or 50% of R15 000.00 .
If this is not the case, no Long Service Bonus should be paid.
Activity solution
Step Description
Link the Long Service Bonus calculation to the Long Service Bonus earning
Step 2
definition.
5. Click on New.
207
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
208
Sage 300 People Calculation Management
209
Sage 300 People Calculation Management
31. Place the cursor in the bracket, before the first comma.
32. Add an opening bracket (.
33. Expand the Employee (EE) group.
210
Sage 300 People Calculation Management
211
Sage 300 People Calculation Management
43. Place the cursor after the first bracket, before THEN and press <Enter> twice.
44. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
45. Click on the Calculations tab.
212
Sage 300 People Calculation Management
53. Double-click on the Annual Salary (AnnualSalary) option and enter * 0.02).
54. Place the cursor after the first comma and enter (15000 * 0.5).
55. Delete the second comma and additional dots.
56. Enter the third condition of the calculation. If this is not the case, no Long Service Bonus should
be paid.
57. Place the cursor after the ELSE and enter 0 (zero).
58. Click on Verify.
213
Sage 300 People Calculation Management
214
Sage 300 People Calculation Management
Step 2: Link the Long Service Bonus calculation to the Long Service Bonus
earning definition
To access the Earning Definition Detail screen, from the Navigation pane:
215
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Long Service Bonus calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
216
Sage 300 People Calculation Management
217
Sage 300 People Calculation Management
13. If the values do not automatically display, click on the Calculate button on the ribbon.
14. The employees Long Service Bonus should calculate according to one of the following conditions:
If an employee has been in service for exactly 5 years, then calculate the maximum of either
1% of Annual Salary or 30% of R15 000.00 .
If an employee has been in service for exactly 10 years, then calculate the minimum of either
2% of Annual Salary or 50% of R15 000.00 .
If this is not the case, no Long Service Bonus should be paid.
The employee has been in service for exactly 5 years. He should receive the maximum of either
1% of Annual Salary or 30% of R15 000.00 .
Annual Salary x 1%
R 248 239.44 x 1% = R 2 482.39
OR
The employee received the maximum amount of R 4 500.00. The custom calculation is correct on
the system.
End of activity
218
Sage 300 People Calculation Management
Activity 9
In this company, there are employees who sell software. This quarterly bonus is calculated as
10% of the average software sales from the preceding 3 months. The software sales amount will
be entered on the additional screen. The current period is the first period the Sales Bonus should
be paid out in.
Activity solution
Step Description
Step 2 Link the sales bonus calculation to the Sales Bonus earning definition.
Make changes to the Calculation Recurrence setup on the Sales Bonus earning
Step 3
definition.
5. Click on New.
219
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
220
Sage 300 People Calculation Management
221
Sage 300 People Calculation Management
222
Sage 300 People Calculation Management
30. Scroll down to the next Previous Payslip (PREVIOUS) group. (This option will be within the
Previous Payslip (PREVIOUS) field selected in step 22.)
223
Sage 300 People Calculation Management
224
Sage 300 People Calculation Management
225
Sage 300 People Calculation Management
226
Sage 300 People Calculation Management
Step 2: Link the Sales Bonus calculation to the Sales Bonus earning
definition
To access the Earning Definition Detail screen, from the Navigation pane:
227
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Sales Bonus calculation.
12. Click on Save.
13. Click on OK.
14. Stay on this screen.
1. Select the Main Payrun field for the Marvel Monthly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
228
Sage 300 People Calculation Management
4. In the This item will occur field, select On-Off Pattern from the drop-down.
5. In the On periods (Item will occur) field, enter 1.
6. In the Off periods (Item will not occur): field, enter 2.
7. Ensure that the calculation will only take place once a quarter (every 3 months) by scrolling through
the Example section.
8. Click on Ok.
9. The screen will return to the Earning Definition Detail screen:
229
Sage 300 People Calculation Management
230
Sage 300 People Calculation Management
10. If the values do not automatically display, click on the Calculate button in the ribbon.
11. The employee received R 3 333.33 Sales Bonus which is correct. The custom calculation is correct
on the system.
12. Click on Save.
13. Click on OK.
14. Close the screens.
End of activity
231
Sage 300 People Calculation Management
Activity 10
If the Annual Salary is greater than R200 000.00 the Medical Aid is R500.00 for the member and
each dependant, otherwise R250.00 for the member and each dependant. The dependants are
loaded on the Employee Detail screen of the employee. 60% Company contribution and 40%
Employee contribution. The medical aid contribution will only be effective in the last period of the
month for the weekly employees.
Activity solution
Step Description
Link the Medical Aid company contribution calculation to the Medical Aid company
Step 3
contribution definition.
Make changes to the Calculation Recurrence setup on the Medical Aid company
Step 4
contribution definition.
Step 5 Link the Medical Aid deduction calculation to the Medical Aid deduction definition.
Make changes to the Calculation Recurrence setup on the Medical Aid deduction
Step 6
definition.
232
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
233
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
234
Sage 300 People Calculation Management
235
Sage 300 People Calculation Management
30. Double-click on the Medical Beneficiaries (MedicalBeneficiaries) option and enter * 500 * 0.6.
31. Place the cursor after the ELSE.
32. Double-click on the Medical Beneficiaries (MedicalBeneficiaries) option and enter * 250 * 0.6.
33. Click on Verify.
236
Sage 300 People Calculation Management
237
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
238
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
239
Sage 300 People Calculation Management
240
Sage 300 People Calculation Management
25. Double-click on the Medical Beneficiaries (MedicalBeneficiaries) option and enter * 500 * 0.4.
26. Place the cursor after the ELSE.
27. Double-click on the Medical Beneficiaries (MedicalBeneficiaries) option and enter * 250 * 0.4.
28. Click on Verify.
241
Sage 300 People Calculation Management
242
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Company Contributions calculation group.
11. Click on the Medical Aid calculation.
12. Click on Save.
13. Click on OK.
14. Stay on this screen.
243
Sage 300 People Calculation Management
1. Select the Main Payrun field for the Marvel Weekly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
4. In the This item will occur field, select Last N periods of the month from the drop-down.
5. In the On periods (Item will occur) field, enter 1.
6. Ensure that the calculation will only take place in the last period of every month by scrolling through
the Example section.
7. Click on Ok.
244
Sage 300 People Calculation Management
8. The screen will return to the Company Contribution Definition Detail screen:
9. Click on Save.
10. Click on OK.
11. Close the screens.
245
Sage 300 People Calculation Management
Step 5: Link the Medical Aid deduction calculation to the Medical Aid
deduction definition
To access the Deduction Definition Detail screen, from the Navigation pane:
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Deductions calculation group.
11. Click on the Medical Aid calculation.
12. Click on Save.
13. Click on OK.
14. Stay on this screen.
246
Sage 300 People Calculation Management
1. Select the Main Payrun field for the Marvel Weekly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
4. In the This item will occur field, select Last N periods of the month from the drop-down.
5. In the On periods (Item will occur) field, enter 1.
6. Ensure that the calculation will only take place in the last period of every month by scrolling through
the Example section.
7. Click on Ok.
247
Sage 300 People Calculation Management
9. Click on Save.
10. Click on OK.
11. Close the screens.
248
Sage 300 People Calculation Management
4. Select Miss A Rogue (006) and click on the Employee Detail option.
5. The Employee Details screen displays:
249
Sage 300 People Calculation Management
13. If the values do not automatically display, click on the Calculate button on the ribbon.
14. The employees Medical Aid should calculate according to one of the following conditions:
If the Annual Salary is greater than R200 000.00 the Medical Aid is R500.00 for the member and
each dependant, otherwise R250.00 for the member and each dependant. The dependants are
loaded on the Employee Detail screen of the employee. 60% Company contribution and 40%
Employee contribution.
The employee has 2 medical beneficiaries and her Annual Salary is greater than R200 000.00
(R 359 937.70). She should receive R500 per beneficiary.
250
Sage 300 People Calculation Management
Example
The company rule has to be in the final period of the month for the calculation to work. Alternatively, you
can remove the recurrence on the Deduction and Company Contribution Definition Detail screens to test.
251
Sage 300 People Calculation Management
The employee has 3 medical beneficiaries and her Annual Salary is greater than R200 000.00
(R 780 000.00). She should receive R500 per beneficiary.
End of example
End of activity
252
Sage 300 People Calculation Management
Activity 11
If the Package is up to R20 000.00, both the employee and company pay 6% of 70% of the
Package towards the Pension Fund.
If the Package is more than R20 000.00, both the employee and company pay 7% of 70% of
the Package.
Remember to create the RFI Calc. This is a DB fund.
Activity solution
Step Description
Link the Provident Fund calculation to the Sanlam Provident company contribution
Step 6
definition.
Step 7 Link the Provident Fund calculation to the Sanlam Provident deduction definition.
253
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
254
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
17. On the Variables tab, expand the Payslip Definition (PD) group.
18. Scroll down to the Remuneration Amount (RemunerationAmount) option.
255
Sage 300 People Calculation Management
19. Double-click on the Remuneration Amount (RemunerationAmount) option and enter * 0.7.
20. Click on Verify.
256
Sage 300 People Calculation Management
1. Click on New.
257
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
258
Sage 300 People Calculation Management
259
Sage 300 People Calculation Management
19. Double-click on the Total (Total) option and enter a plus sign (+).
20. Scroll down to the Housing Allowance (HOUSING) group.
23. Double-click on the Total (Total) option and enter a plus sign (+).
260
Sage 300 People Calculation Management
27. Double-click on the Total (Total) option and enter a plus sign (+).
261
Sage 300 People Calculation Management
262
Sage 300 People Calculation Management
263
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
264
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
265
Sage 300 People Calculation Management
266
Sage 300 People Calculation Management
267
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
268
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
269
Sage 300 People Calculation Management
270
Sage 300 People Calculation Management
23. Double-click on the Period Salary (PeriodSalary) option and enter <= 20000.
24. Place the cursor after the THEN.
25. Double-click on the Period Salary (PeriodSalary) option and enter * 0.7 * 0.06.
26. Place the cursor after the ELSE.
271
Sage 300 People Calculation Management
27. Double-click on the Period Salary (PeriodSalary) option and enter * 0.7 * 0.07.
28. Click on Verify.
272
Sage 300 People Calculation Management
5. In the RFI Calculation Method field, select Custom Calculation from the drop-down.
6. In the Calculation Entry field, select the Sanlam Provident Fund RFI calculation.
7. Click on Save All.
8. Click on Yes.
9. Click on OK.
10. Close the screen.
273
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Deductions calculation group.
11. Click on the Sanlam Provident Fund calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
274
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Deductions calculation group.
11. Click on the Sanlam Provident Fund calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
275
Sage 300 People Calculation Management
7. If the values do not automatically display, click on the Calculate button on the ribbon.
276
Sage 300 People Calculation Management
8. The employees Sanlam Provident Fund deduction and company contribution should calculate
as:
RFI should calculate as the minimum value between the pensionable salary x 70% and taxable
company contributions.
End of activity
277
Sage 300 People Calculation Management
Activity 12
All employees receive an Annual Bonus in December. Setup one calculation for monthly and
weekly employees. The bonus pays out in the second week in December in the weekly company.
The bonus is calculated as follow:
Category Amount
Category JM The greater of 95% of the Period Salary and 10% of the Annual Salary.
Activity solution
Step Description
Step 3 Link the Annual Bonus calculation to the Annual Bonus earning definition.
Make changes to the Calculation Recurrence setup on the Annual Bonus earning
Step 4
definition.
278
Sage 300 People Calculation Management
279
Sage 300 People Calculation Management
9. Drag and drop the Hierarchy Id field next to the Hierarchy Name heading.
10. Write down the Hierarchy Id for each category in order to use them in the Annual Bonus
calculation.
11. Close the screen.
280
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
281
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
282
Sage 300 People Calculation Management
283
Sage 300 People Calculation Management
32. Place the cursor after the first bracket, before THEN and press <Enter> twice.
33. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
34. Place the cursor after the second if(.
35. Click on the Variables tab.
284
Sage 300 People Calculation Management
285
Sage 300 People Calculation Management
45. Double-click on the Period Salary (PeriodSalary) option and enter * 0.95).
46. Place the cursor after the first comma and add an additional open bracket “(“.
47. Scroll up to the Annual Salary (AnnualSalary) option.
286
Sage 300 People Calculation Management
48. Double-click on the Annual Salary (AnnualSalary) option and enter * 0.1).
49. Delete the last comma and the additional dots.
50. Place the cursor after the ELSE.
51. Double-click on the if( THEN ELSE ) function.
52. Place the cursor after the first bracket, before THEN and press <Enter> twice.
53. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
54. Place the cursor after the last if(.
55. On the Variables tab, scroll down to the Hierarchy Id (HierarchyID) option.
287
Sage 300 People Calculation Management
60. Place the cursor after the first bracket, before THEN and press <Enter> twice.
61. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
288
Sage 300 People Calculation Management
66. Double-click on the Months in Service calculation. This calculation was created in a previous
activity.
67. Enter * 250.
68. Place the cursor after the ELSE and enter 0 (zero).
289
Sage 300 People Calculation Management
290
Sage 300 People Calculation Management
Step 3: Link the Annual Bonus calculation to the Annual Bonus earning
definition
To access the Earning Definition Detail screen, from the Navigation pane:
291
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Annual Bonus calculation.
12. Click on Save.
13. Click on OK.
14. Stay on the screen.
1. Select the Main Payrun field for the Marvel Monthly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
292
Sage 300 People Calculation Management
4. In the This item will occur field, select Exact period of the tax year from the drop-down.
5. In the On periods (Item will occur) field, enter 10.
6. Ensure that the calculation will only take place in December by scrolling through the Example
section.
7. Click on Ok.
8. The screen will return to the Earning Definition Detail screen:
9. Select the Main Payrun field for the Marvel Weekly company rule.
10. Click on the ellipsis in Calculation Recurrence Type field.
293
Sage 300 People Calculation Management
12. In the This item will occur field, select Exact period of the month from the drop-down.
13. In the On periods (Item will occur) field, enter 2.
14. In the Occurs only in month: field, select December from the drop-down.
15. Ensure that the calculation will only take place in the second week of December by scrolling
through the Example section.
16. Click on Ok.
17. The screen will return to the Earning Definition Detail screen:
294
Sage 300 People Calculation Management
Important information
A recurrence is set up for the Annual Bonus to only calculate in December. The company rule is
currently not in December. To test the calculation in the current period you will need to remove
the recurrence on the Earning Definition Detail screen and add it again after testing the
calculation.
6. The employee is linked to the SM category under the Hierarchy Structure section.
295
Sage 300 People Calculation Management
10. If the values do not automatically display, click on the Calculate button on the ribbon.
296
Sage 300 People Calculation Management
11. The employees Annual Bonus should calculate according to one of the following conditions:
Category Amount
Category JM The greater of 95% of the Period Salary and 10% of the Annual Salary.
According to the conditions the employee should receive R 20 000.00 for category SM.
Example
Example of the Annual Bonus calculation if the employee is linking to category GS.
The employee is linked to the GS category under the Hierarchy Structure section.
The employee has been in service for 5 years and 0 months.
297
Sage 300 People Calculation Management
According to the conditions the employee should receive a R100.00 for every week in service for the GS
category.
End of example
298
Sage 300 People Calculation Management
Example
Example of the Annual Bonus calculation if the employee is linking to category JM.
The employee is linked to the JM category under the Hierarchy Structure section.
299
Sage 300 People Calculation Management
According to the conditions the employee should receive the greater of 95% of the Period Salary or
10% of the Annual Salary, for the JM category.
OR
End of example
300
Sage 300 People Calculation Management
Example
Example of the Annual Bonus calculation if the employee is linking to category KL.
The employee is linked to the KL category under the Hierarchy Structure section.
The employee has been in service for 5 years and 0 months.
According to the conditions the employee should receive R 250.00 for every month in service for the KL
category.
301
Sage 300 People Calculation Management
End of example
End of activity
302
Sage 300 People Calculation Management
Activity 13
Assist the customer to calculate the Provision for tax on Annual Bonus. Annual Bonus is
calculated as above. Should the employee not have contributed enough, the difference should be
taken when the Annual Bonus is paid out.
Activity solution
Step Description
Link the Provision for Tax on Annual Bonus calculation to the Provision for tax on
Step 3
bonus provision definition.
5. Click on New.
303
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
304
Sage 300 People Calculation Management
21. Double-click on the EndDate(End Date) option and enter a comma (,).
305
Sage 300 People Calculation Management
306
Sage 300 People Calculation Management
307
Sage 300 People Calculation Management
1. Click on New.
2. The Calculation Details screen displays:
308
Sage 300 People Calculation Management
11. Click on the New record button in the Calculation Definition section.
12. The Expression Builder screen displays:
309
Sage 300 People Calculation Management
310
Sage 300 People Calculation Management
311
Sage 300 People Calculation Management
312
Sage 300 People Calculation Management
Step 3: Link the Provision for Tax on Annual Bonus calculation to the
Provision for tax on bonus provision definition
To access the Provision Definition Detail screen, from the Navigation pane:
313
Sage 300 People Calculation Management
314
Sage 300 People Calculation Management
8. The Provision for tax on bonus amount calculates as R 2 000.00 for the current period.
9. Click on Save.
10. Click on OK.
11. Close the screens.
End of activity
315
Sage 300 People Calculation Management
Activity 14
Only employees with a birthday in the current month should receive this bonus of R250.00. The
bonus will be paid in the first period of the month in the weekly company.
Activity solution
Step Description
Step 2 Link the Birthday Bonus calculation to the Birthday Bonus earning definition.
Make changes to the Calculation Recurrence setup on the Birthday Bonus earning
Step 3
definition.
5. Click on New.
316
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
317
Sage 300 People Calculation Management
318
Sage 300 People Calculation Management
319
Sage 300 People Calculation Management
320
Sage 300 People Calculation Management
321
Sage 300 People Calculation Management
322
Sage 300 People Calculation Management
Step 2: Link the Birthday Bonus calculation to the Birthday Bonus earning
definition
To access the Earning Definition Detail screen, from the Navigation pane:
323
Sage 300 People Calculation Management
1. Select the Main Payrun field for the Marvel Weekly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
4. In the This item will occur field, select First N periods of the month from the drop-down.
324
Sage 300 People Calculation Management
9. Click on Save.
10. Click on OK.
11. Close the screens.
325
Sage 300 People Calculation Management
326
Sage 300 People Calculation Management
11. If the values do not automatically display, click on the Calculate button on the ribbon.
12. The employee received a R 250.00 Birthday Bonus, which is correct. The custom earning
calculation is correct on the system.
13. Click on Save.
14. Click on OK.
15. Close the screens.
327
Sage 300 People Calculation Management
Example
Example of an employee in the Weekly company rule, who should receive a birthday bonus.
1. The birthday bonus should calculate in the first period of the month. The company rule is currently
in the first period of the month.
2. The employees birthday is in March, which is the current period for the weekly company rule.
328
Sage 300 People Calculation Management
3. The employee receives his birthday bonus. The custom earning calculation is correct on the
system.
End of example
End of activity
329
Sage 300 People Calculation Management
Wage (Weekly)
Activity 15
All weekly employees are paid at different rates depending on the Job Grade they belong to.
Tip
Activity solution
Step Description
330
Sage 300 People Calculation Management
5. Click on New for each of the four job grades that needs to be loaded.
6. Complete the job grade fields with the information provided in the table.
7. Click on Save All.
8. The following message displays:
9. Click on Yes.
10. Click on OK.
331
Sage 300 People Calculation Management
14. Drag the Job Grade Id field and drop it next to the Code heading.
332
Sage 300 People Calculation Management
15. Write down the Job Grade Id for each corresponding Job Grade.
16. Close the screen.
5. Click on New.
333
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
334
Sage 300 People Calculation Management
335
Sage 300 People Calculation Management
336
Sage 300 People Calculation Management
337
Sage 300 People Calculation Management
35. Double-click on the Units Capture (UnitsCapture) option and enter * 44.20.
36. Place the cursor after the ELSE.
37. Double-click on the if( THEN ELSE) option under the Functions section.
38. Place the cursor after the first bracket, before THEN and press <Enter> twice.
39. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
40. Place the cursor after the ELSE and before the last bracket and press <Enter> twice.
41. Place the cursor after the first bracket of the new if statement.
42. Scroll up to the Job Grade (JobGradeID) option which was used previously.
338
Sage 300 People Calculation Management
46. Double-click on the Units Capture (UnitsCapture) option and enter * 58.00.
47. Place the cursor after the ELSE.
339
Sage 300 People Calculation Management
48. Double-click on the if( THEN ELSE) option under the Functions section.
49. Place the cursor after the first bracket, before THEN and press <Enter> twice.
50. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
51. Place the cursor after the ELSE and before the last bracket and press <Enter> twice.
52. Place the cursor after the first bracket of the new if statement.
53. Scroll up to the Job Grade (JobGradeID) option which was used previously.
340
Sage 300 People Calculation Management
57. Double-click on the Units Capture (UnitsCapture) option and enter * 82.70.
58. Place the cursor after the ELSE.
59. Double-click on the if( THEN ELSE) option under the Functions section.
60. Place the cursor after the first bracket, before THEN and press <Enter> twice.
61. Place the cursor after the THEN and before the ELSE and press <Enter> twice.
62. Place the cursor after the ELSE and before the last bracket and press <Enter> twice.
63. Place the cursor after the first bracket of the new if statement.
64. Scroll up to the Job Grade (JobGradeID) option which was used previously.
341
Sage 300 People Calculation Management
68. Double-click on the Units Capture (UnitsCapture) option and enter * 103.00.
69. Place the cursor after the ELSE and enter a 0 (zero).
70. Click on Verify.
342
Sage 300 People Calculation Management
343
Sage 300 People Calculation Management
344
Sage 300 People Calculation Management
345
Sage 300 People Calculation Management
4. Select Miss L Lane (005) and click on the Employee Detail option.
5. The Employee Details screen displays:
346
Sage 300 People Calculation Management
347
Sage 300 People Calculation Management
15. The wage amount calculated on the system is R 442.00. According to the calculation conditions the
employee should receive R 44.20 per hour.
Example
The wage amount calculated on the system is R 580.00. According to the calculation conditions the
employee should receive R 58.00 per hour.
End of example
348
Sage 300 People Calculation Management
Example
The wage amount calculated on the system is R 827.00. According to the calculation conditions the
employee should receive R 82.70 per hour.
End of example
349
Sage 300 People Calculation Management
Example
The wage amount calculated on the system is R 1 030.00. According to the calculation conditions the
employee should receive R 103.00 per hour.
End of example
End of activity
350
Sage 300 People Calculation Management
Activity 16
Employees receive an Anniversary Bonus once a year in their anniversary month. Weekly
employees must receive this bonus in the last week of the month. Use a Table Lookup for the
following:
Up to 1 year R100.00
Up to 2 years R200.00
Up to 3 years R300.00
Up to 4 years R400.00
Up to 5 years R500.00
Up to 6 years R600.00
Up to 7 years R700.00
Up to 8 years R800.00
Up to 9 years R900.00
Up to 10 years R1 000.00
Up to 20 years R1 500.00
Activity solution
Step Description
351
Sage 300 People Calculation Management
5. Click on New.
6. The Table Lookup Items screen displays:
352
Sage 300 People Calculation Management
353
Sage 300 People Calculation Management
19. The screen will return to the Table Lookup Items screen:
354
Sage 300 People Calculation Management
5. Click on New.
6. The Calculation Details screen displays:
355
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
16. The Expression Builder screen displays:
356
Sage 300 People Calculation Management
357
Sage 300 People Calculation Management
358
Sage 300 People Calculation Management
359
Sage 300 People Calculation Management
40. Scroll up to the Years / Months in Service (YearsInService) option, which should still be open
under the Employee (EE) group.
360
Sage 300 People Calculation Management
361
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
362
Sage 300 People Calculation Management
1. Select the Main Payrun field for the Marvel Weekly company rule.
2. Click on the ellipsis in Calculation Recurrence Type field.
3. The Recurrence screen displays:
363
Sage 300 People Calculation Management
4. In the This item will occur field, select Last N periods of the month from the drop-down.
5. In the On periods (Item will occur) field, enter 1.
6. Ensure that the calculation will only take place in the last period of the month by scrolling through
the Example section.
7. Click on Ok.
8. The screen will return to the Earning Definition Detail screen:
9. Click on Save.
10. Click on OK.
11. Close the screens.
364
Sage 300 People Calculation Management
6. Change the employees Date Engaged to 2016/05/07. This is for testing purposes only and should
not be done on a live employee at a client.
7. The employee has been employed for 3 years. According to the table provided, the employee
should receive R 300.00 as an anniversary bonus.
365
Sage 300 People Calculation Management
12. If the values do not automatically display, click on the Calculate button in the ribbon.
13. The employee received a R 300.00 Anniversary Bonus, which is correct. The custom earning
calculation is correct on the system.
14. Click on Save.
15. Click on OK.
16. Close the screens.
End of activity
366
Sage 300 People Calculation Management
Activity 17
Employees have an initial probation period of 3 months; therefore, employees are permanently
employed in month 4. Once permanently employed all employees receive R500 per month.
Activity solution
Step Description
5. Click on New.
367
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
368
Sage 300 People Calculation Management
24. Scroll down to the Probation Period End Date (ProbationPeriodEndDate) option.
369
Sage 300 People Calculation Management
25. Double-click on the Probation Period End Date (ProbationPeriodEndDate) option and enter a
less than sign (<).
26. Scroll down to the Period (PR) group.
370
Sage 300 People Calculation Management
371
Sage 300 People Calculation Management
372
Sage 300 People Calculation Management
7. Confirm that Calculation/Input has been selected in the Input Type field.
8. Select Custom in the Calculation Type field.
9. Click on the Calculation Entry drop-down.
10. Expand the Earnings calculation group.
11. Click on the Entertainment Allowance calculation.
12. Click on Save.
13. Click on OK.
14. Close the screens.
373
Sage 300 People Calculation Management
6. The employee’s probation period ended on 2019/01/31. She should thus receive an entertainment
allowance.
374
Sage 300 People Calculation Management
10. If the values do not automatically display, click on the Calculate button on the ribbon.
11. The employee received a R 500.00 Entertainment Allowance, which is correct. The custom earning
calculation is correct on the system.
12. Click on Save.
13. Click on OK.
14. Close the screens.
375
Sage 300 People Calculation Management
Example
The probation period ends on 2019/06/30 and the current period ends on 2019/05/31.
The employee did not receive an entertainment allowance. The custom earning calculation is correct on
the system.
End of example
End of activity
376
Sage 300 People Calculation Management
Activity 18
Employees are not allowed to receive more than 60 hours overtime, set-up an alert to indicate
whether the employee received more than 60 hours OT1.5 and OT2.0 for the current period.
Activity solution
Step Description
5. Click on New.
377
Sage 300 People Calculation Management
15. Click on the New record button in the Calculation Definition section.
378
Sage 300 People Calculation Management
379
Sage 300 People Calculation Management
24. Double-click on the Units (Units) option and enter a plus sign (+).
25. Scroll down to the Overtime 2.0 (OT20) group.
380
Sage 300 People Calculation Management
28. Double-click on the Units (Units) option and enter a greater as sign (>) and 60.
29. Click on Verify.
381
Sage 300 People Calculation Management
5. Click on New.
382
Sage 300 People Calculation Management
383
Sage 300 People Calculation Management
384
Sage 300 People Calculation Management
8. The Overtime Hours alert displays at the top right of the screen, due to the hours captured being
more than 60 hours for the period. The custom alert calculation is correct on the system.
9. Click on Save.
10. Click on OK.
11. Close the screens.
Example
The overtime alert does not display for less than 60 hours. The custom earning calculation is correct on
the system.
End of example
End of activity
385