Verbessert Store

Store orders paid by invoice show the invoice's refunds

A Store order paid by invoice now follows the refunds recorded on its invoice in Invoicing: its payment shows as partly refunded or refunded, and its history, the customer's total and Store's reports count them.

A refund recorded on the invoice of a Store order paid by invoice is shown on the order: its payment becomes partly refunded or refunded, the order's history lists the refund, the customer's total spent goes down, Store's reports and webhooks count it, and a refund removed in Invoicing is taken off again. A refund does not put items back in stock; record a return for that. Accounting still posts the refund once, with the invoice.