fix: preserve scoped V12 diagnostics pending interrupted QA proof
This commit is contained in:
@@ -82,7 +82,11 @@ export function IntegralFinancialPlan({
|
||||
em falta permanecem por determinar; indique zero apenas quando
|
||||
aplicável.
|
||||
</p>
|
||||
<StartupAssetRequirements plan={plan} onChange={onChange} />
|
||||
<StartupAssetRequirements
|
||||
plan={plan}
|
||||
onChange={onChange}
|
||||
showError={false}
|
||||
/>
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<label className="grid gap-1 text-sm">
|
||||
Ano inicial
|
||||
|
||||
@@ -26,7 +26,10 @@ import { FinancialRatiosPlan } from '@/components/financial-ratios-plan';
|
||||
import { PlanEconomicClassification } from '@/components/plan-economic-classification';
|
||||
import { FinancialPlanDetails } from '@/components/financial-plan-details';
|
||||
import { StartupAssetRequirements } from '@/components/startup-asset-requirements';
|
||||
import { forecastErrorShownInReport } from '@/lib/financial-issue-presentation';
|
||||
import {
|
||||
forecastErrorShownInReport,
|
||||
startupErrorMessage,
|
||||
} from '@/lib/financial-issue-presentation';
|
||||
|
||||
const emptyPlan: BusinessFinancialPlanInput = {
|
||||
currency: '',
|
||||
@@ -947,7 +950,13 @@ export function SimulationBusinessPlan({
|
||||
)}
|
||||
<PlanEconomicClassification plan={plan} onChange={savePlan} />
|
||||
<FinancialPlanDetails plan={plan} onChange={savePlan} />
|
||||
<StartupAssetRequirements plan={plan} onChange={savePlan} />
|
||||
<StartupAssetRequirements
|
||||
plan={plan}
|
||||
onChange={savePlan}
|
||||
showError={
|
||||
!forecastErrorShownInReport(plan, startupErrorMessage(plan))
|
||||
}
|
||||
/>
|
||||
<IntegralFinancialPlan plan={plan} onChange={savePlan} />
|
||||
<MarketAnalysisPlan plan={plan} onChange={savePlan} />
|
||||
<FinancialRatiosPlan plan={plan} onChange={savePlan} />
|
||||
@@ -2532,11 +2541,13 @@ export function SimulationBusinessPlan({
|
||||
)}
|
||||
</details>
|
||||
|
||||
{error && !forecastErrorShownInReport(plan, error) && (
|
||||
<p role="alert" className="my-3 text-sm text-red-800">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
{error &&
|
||||
error !== startupErrorMessage(plan) &&
|
||||
!forecastErrorShownInReport(plan, error) && (
|
||||
<p role="alert" className="my-3 text-sm text-red-800">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
{result && isSimulationCurrency(currency) && (
|
||||
<div className="mt-4 space-y-3">
|
||||
<h4 className="font-semibold">Resumo ({currency})</h4>
|
||||
|
||||
@@ -8,9 +8,11 @@ import { newReportAssumptions } from '@/lib/integral-financial-report';
|
||||
export function StartupAssetRequirements({
|
||||
plan,
|
||||
onChange,
|
||||
showError = true,
|
||||
}: {
|
||||
plan: BusinessFinancialPlanInput;
|
||||
onChange: (plan: BusinessFinancialPlanInput) => void;
|
||||
showError?: boolean;
|
||||
}) {
|
||||
const a =
|
||||
plan.reportAssumptions ?? newReportAssumptions(plan.periods ?? 12);
|
||||
@@ -166,7 +168,7 @@ export function StartupAssetRequirements({
|
||||
não se presumem vendas de activos excedentários. A
|
||||
depreciação mantém a base e a vida útil declaradas.
|
||||
</p>
|
||||
{error && <p role="alert">{error}</p>}
|
||||
{showError && error && <p role="alert">{error}</p>}
|
||||
{budget && (
|
||||
<>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user