Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
4067 Tampilan

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
Buang

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.

Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Feb 18
2454
2
Jul 19
3942
0
Des 18
2992
2
Okt 18
6785
0
Sep 20
2859