Renders a FullHouse settlement letter as a branded HTML document, listing all contract balances and their live settlement values with banking details and a validity date.
PaymentReport — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 is the account number (first 10 characters used as the lookup key). Returns an HTML string. The settlement letter template is loaded from trader.meta_template (templatetype=SETTLEMENT). Data is sourced from trader.meta_statement_rolling. Adjusts table border styles when self.Param9 == "pdf".
ComputeSettle(Contract)Invokes {fhsettlement:Contract} to compute the live settlement amount for a contract. Returns it as a float.
Inherits from ObjReportEmail. Depends on ObjBarcode for Code 128 barcode generation. The validity date is dynamically calculated: if the current day is after the 7th of the month, it is set to end-of-month; otherwise to the 7th. Total settlement across all contracts is displayed at the bottom. The footer contains Standard Bank and ABSA banking details. Uses the AvenirLT font loaded via @font-face from $hosturl$/fonts/AvenirLTStd-Roman.otf. Note: an SQL typo (meta_tractions_rolling) exists in the last-payment lookup query.