[10749] | 1 | .. _label-uc-contract-remove: |
---|
| 2 | |
---|
[10781] | 3 | Remove a Contract |
---|
[10749] | 4 | *********************************************************************** |
---|
| 5 | |
---|
| 6 | Short Description |
---|
| 7 | ----------------------------------------------------------------------- |
---|
| 8 | |
---|
| 9 | A contract is removed from system. |
---|
| 10 | |
---|
| 11 | Actor(s) |
---|
| 12 | ----------------------------------------------------------------------- |
---|
| 13 | |
---|
[10780] | 14 | Officer, Customer |
---|
[10749] | 15 | |
---|
| 16 | |
---|
| 17 | Trigger(s) |
---|
| 18 | ----------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | - Imports (removing existing data) |
---|
[10753] | 21 | - Web form(s) submitted by authorized user |
---|
[10749] | 22 | |
---|
| 23 | |
---|
| 24 | Result(s) |
---|
| 25 | ----------------------------------------------------------------------- |
---|
| 26 | |
---|
| 27 | - Contract data of the given contract and all connected data (contract |
---|
| 28 | add-ons, etc.) was removed from the system. |
---|
| 29 | - All removed data is archived. |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | Incoming Data |
---|
| 33 | ----------------------------------------------------------------------- |
---|
| 34 | |
---|
| 35 | - Contract ID |
---|
| 36 | |
---|
| 37 | Outgoing Data |
---|
| 38 | ----------------------------------------------------------------------- |
---|
| 39 | |
---|
[10753] | 40 | - Message about contract removal |
---|
| 41 | - (optional) Regarding customer is informed by email or SMS. |
---|
[10749] | 42 | - Log message |
---|
[10753] | 43 | - Archive entry |
---|
[10749] | 44 | |
---|
| 45 | |
---|
| 46 | Precondition(s) |
---|
| 47 | ----------------------------------------------------------------------- |
---|
| 48 | |
---|
| 49 | - Contract ID must exist. |
---|
| 50 | - Submitting user must be authorized to perform the operation. |
---|
[10780] | 51 | - Customers can only remove the contract if it has not yet been |
---|
| 52 | concluded and no transactions have been made. |
---|
| 53 | If customers accidentally added a contract they can |
---|
| 54 | subesequently remove it to correct their mistake. |
---|
[10749] | 55 | |
---|
| 56 | |
---|
| 57 | Postcondition(s) |
---|
| 58 | ----------------------------------------------------------------------- |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | Invariant(s) |
---|
| 62 | ----------------------------------------------------------------------- |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | Essential Steps |
---|
| 66 | ----------------------------------------------------------------------- |
---|
| 67 | |
---|
| 68 | - System validates contract ID. |
---|
| 69 | - Removed data is archived. |
---|
| 70 | - System removes the given contract and connected items (transactions, |
---|
[10780] | 71 | supplementary contracts, etc.). |
---|
[10753] | 72 | - (optional) System informs regarding customer (email and/or SMS). |
---|
[10749] | 73 | |
---|
| 74 | |
---|
| 75 | Open Issues |
---|
| 76 | ----------------------------------------------------------------------- |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | Remarks |
---|
| 81 | ----------------------------------------------------------------------- |
---|
| 82 | |
---|
| 83 | An ended contract is not the same as a removed contract. |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | .. raw:: latex |
---|
| 87 | |
---|
[10780] | 88 | \ |
---|