- Updated form template to prefill currency input with default value and added help text for clarity. - Modified integration tests to assert more descriptive error messages for invalid currency codes. - Introduced new tests for currency normalization and validation in various scenarios, including imports and exports. - Added comprehensive tests for pricing calculations, ensuring defaults are respected and overrides function correctly. - Implemented unit tests for pricing settings repository, ensuring CRUD operations and default settings are handled properly. - Enhanced scenario pricing evaluation tests to validate currency handling and metadata defaults. - Added simulation tests to ensure Monte Carlo runs are accurate and handle various distribution scenarios.
57 lines
1.4 KiB
HTML
57 lines
1.4 KiB
HTML
{% if options %}
|
|
{% set distribution_enabled = options.distribution %}
|
|
{% set samples_enabled = options.samples and options.distribution %}
|
|
{% endif %}
|
|
|
|
<section class="report-options">
|
|
<div class="report-card">
|
|
<h2>Data Options</h2>
|
|
<ul class="metric-list compact">
|
|
<li>
|
|
<span>Monte Carlo Distribution</span>
|
|
<strong>
|
|
{% if options %}
|
|
{{ distribution_enabled and "Enabled" or "Disabled" }}
|
|
{% else %}
|
|
Not requested
|
|
{% endif %}
|
|
</strong>
|
|
</li>
|
|
<li>
|
|
<span>Sample Storage</span>
|
|
<strong>
|
|
{% if options %}
|
|
{% if options.samples %}
|
|
{% if samples_enabled %}
|
|
Enabled
|
|
{% else %}
|
|
Requires distribution
|
|
{% endif %}
|
|
{% else %}
|
|
Disabled
|
|
{% endif %}
|
|
{% else %}
|
|
Not requested
|
|
{% endif %}
|
|
</strong>
|
|
</li>
|
|
<li>
|
|
<span>Iterations</span>
|
|
<strong>{{ iterations }}</strong>
|
|
</li>
|
|
<li>
|
|
<span>Percentiles</span>
|
|
<strong>
|
|
{% if percentiles %}
|
|
{% for percentile in percentiles %}
|
|
{{ '%g' % percentile }}{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
Defaults
|
|
{% endif %}
|
|
</strong>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</section>
|