Closed madsnedergaard closed 3 years ago
The purchase canModelRun() implementation is not checking for identifier and therefore calculations fail a lot of times were it shouldn't have been running.
purchase
canModelRun()
identifier
Steps to reproduce:
canModelRun should return false if a purchase activity any identifier is null.
canModelRun
false
Pseudo code fix:
lineItems.every(item => item.identifier !== null)
Anything that needs to be done here, except for merging? :)
CI is failing due to issue with dates in energinet test.. Will look into it now
Open until contrib is bumped!
Aaand done!
Description
The
purchase
canModelRun()
implementation is not checking foridentifier
and therefore calculations fail a lot of times were it shouldn't have been running.To reproduce
Steps to reproduce:
Expected behaviour
canModelRun
should returnfalse
if a purchase activity anyidentifier
is null.Pseudo code fix: