Fix: Kots had the wrong time.

This commit is contained in:
Amritanshu Agrawal 2021-04-02 18:30:42 +05:30
parent c3df28eb64
commit 4c867138e2

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.NEW_DAY_OFFSET_MINUTES)
date_ = voucher.date + timedelta(minutes=settings.TIMEZONE_OFFSET_MINUTES)
product_date = (
voucher.date + timedelta(minutes=settings.TIMEZONE_OFFSET_MINUTES - settings.NEW_DAY_OFFSET_MINUTES)
).date()