We are running e-shop basically for registered users which belong to different organizations (each customer may be in several of them). When user is logged in, he gets a discount based on catalog price rules. We need to calculate and display (in a configurable period - from-to) how much did the organization saved by shopping and getting discounts for ALL it's users=customers and total amount spent per organization. Customers could have newly added attribute to their billing addresses which is distinct for every organization (eg. VAT number or guid). The cumulative organization saving should be displayed at e-shop fronted (eg. user profile) and a remote server (by API?). Displaying in backend would be appreciated.
P.S. organizations pay yearly member fee and get discount in e-shop. The main purpose is to show the difference (net savings) between the fee and all discount amount.