Skip to content

Change Item.value to be an integer, in cents, make other values more explicit #973

@armahillo

Description

@armahillo

We use dollar values in a few places.

These need to be integers, in cents, so that we don't have floating point issues.

We should also rename existing value fields to have _cents in the name so it's explicit what kind of values we're expecting there

Criteria for Completion

  • Change Item.value to an integer
  • Change Item.value to Item.value_in_cents
  • Change Purchase.amount_spent to Purchase.amount_spent_in_cents

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions