Commit graph

41 commits

Author SHA1 Message Date
b451a82c7b Reorganize the files,
I've split everything in different concepts (groups, login, products and delivery) so that it's easier to find what we're looking for (the __init__.py file was really too big).
2020-03-13 18:58:54 +01:00
f046ae6fb0 Remove paiement tracking 2020-03-13 18:58:48 +01:00
d54324c2c1 Merge branch 'master' into crac 2019-10-05 21:12:16 +02:00
1039198a6d Start fixing the tests. 2019-10-04 21:31:16 +02:00
f96ca0a192 Online edition + manage delivery + send emails. 2019-09-30 00:31:19 +02:00
cef7a200dc Add a concept of groups 2019-07-19 00:12:33 +02:00
Yohan Boniface
9afe04ccf5 Make sure we cannot set an ajustment below what user ordered 2019-05-25 19:25:53 +02:00
Yohan Boniface
b3062fd385 Allow to remove a product from a delivery with orders
Eg. when some products are missing from the real delivery while
being ordered.
2019-05-25 17:33:20 +02:00
Yohan Boniface
bd2fb3958e Allow to force ajustment on closed deliveries
This is useful for deliveries with missing products to adjust
totals before sending
2019-05-25 17:12:52 +02:00
Alexis Métaireau
ec291e4c85 Rename delivery.producer to delivery.name 2019-05-01 01:18:28 +02:00
Yohan Boniface
6db17fa56e Allow to archive deliveries
- Delivery.id is not persisted anymore: the file name and relaltive
  directory *is* the id, and we don't want to denormalize this info
- Delivery.load will filter out non fields keys from the storage: this
  allows more resilient upgrade of the data model, and is usefull when
  dealing with multiple branches with different data models
- Delivery.archive/unarchive will move the delivery storage from
  root to archive/
- Delivery.all now accepts "is_archived" to retrieve archived instead
  of active deliveries
- import products is now moved to a modal
- archived deliveries are now listed in a separate page
2019-04-24 17:51:56 +02:00
Yohan Boniface
437a3e0c36 Make sure not staff is set for tests 2019-04-22 23:13:41 +02:00
b3286e5d86 Merge branch 'delivery-contact' into 'master'
Add Delivery.contact

See merge request ybon/copanier!9
2019-04-21 13:02:34 +02:00
Yohan Boniface
34d6183ad4 Add delivery balance report 2019-04-19 16:48:11 +02:00
Yohan Boniface
b6ed2b412b Add Delivery.contact 2019-04-17 22:12:14 +02:00
Yohan Boniface
a6a504d0ca Skip products without orders in order form 2019-04-17 21:31:53 +02:00
Yohan Boniface
c020ec89fa Display adjustement col on closed delivery if order has adjustements 2019-04-16 23:14:55 +02:00
Yohan Boniface
815eb9543f Basic "manage delivery balance" page 2019-04-14 17:10:48 +02:00
Yohan Boniface
e9ec238754 Very basic "adjust product" page 2019-04-14 16:00:07 +02:00
Yohan Boniface
425222a0a2 Allow to define ProductOrder.ajustment when product needs adjustment 2019-04-14 09:41:55 +02:00
Yohan Boniface
165427bf8f WIP: deal with product packing 2019-04-14 09:41:55 +02:00
Yohan Boniface
d2cb557f8a Rename Product.weight to Product.unit 2019-04-13 11:15:26 +02:00
Yohan Boniface
8684e83880 Make everyone staff if not staff is on the config 2019-04-09 18:48:42 +02:00
Yohan Boniface
02ff34dff7 Do not send emails during unit tests… 2019-04-09 17:30:17 +02:00
Yohan Boniface
7ce15a79e9 Add xlsx import 2019-04-06 20:06:22 +02:00
Yohan Boniface
be5275053b Add products export endpoint 2019-04-06 18:28:12 +02:00
Yohan Boniface
db08ef7a68 Deal with empty quantities in place order
A user may add a value in place of the "0" and then delete it,
so it will send an empty string to the server.
2019-04-03 16:08:09 +02:00
Yohan Boniface
782c08d5ee For now, log all incoming POST
We want to be able to debug any issue during a command.
Hint: DO MORE TESTS!
2019-04-02 19:51:38 +02:00
Yohan Boniface
21578d0c81 Allow to mark orders as paid
And display in orange unpaid colmuns
2019-03-31 19:46:18 +02:00
Yohan Boniface
890523e5a3 Deal with empty orders 2019-03-24 19:04:47 +01:00
Yohan Boniface
59783879b6 Place order: use session email if not email is provided 2019-03-24 16:55:49 +01:00
Yohan Boniface
3216aeac11 Renamed + remote 2019-03-24 15:45:58 +01:00
Yohan Boniface
a009948e08 Do not take order_before hours into account 2019-03-24 11:09:14 +01:00
Yohan Boniface
4c34c2bacd Deal with from/to time 2019-03-23 23:22:45 +01:00
Yohan Boniface
ab1710d1e4 Basic auth management 2019-03-23 21:53:33 +01:00
Yohan Boniface
e7e82f2c99 More CSS all around 2019-03-23 12:01:18 +01:00
Yohan Boniface
edd17e6630 iwyu 2019-03-22 19:35:32 +01:00
Yohan Boniface
cd12223d6d Basic messages, config and XLSX export 2019-03-19 23:18:01 +01:00
Yohan Boniface
8b31985c5c POC with dataclasses 2019-03-18 22:02:04 +01:00
Yohan Boniface
b3adffb8f7 Minimal POC 2019-03-18 00:11:27 +01:00
Yohan Boniface
b25d8a28c8 non working MongoDB custom ODM 2019-03-17 19:30:10 +01:00