Commit Graph

117 Commits

Author SHA1 Message Date
Nicolas Roche 3b892e1d1e eo_facture: move cancelation code into models (#61117) 2022-02-01 13:49:56 +01:00
Benjamin Dauvergne 08159a39be fix pylint-django warnings 2022-01-20 19:51:41 +01:00
Benjamin Dauvergne e3b1f83d55 facture: fix Facture.save signature to comply with Django 2022-01-20 19:27:28 +01:00
Nicolas Roche 077ebf0ecc eo_facture: manage invoice cancelation (#36633) 2021-12-16 10:55:05 +01:00
Benjamin Dauvergne 6da1978bea misc: produce and accepts URLs with facture's code (#21075) 2021-11-25 15:51:47 +01:00
Benjamin Dauvergne 27d45e5b1d pylint: fix all warnings (#58764) 2021-11-20 22:17:57 +01:00
Benjamin Dauvergne b4475d710f misc: add and apply pre-commit hooks (#58764) 2021-11-20 22:13:47 +01:00
Benjamin Dauvergne 4089596bff models: ignore montant_affecte if it's None (#54050)
It means ligne_banque_pop or facture is None, which will be reported by
full_clean().
2021-06-03 13:22:15 +02:00
Benjamin Dauvergne 0510d076ac vendor django-admin-sortable2 v1.0 (#54470)
And use it to to replace the custom sortable tabular inline
implementation.
2021-06-03 12:40:58 +02:00
Benjamin Dauvergne a19a53902f rend Contrat.tags non obligatoire (#45087) 2020-07-13 18:19:23 +02:00
Benjamin Dauvergne eb534d61fc ajoute la TVA au template Factur-X (#45033) 2020-07-10 22:44:39 +02:00
Benjamin Dauvergne 8217b77f90 ajoute une classification des contrats par tags (#29794) 2020-07-07 16:51:58 +02:00
Nicolas Roche 78dab72f96 assert new invoice is related to a client or a contract (#44733) 2020-07-02 15:52:11 +02:00
Benjamin Dauvergne 5b5e138831 reformat with black
black --target-version py35 --skip-string-normalization --line-length 110 .
2020-06-29 16:01:35 +02:00
Frédéric Péters 3e114f20b8 trivial: remove gettext call on French strings 2020-06-28 10:39:54 +02:00
Benjamin Dauvergne bed17b3973 eo_facture: mettre à jour l'échéance quand on met à jour la date d'émission (#43467) 2020-06-26 11:53:14 +02:00
Frédéric Péters 236b6dbb4e misc: add an active flag to clients (#44308) 2020-06-24 10:43:11 +02:00
Frédéric Péters b61a297bed misc: add URL field to contract model (#44312) 2020-06-23 13:28:20 +02:00
Benjamin Dauvergne 4af4c0e00b eo_facture: ré-initialiser emission quand une facture n'est plus proforma (#42442)
Empêche aussi de défaire le statut proforma ou de changer emission quand
une facture n'est plus proforma.
2020-05-04 15:01:25 +02:00
Benjamin Dauvergne 0fc2e95f28 misc: aggregate can return None (#40841) 2020-03-22 11:46:41 +01:00
Benjamin Dauvergne 3fd74e6be2 eo_facture: add private_notes to Facture (#40014) 2020-03-22 11:45:37 +01:00
Benjamin Dauvergne b8088550ce eo_facture: order prestation by id (#39763) 2020-02-12 17:03:03 +01:00
Benjamin Dauvergne dcf3699abe eo_facture: fix check on proforma in facturx_pdf() 2020-02-04 11:59:00 +01:00
Benjamin Dauvergne b245c63898 eo_facture: do not transform all invoices to Factur-X
PDF/A make heavy files (always more than 1Mb) as they contain all font
files.
2020-02-04 10:48:48 +01:00
Benjamin Dauvergne 5b308c49b5 add ChorusPro support (#20562)
* ChorusPro directory is imported
* client can be linked to ChorusPro structures
* when a client is linked to a ChorusPro structure, a button is shown to
  send the invoice to Chorus

Settings:

  CHORUS_PLATFORM = 'qualif' / 'prod'
  CHORUS_PISTE_CLIENT_ID = ''
  CHORUS_PISTE_CLIENT_SECRET = ''
  CHORUS_TECH_USER_LOGIN = ''
  CHORUS_TECH_USER_PASSWORD = ''
2020-02-03 21:30:18 +01:00
Benjamin Dauvergne 4cbf6bdb13 add factur-x support (#20562)
The following configuration must be added to settings :

  VENDOR_NAME = 'Entr\'ouvert'
  VENDOR_SIRET = '44317013900036'
  VENDOR_TVAI = 'FR09491081899'
2020-02-03 19:01:56 +01:00
Benjamin Dauvergne ef922d091f target Django >=2,<2.3 (#20562)
We need it for support of autocompletion in admin pages.
* rename django.core.urlresolvers to django.urls
* update migrations
* fix warning about PercentagePerYearField.from_db_value() context arg
* fix warning about deprecated {% load staticfiles %}

This commit also remove support for py2.
* tox.ini: only run with py3
* remove all u'' strings
* remove imports from __future__
2020-02-03 19:01:56 +01:00
Benjamin Dauvergne 02f38494af définit le montant des contrats sans prestations (#36320) 2020-01-27 10:28:01 +01:00
Benjamin Dauvergne 57da89db4e models: fix misuse of contrat.montant (#38785) 2020-01-06 14:23:28 +01:00
Benjamin Dauvergne cf4cbe5959 add on_delete=models.CASCADE (#38507) 2019-12-29 18:36:17 +01:00
Benjamin Dauvergne e49e51a9e5 migrate to python3 (#38507)
* add basic tests and big anonymized fixture
* add missing copyright notices
2019-12-26 12:35:55 +01:00
Benjamin Dauvergne 2c85151c22 reformat with black (#38507)
black --target-version py35 --skip-string-normalization --line-length 110
2019-12-26 08:46:40 +01:00
Benjamin Dauvergne 8f466d40d8 ignore les factures proforma dans le montant facturé d'un contrat (#38090) 2019-11-29 15:21:24 +01:00
Benjamin Dauvergne e8c96a463b eo_facture: augment decimal_places from 2 to 3 on quantite (#36801) 2019-10-09 13:56:18 +02:00
Frédéric Péters c084db05b6 add help text to public description 2019-05-28 10:53:40 +02:00
Benjamin Dauvergne cf02dc17c5 eo_facture: use taux_tva from upper level when taux_tva is None not 0.0 (#32243) 2019-04-12 16:04:53 +02:00
Frédéric Péters a666fbc19a misc: add a free form contacts field to clients (#30606) 2019-03-17 14:04:21 +01:00
Frédéric Péters 31ae35a67d add a field to associate an image to a contrat (fixes #29792) 2019-02-13 21:35:06 +01:00
Frédéric Péters 7004a79f8f add public description to contrat model (fixes #29791) 2019-02-13 21:35:02 +01:00
Frédéric Péters 7d2565806c add a field for client logo (fixes #29790) 2019-02-13 21:34:58 +01:00
Frédéric Péters 23979ad749 remove usage of PassThroughManager from django-model-utils (fixes #29789) 2019-02-13 21:34:53 +01:00
Benjamin Dauvergne 5e40114e7f Fix income by client report, do not account invoice moved to the previous period on current year 2015-03-11 15:06:49 +01:00
Benjamin Dauvergne 91d55ede0e Crée l'objet avant toutes ses utilisations 2015-03-06 10:51:48 +01:00
Benjamin Dauvergne 4ea4e527ed eo_facture/models: add an account_on_previous_period flag to invoices 2015-02-05 15:53:04 +01:00
Jérôme Schneider ac01031121 migration en Django 1.7 2015-02-03 16:40:33 +01:00
Benjamin Dauvergne 8318a08b22 Met à jour le statut du paiement aussi quand une facture est créée ou supprimée ou quand une ligne de facture est créée, modifiée ou supprimée 2015-01-16 11:38:22 +01:00
Benjamin Dauvergne 0c78131580 Une facture n'a pas forcément de contrat, accès au client via la facture 2014-11-10 10:52:18 +01:00
Benjamin Dauvergne 51f0e1e62f models: add more indexes 2014-02-05 11:00:53 +01:00
Benjamin Dauvergne 8cdcd20648 eo_facture/models: simplify the sans_solde() FactureQuerySet query method 2014-02-05 11:00:42 +01:00
Benjamin Dauvergne fb9787e630 optimize database queries 2014-02-04 17:33:43 +01:00