yumoqing 5fa058add9 fix: correct indentation in leg_accounting credit limit block
Two bugs fixed:
1. FATAL: lines 213-278 were indented inside the 'if new_balance < 0' block,
   causing all normal (positive balance) accounting operations to be skipped.
   All post-credit-check code now correctly at method body level (2 tabs).

2. LOGIC: added else clause to reset used_credit to 0 when balance returns
   to non-negative (e.g. after recharge). Previously used_credit stayed
   stale after account recovered from overdraft.
2026-05-28 23:05:23 +08:00
2025-07-16 14:32:14 +08:00
2025-07-16 14:32:14 +08:00
2026-05-28 19:09:04 +08:00
2026-05-28 19:09:04 +08:00
2025-07-16 14:32:14 +08:00
2026-05-28 19:09:04 +08:00
2025-07-16 14:32:14 +08:00
2026-05-28 19:09:04 +08:00
2025-07-16 14:32:14 +08:00
2025-07-16 14:32:14 +08:00
2025-07-16 14:32:14 +08:00

accounting

Description
No description provided
Readme 771 KiB
Languages
Python 98.9%
Shell 1.1%