Some doc stuff

This commit is contained in:
Paul Brinkmeier 2023-08-22 02:03:33 +02:00
parent 2a51eec1c8
commit 694507f7c1
2 changed files with 5 additions and 4 deletions

View File

@ -40,8 +40,6 @@ ssh -nNTvL 5432:fsmi-db.fsmi.org:5432 fsmi-login.fsmi.uni-karlsruhe.de
## TODO ## TODO
- [ ] Implement item and snack entry as Elm application
- [ ] Needs good documentation for maintainability
- [ ] Implement and document report generation - [ ] Implement and document report generation
- [ ] How many days will the item last? - [ ] How many days will the item last?
- [ ] How many do we need to last X months? - [ ] How many do we need to last X months?
@ -49,5 +47,8 @@ ssh -nNTvL 5432:fsmi-db.fsmi.org:5432 fsmi-login.fsmi.uni-karlsruhe.de
- [ ] Make it print nicely - [ ] Make it print nicely
- [ ] Make it possible to edit entries - [ ] Make it possible to edit entries
- [ ] Improve project structure - [ ] Improve project structure
- [ ] Figure out/Add documentation about building `entry.js`
- [ ] Use `flask.flash` for error messages - [ ] Use `flask.flash` for error messages
- [x] Implement item and snack entry as Elm application
- [x] Figure out/Add documentation about building `entry.js`
- [ ] Clean up the code a little and add some comments
- [ ] Needs good documentation for maintainability

View File

@ -10,7 +10,7 @@ VALUES
(%(barcode)s, %(name)s, %(group_id)s, %(location_id)s, %(tax_group_id)s, %(sales_units)s, %(net_unit_price)s) (%(barcode)s, %(name)s, %(group_id)s, %(location_id)s, %(tax_group_id)s, %(sales_units)s, %(net_unit_price)s)
RETURNING item_id INTO new_item_id; RETURNING item_id INTO new_item_id;
-- Delete any old snacks with the same barcode in the given location -- Delete (i.e. mark as inactive) any old snacks with the same barcode in the given location
PERFORM garfield.snack_delete(snack_id) PERFORM garfield.snack_delete(snack_id)
FROM garfield.snacks FROM garfield.snacks
WHERE snack_barcode = %(barcode)s WHERE snack_barcode = %(barcode)s