improvement: Build and Push error fixed.

This commit is contained in:
2026-09-19 06:19:42 +03:30
parent bb04090bc6
commit f6867467f7
4 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import type { ProsthesisCatalogEntry } from '@/types/treatment-catalog';
import type { LabCaseDraft, TreatmentDetailDraft } from '@/types/treatment';
import type { FdiToothId, LabCaseDraft, TreatmentDetailDraft } from '@/types/treatment';
import type { VoiceApplySelection, VoiceExtractionResult } from '@/types/voice';
import { newDetail, newLabCaseDraft } from './treatmentDetailRules';
import { landVoiceProsthesisJobs, prosthesisTargetLines } from './voiceReviewRows';
@@ -77,7 +77,7 @@ export function buildVoiceApplyPlan(
);
detail.teeth = lines
.filter((line) => !line.isJaw && line.applied.length > 0)
.map((line) => line.target);
.map((line) => line.target as FdiToothId);
detail.toothSelectionGroups = landed.groups;
}

View File

@@ -265,7 +265,7 @@ export function landVoiceProsthesisJobs(
.map((line) => line.target as FdiToothId);
const byCode = catalogByCode(catalog);
const jobsByTooth = new Map(applied.map((line) => [line.target, line.applied]));
let groups = groupsFromFlatTeeth(fdiTeeth, existingGroups ?? []);
let groups = groupsFromFlatTeeth(fdiTeeth, [...(existingGroups ?? [])]);
for (const line of applied) {
if (line.isJaw || !line.applied.includes(PONTIC_CODE)) continue;
groups = connectPonticTooth(groups, line.target as FdiToothId, jobsByTooth, byCode);

View File

@@ -193,7 +193,7 @@ export function BillingSheetsPanel({
{editorSheet !== undefined ? (
<BillingSheetEditor
kind={kind}
sheet={editorSheet.id ? editorSheet : null}
sheet={editorSheet?.id ? editorSheet : null}
catalog={catalog}
targets={targets}
canEdit={canEdit}

View File

@@ -142,6 +142,7 @@ export interface PastTreatment {
treatmentAt: string;
calculatedAmount?: string | null;
billedAmount?: string | null;
billedAmountManual?: boolean;
patient?: {
id: string;
firstName: string;