accrual: More robust payment-to fallback in outgoing report.

This commit is contained in:
Brett Smith 2020-05-17 16:39:22 -04:00
parent 18800b249d
commit def05b8007

View file

@ -238,7 +238,7 @@ def outgoing_report(groups: PostGroups,
f"REQUESTOR: {requestor}", f"REQUESTOR: {requestor}",
f"TOTAL TO PAY: {-related.balance()}", f"TOTAL TO PAY: {-related.balance()}",
f"AGREEMENT: {contract_s}", f"AGREEMENT: {contract_s}",
f"PAYMENT TO: {ticket.get('CF.{payment-to}', requestor_name)}", f"PAYMENT TO: {ticket.get('CF.{payment-to}') or requestor_name}",
f"PAYMENT METHOD: {ticket.get('CF.{payment-method}', '')}", f"PAYMENT METHOD: {ticket.get('CF.{payment-method}', '')}",
f"PROJECT: {', '.join(projects)}", f"PROJECT: {', '.join(projects)}",
"\nBEANCOUNT ENTRIES:", "\nBEANCOUNT ENTRIES:",