Skip to content

'Blok' uitvoer 'datum_eind' incorrect, causing issues in smartpoints #9

@luttje

Description

@luttje

When this calculation fails:

$this->item->datum_eind = $start_schooljaar->addMonths($monthsToAdd)->addDays($daysToAdd-1);

Problems occur when the currentWeek is 0 (in 'bufferweek'). Smartpoints wont correctly calculate the achievable points, nor show which 'feedbackmomenten' should have been completed (they're all greyed out):

To work around this I added an edit function in 7f7db4c so we can manually adjust the datum_eind, but really we should find a proper way to fix this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions