Personal advice, in the external accounts, this discount can be simplified to deal with, directly after the discount amount to the "main business income".
Borrow: cash 450
Loan: main business income 450
If you have internal cost accounting, you need to take the discount factor into account.