Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

openerp decimal showing 2 decimal in point of sale and i need 4

By
rashed
on 5/11/14, 4:15 PM 1,349 views

Dear sir

i im in kuwait and we need 4 decimal i did the Decimal Accuracy in Database Structure in the settings all in to 4 still showing me in the point of sale 2 the following.

selling price in the invoice 2.532 and it shows in the point of sale 2.530

Product Price 4 Discount 4 Account 4 Stock Weight 4 Product Unit of Measure 4 Product UoS 4 Payment Term 6 Shipping Delay 4 Point Of Sale 4

i am using linux if i need to edit any thing please just tell me and i will do it,

your reply will be appreciated.

best regards

thanks to mr AHmad

rashed
on 5/12/14, 3:41 PM
change your Account precision to 4 "you already did that"
change your default company currency Rounding Factor to 0.0001, You can find it under Settings ->Configuration ->Accounting ->Options, Default company currency.
on the file /addons/point_of_sale/static/src/js, open the widget_base.js and make these changes:
    line 25 

this.currency = {symbol: '$', position: 'after', rounding: 0.0001}; // change the 0.01 to 0.0001
    line 32 

amount = Math.round(amount*10000)/10000; // change 100 to 10000
rashed
on 5/12/14, 3:41 PM
1

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 5/12/14, 6:38 AM

Hello,

  • change your Account precision to 4 "you already did that"
  • change your default company currency Rounding Factor to 0.0001, You can find it under Settings ->Configuration ->Accounting ->Options, Default company currency.
  • on the file /addons/point_of_sale/static/src/js, open the widget_base.js and make these changes:
    • line 25

    this.currency = {symbol: '$', position: 'after', rounding: 0.0001}; // change the 0.01 to 0.0001

    • line 32

    amount = Math.round(amount*10000)/10000; // change 100 to 10000

then update your module

I hope this could helps

Regards...

0

michel Guénard

--michel Guénard--
1033
| 5 5 8
VIROFLAY, France
--michel Guénard--

VP operations & finance Social entrepreneur Certified Public Accountant Past Chief internal auditor

michel Guénard
On 5/11/14, 8:36 PM

go to configuration menu

then Accounting sub menu

There you will be able to set the number of decimals

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/11/14, 4:15 PM
Seen: 1349 times
Last updated: 3/16/15, 8:10 AM