pub struct SamplingPlan {Show 14 fields
pub id: String,
pub entity_code: String,
pub account_area: String,
pub assertion: String,
pub methodology: SamplingMethodology,
pub population_size: usize,
pub population_value: Decimal,
pub key_items: Vec<KeyItem>,
pub key_items_value: Decimal,
pub remaining_population_value: Decimal,
pub sample_size: usize,
pub sampling_interval: Decimal,
pub cra_level: String,
pub tolerable_error: Decimal,
}Expand description
Audit sampling plan for a single account area / assertion combination.
One plan is generated for each CRA at Moderate or High level, documenting the full ISA 530-compliant sampling design and execution.
Fields§
§id: StringUnique identifier for this sampling plan (deterministic slug).
entity_code: StringEntity / company code.
account_area: StringAccount area being tested (e.g. “Trade Receivables”, “Revenue”).
assertion: StringFinancial statement assertion being tested (e.g. “Existence”).
methodology: SamplingMethodologySampling methodology chosen for this plan.
population_size: usizeTotal number of items in the population before key item extraction.
population_value: DecimalTotal monetary value of the population.
key_items: Vec<KeyItem>Key items identified and extracted for 100% testing.
key_items_value: DecimalTotal monetary value of all key items.
remaining_population_value: DecimalMonetary value of the residual population (population_value − key_items_value).
sample_size: usizeNumber of representative sample items drawn from the residual population.
sampling_interval: DecimalSampling interval = remaining_population_value / sample_size (for MUS / systematic).
cra_level: StringCRA level that drove this plan (links to CombinedRiskAssessment.combined_risk).
tolerable_error: DecimalTolerable error for this population (equals performance materiality from ISA 320).
Trait Implementations§
Source§impl Clone for SamplingPlan
impl Clone for SamplingPlan
Source§fn clone(&self) -> SamplingPlan
fn clone(&self) -> SamplingPlan
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more