Fix: Rare case where after bill is printed and nother kot added, the void bill kots have same time and a wrong kot can be printed.

This orders the kots by code, not time and so should take care of the issue
This commit is contained in:
Amritanshu Agrawal 2021-07-02 09:28:12 +05:30
parent 5ece52ad55
commit c73b812911

View File

@ -52,7 +52,7 @@ class Voucher(Base):
backref="voucher",
cascade="delete, delete-orphan",
cascade_backrefs=False,
order_by=Kot.date,
order_by=Kot.code,
)
settlements = relationship(
"Settlement",