forked from admin/dyolink
improvement: Build and Push error fixed.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -142,6 +142,7 @@ export interface PastTreatment {
|
||||
treatmentAt: string;
|
||||
calculatedAmount?: string | null;
|
||||
billedAmount?: string | null;
|
||||
billedAmountManual?: boolean;
|
||||
patient?: {
|
||||
id: string;
|
||||
firstName: string;
|
||||
|
||||
Reference in New Issue
Block a user