Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
4069 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 18
2456
2
thg 7 19
3943
0
thg 12 18
2992
2
thg 10 18
6786
0
thg 9 20
2861