8.0 add account cash discount compute ape

cc/ @adrienpeiffer 

PR to support internal review. Do not merge.
And maybe split account_cash_discount_base in a module that adds the fields and the default calculation method (account_cash_discount_base), and then another one (account_cash_discount_payment) that depends on account_banking_payment_export and integrates with he payment order.