Error codes

PAYROLL_BUDGET_EXCEEDED

An offer or a raise would commit more than the department has left this year. Nothing was signed.

Exit code: 6 · Who acts: You or another person, after you read the current state, or by waiting · From: the CLI, the SDK and the backend

What it means

An offer or a raise would commit more than the department has left this year. Nothing was signed.

Common causes

  • An earlier offer still holds budget. An offer reserves its whole rate until it is accepted, withdrawn or lapses.
  • The rate has a typo: /month is multiplied by 12.
  • The Owners lowered the budget since the last offer.

Fix it

  1. See what is committed: capxul org department show <department>.
  2. If an unaccepted offer is wrong, withdraw it: capxul org agreement withdraw <agreement>.
  3. Otherwise, ask an Owner to raise the budget: capxul org department budget set <department> <amount>/year. That is a proposal.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "PAYROLL_BUDGET_EXCEEDED",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "PAYROLL_BUDGET_EXCEEDED". Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

On this page