Overview
Comment: | Renommer journal en mouvements |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
35af07a5029b4e40730722db55d5f82f |
User & Date: | bohwaz on 2019-02-15 16:32:20 |
Other Links: | branch diff | manifest | tags |
Context
2019-02-15
| ||
16:32 | Débuts classe de gestion des mouvements check-in: dd86c3907f user: bohwaz tags: dev | |
16:32 | Renommer journal en mouvements check-in: 35af07a502 user: bohwaz tags: dev | |
15:14 | Ces fonctions ne sont pas utilisées check-in: 9d82c5edcb user: bohwaz tags: dev | |
Changes
Modified src/include/data/schema.sql from [75bcb1da76] to [ae9748129e].
︙ | ︙ | |||
238 239 240 241 242 243 244 | -- Projets (compta analytique) ( id INTEGER PRIMARY KEY NOT NULL, libelle TEXT NOT NULL ); | | | | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | -- Projets (compta analytique) ( id INTEGER PRIMARY KEY NOT NULL, libelle TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS compta_mouvements -- Opérations comptables ( id INTEGER PRIMARY KEY NOT NULL, libelle TEXT NOT NULL, remarques TEXT NULL, numero_piece TEXT NULL, -- N° de pièce comptable |
︙ | ︙ | |||
268 269 270 271 272 273 274 | FOREIGN KEY(moyen_paiement) REFERENCES compta_moyens_paiement(code), FOREIGN KEY(id_exercice) REFERENCES compta_exercices(id), FOREIGN KEY(id_auteur) REFERENCES membres(id) ON DELETE SET NULL, FOREIGN KEY(id_categorie) REFERENCES compta_categories(id) ON DELETE SET NULL, FOREIGN KEY(id_projet) REFERENCES compta_projets(id) ON DELETE SET NULL ); | | | | | | | | 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | FOREIGN KEY(moyen_paiement) REFERENCES compta_moyens_paiement(code), FOREIGN KEY(id_exercice) REFERENCES compta_exercices(id), FOREIGN KEY(id_auteur) REFERENCES membres(id) ON DELETE SET NULL, FOREIGN KEY(id_categorie) REFERENCES compta_categories(id) ON DELETE SET NULL, FOREIGN KEY(id_projet) REFERENCES compta_projets(id) ON DELETE SET NULL ); CREATE INDEX IF NOT EXISTS compta_operations_exercice ON compta_mouvements (id_exercice); CREATE INDEX IF NOT EXISTS compta_operations_date ON compta_mouvements (date); CREATE INDEX IF NOT EXISTS compta_operations_auteur ON compta_mouvements (id_auteur); CREATE TABLE IF NOT EXISTS compta_mouvements_lignes -- Ecritures ( id INTEGER PRIMARY KEY NOT NULL, id_mouvement INTEGER NOT NULL REFERENCES compta_mouvements (id) ON DELETE CASCADE, compte TEXT NOT NULL REFERENCES compta_comptes(id), -- N° du compte dans le plan comptable credit INTEGER NOT NULL, debit INTEGER NOT NULL, rapprochement INTEGER NOT NULL DEFAULT 0, CONSTRAINT ligne_check1 CHECK ((credit * debit) = 0), CONSTRAINT ligne_check2 CHECK ((credit + debit) > 0) ); CREATE INDEX IF NOT EXISTS compta_operations_comptes ON compta_mouvements_lignes (compte); CREATE TABLE IF NOT EXISTS compta_moyens_paiement -- Moyens de paiement ( code TEXT NOT NULL PRIMARY KEY, nom TEXT NOT NULL ); |
︙ | ︙ |