diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-15 14:06:41 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-15 14:06:41 +0100 |
| commit | af7920c8e9405ea0e7591907555edad3a19688c8 (patch) | |
| tree | a47dab4711b79c9e871fb9448c5ecc8dfdb9ee86 | |
| parent | 59d72b6c6a5f48a49fcbe91fee72eff20b9bb8d3 (diff) | |
edit req-030
| -rw-r--r-- | requirements/catalogue/req-030.md | 2 | ||||
| -rw-r--r-- | requirements/data_models/dml-transaction.md | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/requirements/catalogue/req-030.md b/requirements/catalogue/req-030.md index 38961be..09286df 100644 --- a/requirements/catalogue/req-030.md +++ b/requirements/catalogue/req-030.md @@ -38,7 +38,7 @@ Inputs: 8. If there is no transaction with the ID, `transaction_id`, then return FALSE. 9. Let `transaction` be the transaction with the ID, `transaction_id`. 10. If there is a transaction, `transaction_2`, such that - `transaction_2.date > transaction.date` and + `transaction_2.timestamp >= transaction.timestamp` and `transaction.bucket_id = bucket.id`, then return FALSE. 11. Return TRUE. diff --git a/requirements/data_models/dml-transaction.md b/requirements/data_models/dml-transaction.md index 921eb10..b6b76f7 100644 --- a/requirements/data_models/dml-transaction.md +++ b/requirements/data_models/dml-transaction.md @@ -3,12 +3,13 @@ A transaction represents a real transaction, such as buying a beer or depositing a wage slip. It may be associated with at most one bucket. -| Field | Type | Description | -| ------------ | ------- | -------------------------------------------------- | -| id | string | | -| amount | number | The amount of money involved in the transaction. | -| date | date | The calendar date when the transaction took place. | -| counterparty | string | The other party in the transaction. | -| bucket_id | string? | The bucket associated with the transaction. | +| Field | Type | Description | +| ------------ | ------- | ---------------------------------------------------------- | +| id | string | | +| amount | number | The amount of money involved in the transaction. | +| date | date | The calendar date when the transaction took place. | +| counterparty | string | The other party in the transaction. | +| bucket_id | string? | The bucket associated with the transaction. | +| timestamp | number | The time the transaction was inserted as a Unix timestamp. | Source: req-010, req-017 |
