DBC-Susteq/susteq — pull request #9 by opleban (2014-09-24 23:41:15+00:00)
Title: adds uniqueness validations for transactions

Per our conversation with Niels, I added a validation on the Transaction model that checks for uniqueness of new transactions based on the transaction_code scoped to by location_id and transaction_time. This means that any transaction that the validation will only check transactions that have have the same location_id and transaction_time before checking for uniqueness of the transaction_code in the db. I also added model and controller tests to ensure that it is functioning as expected.
@melissa-mccoy