Cacao samples arrive at the lab in the form of raw beans and undergo various processing stages — such as roasting, grinding into cacao mass, and chocolate production. Each stage involves capturing important measurements and metadata (e.g., weights, dates, test results). A single sample can simultaneously exist in multiple product forms (e.g., 1 kg as beans, 1 kg as cacao mass, 1.5 kg as chocolate), requiring sophisticated tracking logic.