Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Build purchase abstraction #23

@morremeyer

Description

@morremeyer

A purchase is an abstraction over multiple goods

The following shall be built:

  • A purchase model with the following fields:

    • OneToMany goods
    • boolean flag is_netto (default: True)
    • status of payment
    • method of payment
    • person who payed
  • A good model with the following fields:

    • name (required)
    • price in 100th cent (default: None)
    • tax rate in percent (integer, default 19)
    • OneToMany orders

The save method of a purchase shall have an optional attribute state that updates the state of all orders related to the purchase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions