Files
vexplor_dev/frontend/update_templates.js
2026-03-12 18:47:42 +09:00

18 lines
715 B
JavaScript

const { Pool } = require('pg');
require('dotenv').config({ path: '.env' });
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
const templates = [
{ id: 'TPL_be9043886be64a92a3d1', name: 'DeliveryNote' },
{ id: 'TPL_98c6b053b83a47c7adac', name: 'InspectionReport' },
{ id: 'TPL_49b7800d528444849853', name: 'ProductionPlanStatus' },
{ id: 'TPL_58c1c4e118894bb48356', name: 'PurchaseOrder' },
{ id: 'TPL_b593db0cb77e43398153', name: 'Quotation' },
{ id: 'TPL_ee73800d571749f5876e', name: 'SalesOrderConfirmation' },
{ id: 'TPL_2b75a45deabc4a179666', name: 'WorkOrder' },
{ id: 'TPL_8328c82088e8432ab9d4', name: 'TaxInvoice' }
];
// We will implement the generation logic here.