Skip to content

Getting price configuration right #878

Closed Answered by t-m-cor
jriisj asked this question in Q&A
Discussion options

You must be logged in to vote

I think I just had the same problem as you.

As far as I could test, it seems that price calculations are skipped if end date is befor start date (in a calender).

You have (as I did, lives en .dk), some prices that runs from 1. oct to 31. mar, and as far as I can see/test, these entrys gets skipped/ignored.

To solve it, I had to split it into: 1. oct to 31. dec, and another/new from 1. jan to 31. mar.

So there is some logic that fails (IMHO). The calculations need to do something like “if end-date<start-date then end-date += 1year”, before comparing to current date.

Greetings from DK.

P.S. my test for “correct” prices, was done by comparing with elspotpris.dk , works great for .dk

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@jriisj
Comment options

@ArnieO
Comment options

Comment options

You must be logged in to vote
1 reply
@jriisj
Comment options

Answer selected by jriisj
Comment options

You must be logged in to vote
1 reply
@ArnieO
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants