Le 20/01/2014 19:11, Albert Cervera i Areny a écrit :
2014/1/20 Christophe (net) <c...@adiczion.net>:
Hi,
I return to the subject of the sales price with tax included.
I have carefully read the blue print and I have followed the discution with
Cedric on  TUB2013, the general idea had concensus was to define a object
dedicated for these sales. If I agree with this idea, the implementation is
heavy (many module to modify based on this new object: sale_pos, nereid,
...) , this weekend I decided to overload the Sale object and Invoice object
to allow sales management with prices tax included.
This new module (sale_b2bc) depends on the module sale_shop from
ZikZakmedia.
In summary:
  - Adding a flag on products to indicate if the list_price is tax included
- Adding a choice  to the store to indicate if sales can be made tax
included, tax excluded or both

I'd separate the shop/store module from the tax included one. I think
there's no need to depend on stores...
I put this dependency because I needed to choose whether a store can make sales with taxe included or not, but this should be in a separate module.


- Adding an option to object Sale  to indicate if price is tax included or
not.
- Change the calculation of taxes on sale and invoice to add tax included
possibility
- Modification of invoice object to adding tax included calculation like
sale.

I think invoice should be done in a different module.
Why, because if a sale is made with price with tax included invoice must also tax included ?

 By the way, did
you take into account account_invoice_line_standalone?
Not in this version this is my first writing ...

 It should not
be possible to mix lines with tax included with lines with tax
excluded in the same invoice.
Of course :-)


- Modification of the generation of accounting entries

what remains to be done
  - The integration with stock management : valuation movements and invoice
creation from deliveries
  - Add the installation procedure for PyPI
  - Add unit tests
  - Add doc
  - And tests, tests and still test :-)

You can find the repository of the dev version here:
https://gitorious.org/ate_modules/trytond-sale_b2bc : branch dev_3.0

I could not see the code. Just the .gitignore file...
change the branch : dev_3.0

Note that Cédric preferred to have slightly different objects sharing
a large common base for managing both types of sales on the grounds
of:

- Tax included/excluded was a very important information that made it
not a very good option to have all fields at sale line and use ones or
the others depending on a flag
- The workflow of sales could be different
Yes, I wrote this module until the official version because I needed it now, and to do some advance topic


That means that maybe your proposal it is hard it will be included in
Tryton as is, but I'm still very interested in it.
I do not think this module has now its place in the official version but if it can help someone that is perfect ....

--
Christophe
Adiczion
Tél : +33.6.65.59.39.68

Reply via email to