adjust department
The adjdept
parameter adjusts the account balance of all users in a
particular department. This command does not set the overall department balance. It
adjusts the balances of users belonging to the department by adding or adjusting the
account balance.
adjdept dp <dept_name> <amount>
As depicted in the examples below, two additional parameters
may be used (set
and atleast
).
If neither set
nor atleast
are
used, the amount is added to each user's account in the department.
If you use the set
parameter, each user account
belonging to the department is adjusted to the set
amount
whether the account balance is above or below that amount. If the atleast
parameter
is present, account balances below the atleast
amount
are adjusted up, but accounts balances above the atleast
amount
are not adjusted.
Example 1: Add $500 to all user account balances in the Marketing department:
EQCMD -sMyServer adjdept dp Marketing 500.00
Example 2: Set all user account balances in the Marketing department to $500:
EQCMD -sMyServer adjdept dp Marketing set 500.00
Example 3: Ensure all user account balances in the Marketing department are at least $500:
EQCMD -sMyServer adjdept dp Marketing atleast 500.00