Change to receipt_reimbursement.

This commit is contained in:
Dominik Pantůček 2025-07-17 16:47:23 +02:00
parent 5d658a7406
commit e31165d668

View file

@ -146,7 +146,7 @@ class Shop:
#self.profits.credit(transaction, credit, user.name)
#user.credit(transaction, credit, "Credit from receipt: " + description)
self.db.execute_and_fetch(
"SELECT public.buy_for_cash(%s, %s, %s, %s, %s)",
"SELECT public.receipt_reimbursement(%s, %s, %s, %s, %s)",
[self.profits.id, user.id, user.name, credit, description]
)[0]
self.db.commit()