Chen Log

陳洛格

修改 openerp 7 PDF檔 RML檔 產品數量有小數點的方法(round the openerp Quantity float Decimal line.product_uos_qty)

leave a comment »

Round the openerp Quantity float Decimal line.product_uos_qty

edit the file 把原本 sale_order.rml 的

<para style=”terp_default_Right_9″>[[ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) ]]</para>

增加 add “, digits=0 ”  代表小數點為零

<para style=”terp_default_Right_9″>[[ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty, digits=0) ]]</para>

 

原本的小數點 1000.00 

就會變成 1000 整數了!

 

(1000.00 -> 1000 )

Advertisements

Written by chenagw

2014/01/03 at 23:05

Posted in Uncategorized

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: