Overview
Comment: | Suppression de la possibilité d'importer depuis Citizen |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
620df5a2e5a76c4512b46ed93735d287 |
User & Date: | bohwaz on 2020-04-07 00:41:16 |
Other Links: | manifest | tags |
Context
2020-04-07
| ||
00:50 | Import dans la bonne catégorie recette/dépense s'il y a une catégorie qui a le même nom dans l'autre type check-in: 34f324b0a2 user: bohwaz tags: trunk, stable | |
00:41 | Suppression de la possibilité d'importer depuis Citizen check-in: 620df5a2e5 user: bohwaz tags: trunk, stable | |
00:36 | Fix import comptable avec le nom du moyen de paiement à la place du code check-in: 7e67be9f3d user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Compta/Import.php from [936ab834d8] to [99fd308df7].
︙ | ︙ | |||
235 236 237 238 239 240 241 242 243 244 245 246 | } catch (UserException $e) { throw new UserException(sprintf('Ligne %s: %s', $line, $e->getMessage())); } } $db->commit(); fclose($fp); return true; } | | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 235 236 237 238 239 240 241 242 243 244 245 246 247 | } catch (UserException $e) { throw new UserException(sprintf('Ligne %s: %s', $line, $e->getMessage())); } } $db->commit(); fclose($fp); return true; } } |
Modified src/templates/admin/compta/import.tpl from [d8c04dcc34] to [5bf6707f89].
︙ | ︙ | |||
27 28 29 30 31 32 33 | <label for="f_type">Export CSV de Garradin</label> </dd> <dd class="help"> Export du journal comptable au format CSV provenant de Garradin. Les lignes comportant un numéro d'opération mettront à jour les opérations existantes, les lignes sans numéro créeront de nouvelles opérations. </dd> | < < < < < < < < < < < | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <label for="f_type">Export CSV de Garradin</label> </dd> <dd class="help"> Export du journal comptable au format CSV provenant de Garradin. Les lignes comportant un numéro d'opération mettront à jour les opérations existantes, les lignes sans numéro créeront de nouvelles opérations. </dd> </dl> </fieldset> <p class="alert"> Si le fichier comporte des opérations dont la date est en dehors de l'exercice courant, elles seront ignorées. </p> |
︙ | ︙ |
Modified src/www/admin/compta/import.php from [d14bd1f9b9] to [2c5e1fbc3f].
︙ | ︙ | |||
19 20 21 22 23 24 25 | exit; } if (f('import')) { $form->check('compta_import', [ 'upload' => 'file|required', | | < < < < | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | exit; } if (f('import')) { $form->check('compta_import', [ 'upload' => 'file|required', 'type' => 'required|in:garradin', ]); if (!$form->hasErrors()) { try { if (f('type') == 'garradin') { $import->fromCSV($_FILES['upload']['tmp_name']); } else { throw new UserException('Import inconnu.'); } |
︙ | ︙ |