-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.example.js
More file actions
41 lines (37 loc) · 1.17 KB
/
Copy pathdata.example.js
File metadata and controls
41 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'use strict';
// Fichier modèle — remplace data.js avec vos propres données.
// data.js est exclu du dépôt (CNIL — données personnelles).
//
// Structure d'une transaction :
// {
// id : string — identifiant unique (ex. "hist0001")
// type : "recette" | "dépense"
// date_paiement : "YYYY-MM-DD" | null
// date_prestation: "YYYY-MM-DD" | null
// client : string
// categorie : "Chant" | "Yoga" | "Livres" | "Autres"
// montant : number — en euros
// mode : "Virement" | "Chèque" | "Espèces" | "Autre"
// reference : string — numéro de facture (optionnel)
// remarques : string — notes libres (optionnel)
// }
const HISTORICAL_DATA = [
{
"id": "hist0000",
"type": "recette",
"date_paiement": "2026-01-12",
"date_prestation": "2026-01-09",
"client": "Exemple Client",
"categorie": "Chant",
"montant": 65.0,
"mode": "Virement",
"reference": "",
"remarques": "Cours 1"
}
];
// Table de correspondance pour normaliser les noms de clients
// (variante → forme canonique)
const CANONICAL_MAP = {};
const HISTORICAL_CLIENTS = [
"Exemple Client"
];