Fix: KOT Printing time was wrong. It showed the voucher time instead of kot time.

This commit is contained in:
Amritanshu Agrawal 2021-06-21 12:04:02 +05:30
parent 7795f5ebef
commit 4530a183c9

View File

@ -19,7 +19,7 @@ from ..models.voucher import Voucher
def design_kot(voucher: Voucher, kot: Kot, items: List[Inventory], copy_number: int, db: Session) -> str:
date_ = voucher.date + timedelta(minutes=settings.TIMEZONE_OFFSET_MINUTES)
date_ = kot.date + timedelta(minutes=settings.TIMEZONE_OFFSET_MINUTES)
product_date = (
voucher.date + timedelta(minutes=settings.TIMEZONE_OFFSET_MINUTES - settings.NEW_DAY_OFFSET_MINUTES)
).date()