feat: Equipment-System, Buchungsbearbeitung, Kundenadresse, LexOffice-Fix
- 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
This commit is contained in:
40
scripts/clear-lexoffice-article-ids.ts
Normal file
40
scripts/clear-lexoffice-article-ids.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user