diff options
| -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 |
