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

Build purchase abstraction #23

Open
morremeyer opened this issue Dec 17, 2019 · 0 comments
Open

Build purchase abstraction #23

morremeyer opened this issue Dec 17, 2019 · 0 comments

Comments

@morremeyer
Copy link
Member

morremeyer commented Dec 17, 2019

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.

@morremeyer morremeyer changed the title ui Build purchase abstraction Dec 17, 2019
@morremeyer morremeyer assigned morremeyer and unassigned spahan Jan 13, 2020
@morremeyer morremeyer removed their assignment Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants