Fix: Importing was messed up

Fix: Cashier checkout kept changing the date
This commit is contained in:
Amritanshu
2019-08-20 14:42:43 +05:30
parent aa81743ce7
commit 63c7a541dc
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import uuid
from datetime import datetime, timedelta
from barker.models import Voucher, User, Settlement, VoucherType
from barker.models import Voucher, User, Settlement
from pyramid.view import view_config
from sqlalchemy.orm import joinedload
@ -105,8 +105,8 @@ def check_me_out(request):
)
amounts[so.settle_option.name] += so.amount
return {
"startDate": start_date.strftime("%d-%b-%Y"),
"finishDate": finish_date.strftime("%d-%b-%Y"),
"startDate": request.GET["s"],
"finishDate": request.GET["f"],
"user": {"id": id_},
"amounts": [{'name': key, 'amount': value} for key, value in amounts.items()], "info": info
}