Credit calculation issue

Hi,

I’m using Tariff feed from v11 and everything is fine when the v11 is positive but if value is negative (from our energy exchange) the daily credit does not go down.

I think the calculation with negative values is not working well.

Please check,

BR,

Angel

A negative credit value would add to the debit rather than reduce the credit.

The debit prices are constant for peak and off-peak and I set them in Debit Rates. But for Credit I’m uploading the rate for every hour based on Day Ahead Prices from Bulgarian exchange. And there are negative prices from time to time and the credit have to goes down, but now only positive values make sense.
How can I setup tariff plans in this situation?

It would need to be an enhancement to have an option to reduce the credit amount instead of increasing the debit amount.

However the issue is when the credit is currently 0, and this cannot be negative. Which is why is it better to increase the debit. The net amount at the end of the day is the same (credit - debit).

Changed topic to an ‘Idea’.

Yes, this option will be nice, because I have two operators, I pay the first one for import at static positive price and the second pay me for export, but when the price is negative, credit amount should decrease and can be zero or negative, regardless of debit. I cannot mix the credit and debit amounts in this situation.
I saw in the documentation, yes this is no problem, but an idea for enhancement.