简体   繁体   中英

Rounding column in Adempiere

I am using Adempiere and there's a Grand Total column in window Purchase Order

在此处输入图片说明

I want the amount to be rounded above, so Grand Total will show 42,432,001

I've tried changing Price Precision but it still doesn't work.

How can I change it ?

As its name implies the Pricing Precision would only apply rounding when generating prices on a pricelist. You might read this page from the adempiere wiki on the topic of rounding in documents and in particular you might also want to read its discussion page. To my knowledge this functionality has not been implemented so it will require some coding but as you see from the discussion it has some potential to be a complex (in legal & accounting terms) than would initially suspected.

I have found the answer, it's by modifying column in the database.

I use Oracle 12c, and the column is GrandTotal . I use ROUND() function

all I do is updating the column.

UPDATE C_ORDERLINE SET GRANDTOTAL = ROUND(GRANDTOTAL)

It works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM