meskio (443e378b) at 06 Jun 17:36
Don't omit order purchase on the transaction
meskio (d336dbf3) at 20 Dec 17:07
Be able to update orders up to 10 days after the deadline
meskio (d76b032c) at 26 Sep 16:37
Don't crash if the member doesn't exist
Let's keep the history of the user balance on each transaction so we can audit the situation.
meskio (b19e9846) at 08 Nov 18:55
Improve the UX
meskio (53631107) at 05 Oct 15:35
Don't fail to display closed orders if I didn't buy on it
... and 1 more commit
Create a list of all the products purchased per month and the amount that has being purchased of each product. This should be a new page available to every member in the Almacen menu.
We can use /api/transaction?type=purchase
and aggregate them in the javascript side, this call returns a json list like:
[
{
"ID": 42,
"member": {
"num": 900,
"login": "admin",
"name": "Administradora"
},
"date": "2021-03-22T12:55:35.753991252+01:00",
"total": -1129,
"type": "purchase",
"purchase": [
{
"code": 135,
"product": {
"code": 135,
"name": "tomates",
"price": 1129,
"stock": 20
},
"price": 1129,
"amount": 1
}
]
},
{
"ID": 39,
"member": {
"num": 900,
"login": "admin",
"name": "Administradora"
},
"date": "2021-03-16T22:14:10.210364833+01:00",
"total": -1243,
"type": "purchase",
"purchase": [
{
"code": 135,
"product": {
"code": 135,
"name": "tomates"
},
"price": 1129,
"amount": 1
},
{
"code": 112,
"product": {
"code": 112,
"name": "arroz"
},
"price": 114,
"amount": 1
}
]
}
]
Prices are in cents, so 114 means 1.14 euros. See that there is a conversion function in src/util.js.
Implemented by: ee516091
meskio (ee516091) at 11 Jul 16:28
Annual report
Create a list of all the products purchased per month and the amount that has being purchased of each product. This should be a new page available to every member in the Almacen menu.
We can use /api/transaction?type=purchase
and aggregate them in the javascript side, this call returns a json list like:
[
{
"ID": 42,
"member": {
"num": 900,
"login": "admin",
"name": "Administradora"
},
"date": "2021-03-22T12:55:35.753991252+01:00",
"total": -1129,
"type": "purchase",
"purchase": [
{
"code": 135,
"product": {
"code": 135,
"name": "tomates",
"price": 1129,
"stock": 20
},
"price": 1129,
"amount": 1
}
]
},
{
"ID": 39,
"member": {
"num": 900,
"login": "admin",
"name": "Administradora"
},
"date": "2021-03-16T22:14:10.210364833+01:00",
"total": -1243,
"type": "purchase",
"purchase": [
{
"code": 135,
"product": {
"code": 135,
"name": "tomates"
},
"price": 1129,
"amount": 1
},
{
"code": 112,
"product": {
"code": 112,
"name": "arroz"
},
"price": 114,
"amount": 1
}
]
}
]
Prices are in cents, so 114 means 1.14 euros. See that there is a conversion function in src/util.js.
It looks like orders are being closed two hours before expected. It looks like there is a missmach between UTC and CEST.
meskio (8dece1dc) at 12 Jun 09:00
Use UTC timezone to refund orders
3 kind of lists:
meskio (c9ec6c9f) at 10 Apr 15:24
Implement notifications email/desktop