Home โ€บ Modules โ€บ phyto_tc_batch_tracker

phyto_tc_batch_tracker

Links tissue-culture products to propagation batch records โ€” full provenance (batch code, generation, protocol, deflask/cert dates) on the product page.

Plant Science v1.1 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_tc_batch_tracker/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Tracks batches of tissue-culture plants from flask to sale. Each batch gets an auto-generated code, generation label (G0, G1, G2โ€ฆ), and dates for initiation, deflasking, and certification. A provenance card shows on the product page so buyers see the batch’s full history.

Version History

v1.0 โ€” First Build

Batch codes, generation labels, initiation/deflask/cert dates. Provenance card on product page. Admin batch list.

v1.1 โ€” Five Robustness Features (current)

  1. Inventory auto-decrement โ€” when an order ships, the batch’s unit count drops automatically; transitions to “Depleted” at zero.
  2. Contamination incident log โ€” tracks contamination events by type (bacterial, fungal, viral, pest) with severity and “Mark Resolved”.
  3. Mother batch lineage โ€” each batch can point to a parent; product page shows the full ancestral chain from original mother stock.
  4. Printable QR label โ€” 88 mm label with batch code, generation, dates, and lineage breadcrumb for tube stickers.
  5. Low-stock alert email โ€” configurable threshold triggers a single warning email per batch when units are running low.

Source Layout

PathPurpose
phyto_tc_batch_tracker.phpModule entry + hooks
classes/PhytoTcBatch.phpORM model for batch records
classes/PhytoContaminationLog.phpContamination incident model
controllers/admin/AdminPhytoTcBatchController.phpBatch management dashboard
sql/install.sqlCreates batch + contamination tables
views/templates/hook/product_tab.tplFront-end provenance card
views/templates/admin/qr_label.tplPrintable QR label layout
View Full Source โ†— โ† Back to All Modules