Replace BPS Excel stub with multi-client calendar template.

Official download now generates a blank workbook with catalog autofill, notas_internas ignored on import, and the same template for every tenant.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-10-08 17:38:38 +02:00
parent 025fc85175
commit 501f8203e8
8 changed files with 2999 additions and 34 deletions

View File

@@ -0,0 +1,22 @@
/**
* Regenerate public/plantillas/calendario-rrss-oficial.xlsx
* npx tsx scripts/generate_calendar_template.ts
*/
import { writeFileSync } from 'fs';
import { resolve } from 'path';
import { buildOfficialXlsx } from '../src/lib/calendar-template';
async function main() {
const { buffer, filename } = await buildOfficialXlsx('CLIENTE');
const out = resolve(
process.cwd(),
'public/plantillas/calendario-rrss-oficial.xlsx'
);
writeFileSync(out, buffer);
console.log('Wrote', out, `(${buffer.length} bytes) · ${filename}`);
}
main().catch((e) => {
console.error(e);
process.exit(1);
});