Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Late fee calculation should be a model method #1162

Closed
@orenyk

Description

@orenyk

Currently, we calculate the late fee for a given reservation in the relevant view (/reservations/:id) and in the relevant e-mail body; this logic should be in the model method and it should be dependent on whether or not the reservation is checked-in (e.g. either calculate estimate based on today's date if not checked in or calculate final fee).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions