Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4066 Vistas

I'm banging my head with rounding when paying with cash. I have a product with price of 1,82€ and I've created a product called rounding. Now when I add the rounding and select it's price to be -0,02€ it adds the 0,02 to the total and if I add the rounding as -1 each and set the price to be 0,02 it also adds it to the total. What I'm doing wrong here?

I know that there are two apps that takes care of this but at least the free one doesn't  suit my needs because when people are paying with credit (or debit) card the prices shouldn't be rounded. The other app I just cant afford.

Avatar
Descartar

mark your product in model is_round similar to is_delivery. exclude it from totals till the last. then deduct it from whole total. this would make things easier during accounting too. to trigger calculation, use select field with on_change in sale_order and update field on return.

Mejor respuesta

1.) If you are using 10.0 development branch, once there was this bug in dev in after this commit :

https://github.com/odoo/odoo/commit/5afb5ecd04cf49be6bedb655b187b19a65e1e02d

The counter commit to solving this issue has also been migrated to 10 branch.
So if your branch is in between you can fetch the latest commits, and your issue should get solved.

https://github.com/odoo/odoo/commit/33d20a224164cd83f09018addcf02496f22bced2#diff-b4910f2e838d1b125a771a87dfb8afda

Avatar
Descartar
Autor Mejor respuesta

Sorry for not commenting directly to your post, I don't have enough karma for it. Anyways, thank you so much!

I had odoo-10.0.post20171024-1.noarch installed from nightly and after updating it to odoo-10.0.post20171107-1.noarch negative values works.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 18
2451
2
jul 19
3942
0
dic 18
2991
2
oct 18
6784
0
sept 20
2859