As I understand it from your earlier posts, the loyalty amount is set for each customer when they open an account. It is an attribute of the Customers entity type, so you just have to look it up from the Customers or similar table, in which the Barcode column will be a candidate key. The...