Renders a batch of FullHouse product price stickers for a given store and template type, assembling pre-rendered PNG images into a paged HTML layout.
PriceSticker — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 is the store/price ticket GUID (first 10 characters used). Param2 is the template type: A4L, A5, A6, A7, CUSTOM, or WOBBLER. Param3 is the page offset, optionally suffixed with x<PageNo> to set the starting page number. Returns an HTML string of paged sticker images.
CheckList(Param1, Param2, Param3)Queries data_priceticket joined to trader.products to build the print list for the given store GUID and template type, applying pagination. Stores result in self.PrintList.
RenderAPage(Set, Shape)Renders a single page of stickers for the given set of product codes using the template stored in trader.meta_template. Substitutes $page1$–$page9$ placeholders with image tags sourced from https://core.fhgo.co.za/fullhouse_price_sticker/.
RenderA4Set(), RenderA5Set(), RenderA6Set(), RenderA7Set(), RenderACustomSet(), RenderAWobbleSet()Partition self.PrintList by template type and call RenderAPage with the appropriate shape and page size (2 per A4/A5/A6/WOBBLER page, 3 per A7/CUSTOM page).
BuildPage(Param1, Param2, Guid, PageNo)Pre-renders all sticker images for a store by invoking ObjTextReportpdfLocal.BuildPage for each product, then crops images using PIL according to cut coordinates from trader.meta_template. Updates a prestage_service record if a Guid is supplied.
Depends on ObjTextFHInstalment, ObjImage, ObjTextReportpdfLocal, ObjReportEmail, and PIL.Image. Store 300 uses UAT template versions; all other stores use LIVE. Wobbler stickers are filtered via the IsPromotion flag in data_priceticket, which is updated by a promotion header join before querying. Pre-rendered images are cached under local.documents/fullhouse_price_sticker/. Images older than 6 hours are eligible for regeneration. The WOBBLER branch in Render contains an unresolved call to xxx() which would raise a NameError at runtime.