Home โ€บ Modules โ€บ phyto_tc_cost_calculator

phyto_tc_cost_calculator

Back-office TC production cost calculator โ€” substrate, electricity, labour, contamination losses, overhead, margin โ€” outputs break-even and suggested retail price.

Operations & Compliance v1.0 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_tc_cost_calculator/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

A back-office calculator for working out the true cost of producing tissue-culture plants. Enter your input costs and desired margin โ€” the module calculates your break-even price and suggested retail price. Admin-only, never visible to customers.

Calculator Inputs

InputUnit
Substrate costโ‚น per litre
Electricity costโ‚น per kWh
Labour hours per batchHours
Labour rateโ‚น per hour
Contamination loss rate%
Overhead allocationโ‚น per batch
Units produced per batchCount
Target margin%

Outputs

  • Break-even price per unit (โ‚น)
  • Suggested retail price at target margin (โ‚น)
  • Cost breakdown chart โ€” pie chart of cost components

Features

  • Save named batch cost records for historical comparison
  • Link a cost record to a phyto_tc_batch_tracker batch entry
  • Export cost report as PDF

Source Layout

PathPurpose
phyto_tc_cost_calculator.phpModule entry + admin menu
classes/PhytoCostRecord.phpORM for saved cost records
controllers/admin/AdminPhytoTcCostController.phpCalculator + history
sql/install.sqlCreates cost records table
views/templates/admin/calculator.tplCalculator form and results
View Full Source โ†— โ† Back to All Modules