@smartkomm/plexus-cli 0.1.312 → 0.1.314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 447b87974d4f6d284f7f3bca527f2521257345760efc48c85a0894d8f21fc91a
1
+ a1b0054edc4e8c09b7b08cbaa4e3d32fb61c274cfbb089b872fae7237a1d41e7
@@ -1,7 +1,7 @@
1
1
  # plexus-cli command reference
2
2
 
3
3
  Generated from the commands the CLI registers — do not edit; `plexus-cli <command> --help` prints the same.
4
- 304 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
4
+ 305 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
5
5
  `--json` (raw JSON instead of a table) and `--allow-prod` (required for a writing run against production).
6
6
 
7
7
  - [Admission (offline)](#admission-offline) (1)
@@ -12,7 +12,7 @@ Generated from the commands the CLI registers — do not edit; `plexus-cli <comm
12
12
  - [Config (offline)](#config-offline) (4)
13
13
  - [Config (school token)](#config-school-token) (6)
14
14
  - [Contracts (platform operator)](#contracts-platform-operator) (5)
15
- - [Contracts (school token)](#contracts-school-token) (21)
15
+ - [Contracts (school token)](#contracts-school-token) (22)
16
16
  - [Feedback (platform operator)](#feedback-platform-operator) (21)
17
17
  - [Files (school token)](#files-school-token) (3)
18
18
  - [Identity (own account)](#identity-own-account) (5)
@@ -627,6 +627,23 @@ Replace an applied grant from the 1st of a month: the old one ends the day befor
627
627
  | `--evidence <value>` (required) | Why the family gets it, as a JSON object — e.g. {"rank":2,"proof":"Bescheid Stadt 03.11."} |
628
628
  | `--from <value>` (required) | First day of the new grant (YYYY-MM-01) |
629
629
 
630
+ ### `contract mandate set-iban`
631
+
632
+ Give a contract's direct-debit mandate that has no IBAN its account, once, with the source of the IBAN
633
+
634
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
635
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
636
+
637
+ | Option | Description |
638
+ |---|---|
639
+ | `--contract <value>` (required) | The contract whose mandate has no IBAN |
640
+ | `--account-file <value>` | JSON file with iban, accountHolderName and optional bic |
641
+ | `--account-stdin` | Read that JSON from stdin |
642
+ | `--signed-at <value>` (required) | The date the mandate was signed (YYYY-MM-DD) |
643
+ | `--mandate-reference <value>` | The mandate reference; without one a collection run skips the mandate |
644
+ | `--source <value>` (required) | Where the IBAN comes from; stored with it |
645
+ | `--confirm` | Add the IBAN (default: dry run) |
646
+
630
647
  ### `contract twin apply <twin-file> ...`
631
648
 
632
649
  Import contract twins: each signed paper contract becomes a contract with its scan as revision 1
@@ -120,6 +120,24 @@ apply` imports them.
120
120
  Each twin is planned again; an unchanged one is skipped, a new one uploads its
121
121
  PDF and is written in one transaction. The row names the new contract id.
122
122
 
123
+ 3. Later, when the school confirms the account of a mandate imported without an
124
+ IBAN: put it in a JSON file (`{"iban": "...", "accountHolderName": "...",
125
+ "bic": "..."}`, BIC optional — never on the command line), check, then add:
126
+
127
+ ```bash
128
+ plexus-cli --env <env> --tenant <slug> contract mandate set-iban --contract <contract-id> \
129
+ --account-file account.json --signed-at <YYYY-MM-DD> --source "<where the IBAN comes from>"
130
+ # the same with --confirm adds it
131
+ ```
132
+
133
+ Add `--mandate-reference <ref>` when the school has one: without a reference
134
+ a collection run skips the mandate. The dry run shows the mandate's payment
135
+ method, the IBAN masked, the date, the reference and the source. Refused: the
136
+ mandate already has an IBAN, the check digits fail, the date is no date or
137
+ lies in the future, the holder or source is missing, or the holder already
138
+ holds this account as another payment method. The source is stored with the
139
+ IBAN. This adds an account once; it never changes one.
140
+
123
141
  ## Verify
124
142
 
125
143
  - `plan` again: every imported twin reads `unchanged` with its contract id.
@@ -134,7 +152,8 @@ apply` imports them.
134
152
  - A second contract of the same kind for the same pupil is refused, whatever made
135
153
  the first.
136
154
  - An IBAN is checked by its check digits; one that fails is refused — set
137
- `iban: null` and ask the school.
155
+ `iban: null` and ask the school, then add the confirmed account with
156
+ `contract mandate set-iban` (step 3).
138
157
  - Two mandates of one account holder on one IBAN become one payment method; its
139
158
  mandate date is the earliest.
140
159
  - A fully signed contract is an ordinary contract: a school with the finance module
@@ -172,7 +172,7 @@ forwarded) — and no `completableIf`, `--locks-evidence` or family request
172
172
  (`[workItems/feedback*]`). A recommendation or choice shows its options on the page; the words land in
173
173
  the chat like any result. `--clear-feedback` removes it.
174
174
 
175
- The mail is `staff.feedbackRequested`, on by default for every staff member, sent once the row can be answered; the school rewords it like any letter (`notifications/reword-a-letter.md`). Before switching a task over, count the team: every active member gets a link.
175
+ The mail is `staff.feedbackRequested`, on by default for every staff member, sent once the row can be answered; the school rewords it like any letter (`notifications/reword-a-letter.md`). It goes to one person: whoever holds the task, or — while it waits unassigned in the team's queue — the application's responsible person, who answers or assigns it; the person assigned then gets an own link.
176
176
 
177
177
  ```bash
178
178
  plexus-cli offer workflow node task add --dir "$DIR" --node <node> --key feedbackLehrkraft \