P05-02: 全費目と資金区分:表金・裏金、維持費未払い、仕入れ、人件費、元本、利息、税の帳簿への接続(原 P05-02 の完了の条件)

This commit is contained in:
Agent Control Runner
2026-10-23 21:14:42 +09:00
parent d65e3da9f3
commit 8954914564
6 changed files with 115 additions and 14 deletions
+4 -1
View File
@@ -3677,7 +3677,10 @@ func get_loan_principal_report() -> Dictionary:
loans.sort_custom(func(left: Dictionary, right: Dictionary) -> bool: return String(left[&"loan_id"]) < String(right[&"loan_id"]))
var valid: bool = _state.get_resource(&"gold") == cash and (loans.is_empty() or _loan_principal_ledger_is_valid(economy_service))
var ended: bool = _operations_enabled and operations_coordinator != null and operations_coordinator.is_terminal()
return {&"available": true, &"ledger_valid": valid, &"terminal": ended, &"cash": cash, &"next_command_id": _next_command_id, &"loans": loans}
# A09: a repayment may use the hidden fund for what the front fund (cash) cannot pay.
return {&"available": true, &"ledger_valid": valid, &"terminal": ended, &"cash": cash,
&"back_cash": economy_service.get_balance(FinancePolicy.BACK_CASH), &"available_funds": FinancePolicy.available_funds(economy_service),
&"next_command_id": _next_command_id, &"loans": loans}
## Atomic principal payment against an already attested loan liability.