- Vintage Modell hinzugefuegt - Equipment Multi-Select (Neue Buchung + Bearbeitung) - Kundenadresse in Formularen - Bearbeiten-Seite fuer Buchungen - Abbau-Zeiten in Formularen und Uebersicht - Vertrag PDF nur bei Privatkunden - LexOffice Kontakt-Erstellung Fix (BUSINESS) - Zurueck-Pfeil auf Touren-Seite
41 lines
886 B
TypeScript
41 lines
886 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
console.log('🧹 Entferne LexOffice-Artikel-IDs...');
|
|
|
|
const result = await prisma.priceConfig.updateMany({
|
|
data: {
|
|
lexofficeArticleId: null,
|
|
lexofficeArticleIdWithFlat: null,
|
|
lexofficeKmFlatArticleId: null,
|
|
lexofficeKmExtraArticleId: null,
|
|
},
|
|
});
|
|
|
|
console.log(`✅ ${result.count} PriceConfigs aktualisiert`);
|
|
|
|
const configs = await prisma.priceConfig.findMany({
|
|
select: {
|
|
id: true,
|
|
model: true,
|
|
basePrice: true,
|
|
lexofficeArticleId: true,
|
|
lexofficeArticleIdWithFlat: true,
|
|
},
|
|
});
|
|
|
|
console.log('\n📊 Aktuelle PriceConfigs:');
|
|
console.table(configs);
|
|
}
|
|
|
|
main()
|
|
.catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
})
|
|
.finally(async () => {
|
|
await prisma.$disconnect();
|
|
});
|