Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculate prices with generic local taxes management #382

Merged
merged 3 commits into from
Sep 10, 2012
Merged

calculate prices with generic local taxes management #382

merged 3 commits into from
Sep 10, 2012

Conversation

altairis-tof
Copy link
Contributor

No description provided.

@altairis-tof
Copy link
Contributor Author

wait please before merge, i have to update the commit

@altairis-tof
Copy link
Contributor Author

should be ok now

eldy added a commit that referenced this pull request Sep 10, 2012
calculate prices with generic local taxes management
@eldy eldy merged commit b623942 into Dolibarr:develop Sep 10, 2012
@eldy
Copy link
Member

eldy commented Sep 10, 2012

J'ai intégré le push.
J'ai fais quelques modifs pour rendre la situation compatible avec l'espagne. Tout semble refonctionner à nouveau et le code en l'état doit etre opérationnel pour tout le monde sans régression, en l'état, meme pour l'espagne.
Merci d'attendre que Juanjo ait fait quelques tests sur cet état avant de passer à la suite (l'idéal serait d'ajouter des cas de tests dans le PHPUnit PricesTest.php afin de valider différentes combinaisons de cas).

@altairis-tof
Copy link
Contributor Author

je viens de regarder, il me semble que dans ton test de localtax2 pour l'espagne, tu devrais passer $localtax2_rate en négatif, puisqu'avant on soustrayais la taxe2

@simnandez
Copy link
Member

Oui, le localtax2 a l'Espagne est negatif, on soustrais

@eldy
Copy link
Member

eldy commented Sep 11, 2012

Le 11/09/2012 08:26, Christophe Battarel a écrit :

je viens de regarder, il me semble que dans ton test de localtax2 pour
l'espagne, tu devrais passer $localtax2_rate en négatif, puisqu'avant
on soustrayais la taxe2

En effet, mais j'ai demandé à Juanjo de voir si un taux négatif pouvait
etre ok.
Si c'est ok, on modifiera plutot la table llx_c_tva pour mettre le
localtax2_rate négatif.

Il testera dans les jours qui viennent...


Reply to this email directly or view it on GitHub
#382 (comment).

Eldy (Laurent Destailleur).

EMail: eldy@destailleur.fr
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: contact@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: contact@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

@eldy
Copy link
Member

eldy commented Sep 11, 2012

Le 11/09/2012 08:53, Juanjo Menent a écrit :

Oui, le localtax2 a l'Espagne est negatif, on soustrais


Reply to this email directly or view it on GitHub
#382 (comment).

Donc si on met le taux négatif dans la table llx_c_tva, cela doit
fonctionner.
C'est possible cela (cela evitera d'avoir à gerer une soustraction dans
calcul_price_total) ?

Eldy (Laurent Destailleur).

EMail: eldy@destailleur.fr
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: contact@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: contact@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

@simnandez
Copy link
Member

J'ai fait le test en pousant a le llx_c_tva le localtax2 en negatif et il fonctionne tres bien. (il faut faire quelques modifications parce que j'ai vu certains bugs a l'insertion et update de lignes dans propals, par exemple, je les vais a resoudre...). Je vais parler à un conseiller fiscal pour être sûr de savoir comment appliquer les deux taux en Espagne

@eldy
Copy link
Member

eldy commented Sep 12, 2012

Le 12/09/2012 15:21, Juanjo Menent a écrit :

J'ai fait le test en pousant a le llx_c_tva le localtax2 en negatif et
il fonctionne tres bien. (il faut faire quelques modifications parce
que j'ai vu certains bugs a l'insertion et update de lignes dans
propals, par exemple, je les vais a resoudre...). Je vais parler à un
conseiller fiscal pour être sûr de savoir comment appliquer les deux
taux en Espagne


Reply to this email directly or view it on GitHub
#382 (comment).

Super.
Tiens nous au courant. Je donnerais le go à Christophe pour lancer la
suite de la gestion des taux multiples dès que tu auras pu corriger les
bugs que tu as identifiés.

Eldy (Laurent Destailleur).

EMail: eldy@destailleur.fr
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: contact@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: contact@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

@eldy
Copy link
Member

eldy commented Sep 15, 2012

Hi christophe,

can you push the next step: This next step is a patch on the dictionnary
setup of local taxes table to be able to set localtax type (for the
moment only localtax rate is possible).

Le 12/09/2012 15:26, Laurent Destailleur (eldy) a écrit :

Le 12/09/2012 15:21, Juanjo Menent a écrit :

J'ai fait le test en pousant a le llx_c_tva le localtax2 en negatif
et il fonctionne tres bien. (il faut faire quelques modifications
parce que j'ai vu certains bugs a l'insertion et update de lignes
dans propals, par exemple, je les vais a resoudre...). Je vais parler
à un conseiller fiscal pour être sûr de savoir comment appliquer les
deux taux en Espagne


Reply to this email directly or view it on GitHub
#382 (comment).

Super.
Tiens nous au courant. Je donnerais le go à Christophe pour lancer la
suite de la gestion des taux multiples dès que tu auras pu corriger
les bugs que tu as identifiés.

Eldy (Laurent Destailleur).

EMail:eldy@destailleur.fr
Web:http://www.destailleur.fr

Dolibarr (Project leader):http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal:contact@destailleur.fr
AWStats (Author) :http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal:contact@destailleur.fr
AWBot (Author) :http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) :http://cvschangelogb.sourceforge.net

Eldy (Laurent Destailleur).

EMail: eldy@destailleur.fr
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: contact@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: contact@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

@altairis-tof
Copy link
Contributor Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants