Track payment method and generate sales history reports as PDF

Adds payment method tracking to sales and exports sales data to PDF using jsPDF and jspdf-autotable.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/bd1b8419-ee4f-46fd-822d-f546a9643613.jpg
This commit is contained in:
michaelschal committed 2025-07-09 21:25:17 +00:00
1 parent 6f065a4903
commit 0a84dec87a
8 files changed
+394 -8

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ export const sales = pgTable("sales", {
prenom: varchar("prenom", { length: 255 }).notNull(),
dateNaissance: varchar("date_naissance", { length: 10 }).notNull(),
lieuNaissance: varchar("lieu_naissance", { length: 255 }),
modePaiement: varchar("mode_paiement", { length: 50 }).notNull().default("Espèce"),
// Identité
typeIdentite: varchar("type_identite", { length: 50 }).notNull(),