nuevo addon para calcular el precio con descuento antes del impuesto cuando se funciona con precios B2C, es una diferencia de un céntimo en cada línea, pero hay contables quisquillosos.
Sobreescribe compute_all de sale.order.line, seguramente cause problemas si se usan más addons que toquen el descuento.
This commit is contained in:
parent
4e8a423a5a
commit
3cadaade3c
4 changed files with 48 additions and 0 deletions
14
sale_calc_discount_b2c/__manifest__.py
Normal file
14
sale_calc_discount_b2c/__manifest__.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2021 Criptomart
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
'name': 'Sale Calc Discount B2C',
|
||||
'summary': 'When prices are tax included, calculates the discount in price excluding tax.',
|
||||
'version': '12.0.1.0.0',
|
||||
'author': 'Criptomart',
|
||||
'depends': [
|
||||
'sale',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'application': False,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue