finance.credit-note.calculate
Credit note against an original invoice, by units or by amount, with VAT at the original tax point's rates.
calculate_credit_note in Python2 capabilities
calculate_credit_note in Pythoncalculate_refund in Python