Fix sundry creditors opening first FIFO runtime error

This commit is contained in:
A R R R Associates
2026-09-10 16:49:44 +05:30
parent d82cea2791
commit faed89b655
@@ -596,7 +596,7 @@ def sundry_creditors_aging(
# Non-purchase credits remain visibly distinguished in the drill-down;
# they are not represented as purchase bills.
closing_lots = sorted(
closing_lots + non_purchase_credit_lots,
closing_lots,
key=lambda lot: (
_parse_date(lot.get("voucher_date")) or opening_fallback_date,
str(lot.get("voucher_number") or ""),