[tryton] Re: [tryton-fr] Handling of returns/cancelations

2018-04-08 Thread Richard PALO

Le 26/03/2015 à 16:39, Mathias Behrle a écrit :

* Raphael Hertzog: " Re: [tryton-fr] Re: extourne/annulation d'un
   mouvement" (Wed, 25 Mar 2015 14:37:06 +0100):

I am pulling this discussion of the french mailing list to tryton, because I
find it interesting enough for the wide public and I would suspect, that at
least in Europe we should have some common or at least similar procedures about
the handling of credit notes versus cancellation notes.

I have put the research together done by the german community at that
time (dating back to 2008) and posted it at

https://code.google.com/p/tryton/wiki/CreditNotevsCancelation

May be we can find together the most common denominator of this business case.


Le mardi 24 mars 2015, Richard PALO a écrit :

En effet, avec le Nouveau Plan comptable (1999), une obligation de
traçabilité des modifications d'écritures comptables impose l'utilisation
des contrepassations d'écritures (voir Mémento Comptable 2015 § 332.3 III
"Traçabilité".

Au delà des règles comptable, la traçabilité est imposée également par
l'Administration fiscale qui risquerait de ne pas se satisfaire d'une
comptabilité contenant des écritures négatives.


Donc, il est impérative d'organiser un aménagement pour tenir
une comptabilité légale avec tryton en France.


Moi je comprends tout cela bien différemment... « la traçabilité impose
l'utilisation des contrepassations d'écritures » ca veut juste dire qu'on
ne modifie pas l'écriture d'origine mais qu'on effectue la correction
avec une ou plusieurs écritures supplémentaires.


Absolutely agreed about tracibility and immutability of posted moves. For german
installations we are disabling the button, that allows to change posted moves.
  

Cette question de signe me semble tout à fait anecdotique. L'usage d'un
signe négatif pour une contrepassation qui annule totalement la première
écriture me semble légitime (pourvu que l'écriture soit documentée comme
telle!).


As Cédric has pointed out in another mail, the result between annulating a
move with negative amounts to the same account (debit/credit) versus
positive amounts on the contra account is different. While one will not
increase the balance, the other will.
  

Mais je ne suis pas comptable...


I am an accountant neither, so happy on further input.





For info, https://bugs.tryton.org/issue5180 has been updated with an initial
patchset proposal supporting an 'allow_negative_moves' configuration parameter.

--

Richard PALO

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/bc87b950-223b-23f4-f5f9-31226db0ed75%40free.fr.


Re: [tryton-fr] Re: extourne/annulation d'un mouvement

2018-04-08 Thread Richard PALO

Le 20/03/2015 à 23:20, Richard PALO a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 20/03/15 19:20, Richard PALO a écrit :

J'ai remarqué suite au conseil de Cédric d'annuler les mouvements faits 
derrière un relevé posté
que cette annulation (ou extourne) se présente dans la forme suivante:

Compte| Débit | Crédit
--+---+---
512   |   |  100
604   |  100  |
==+===+==
512   |   | -100
604   | -100  |


Nous avions déjà perdu cette bataille avec l'expert comptable (avec Sage et 
OpenERP)
les écritures d'annulation et d'extourne doivent obligatoirement être fait 
comme suit:
==+===+==
512   |  100  |
604   |   | 100

Comment corriger ce traitement d'inversement de signe par
inversement de sorte (Débit ou Crédit)?

Existe t'il un paramètre en particulier à renseigner?




J'ai trouvé ceci dans account/move.py:

373 def cancel(self):
  374 'Return a cancel move'
  375 pool = Pool()
  376 Line = pool.get('account.move.line')
  377 TaxLine = pool.get('account.tax.line')
  378 default = self._cancel_default()
  379 cancel_move, = self.copy([self], default=default)
  380 lines = []
  381 tax_lines = []
  382 for line in cancel_move.lines:
  383 line.debit *= -1
  384 line.credit *= -1
  385 lines.extend(([line], line._save_values))
  386 line._values = None
  387 for tax_line in line.tax_lines:
  388 tax_line.amount *= -1
  389 tax_lines.extend(([tax_line], tax_line._save_values))
  390 tax_line._values = None
  391 if lines:
  392 Line.write(*lines)
  393 if tax_lines:
  394 TaxLine.write(*tax_lines)
  395 return cancel_move



Il me semble donc qu'un paramétrage manque dans tryton pour autoriser ou non la
contre passation en écriture négative car ici c'est toujours le cas.
- -- 


Mise à jour de https://bugs.tryton.org/issue5180
avec la proposition et le projet pour la 1ère phase d'amélioration d'une 
annulation
par un paramétrage permettant des lignes négatives ou non dans une écriture 
comptable [validée].

--

Richard PALO

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/c236c304-f5d1-2a70-ad99-6d8a614bfa2f%40free.fr.