Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1971 มุมมอง

i have a custom report that i display the line.price.unit the decimal places was set as 4. 

but on the printout  i want to display only 2 decimal places so i did this 


'>>  t-esc="'%.2f'%(line.price_unit)"/

Now, i have a problem , if i have unit price is 3500.00 i want to display it with comma  to be like this 3,500.00 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can use "

<t t-esc="'{0:,.2f}'.format(line.price_unit)" />

" to do that.

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
864
0
ก.พ. 25
915
0
ส.ค. 22
2023