Renders a FullHouse product web-sales price ticket by populating the WEBSALES template from trader.meta_template with product details, instalment calculation, barcode, and QR code.
PriceSticker — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 is the product code (first 10 characters used). Returns an HTML string produced from the WEBSALES template stored in trader.meta_template. Template tokens are substituted with product title, code, brand, price, deposit, instalment, total payable, interest, category, barcode, stock level, and QR code.
ComputeInstalment(Contract)Invokes ObjTextFHInstalment to compute monthly payment, total payment, interest rate, and terms.
Inherits from ObjReportEmail. Data is sourced from trader.products, trader.meta_product (features), trader.product_brands, trader.meta_categorymap, data_documentmeta_pims (image count), and trader.product_ledger (stock level at location 1). The WEBSALES template version is selected based on term count (appends Z suffix for 0 or 1 terms). The PIMS icon image is sourced from fhgo.co.za. Stock level is read from location 1 of trader.product_ledger. Depends on ObjGo for QR code generation.