Page History
...
uppercase(md5(uppercase(md5(SALT) + md5(Х)))), where SALT – secret word; Х – string generated according to determined rules.
When bill with the same number is already exist then new bill is not created and an error is returned: "Bill with the specified number already exists".