Fix: KOT Printing time was wrong. It showed the voucher time instead of kot time.
This commit is contained in:
parent
7795f5ebef
commit
4530a183c9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user