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:
parent
5ece52ad55
commit
c73b812911
|
@ -52,7 +52,7 @@ class Voucher(Base):
|
||||||
backref="voucher",
|
backref="voucher",
|
||||||
cascade="delete, delete-orphan",
|
cascade="delete, delete-orphan",
|
||||||
cascade_backrefs=False,
|
cascade_backrefs=False,
|
||||||
order_by=Kot.date,
|
order_by=Kot.code,
|
||||||
)
|
)
|
||||||
settlements = relationship(
|
settlements = relationship(
|
||||||
"Settlement",
|
"Settlement",
|
||||||
|
|
Loading…
Reference in New Issue