Billing was built to count one way
Export, net metering and time-of-use tariffs are handled as adjustments rather than as first-class events. Someone in revenue reconciles the difference, and the customer receives a bill they have to be talked through.
We carry import and export as separate measured quantities on the same meter point, priced by the tariff that applied at the time.
