تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
4084 أدوات العرض

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.

الصورة الرمزية
إهمال

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.

أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 18
2464
2
يوليو 19
3952
0
ديسمبر 18
2999
2
أكتوبر 18
6803
0
سبتمبر 20
2866