--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
si_std = { print_item_table: function() { var table = print_table( 'Sales Invoice', doc.name, 'entries', 'Sales Invoice Item', [// Here specify the table columns to be displayed 'Sr', 'item_name', 'description', 'qty', 'stock_uom', 'basic_rate', 'amount' ], [// Here specify the labels of column headings 'Sr', 'Nombre', 'Descripción', 'Cant', 'Unidad', 'Unitario', 'Monto' ], [// Here specify the column widths '3%', '20%', '37%', '5%', '5%', '15%', '15%' ], null, null, {
Hi Hernan,You can use flt(amount, 2) to set the precision to 2 decimal places.
On Thu, Jan 9, 2014 at 11:27 PM, Hernan Gonzalez <nuco....@gmail.com> wrote:
I want to limit the number of decimal places for the qty field (float), i can limit the decimal Float Precision in global defaults, but i want to keep the precision set to 4 decimals and show only two in the print format as it is done in currency fields.My custom print format is attached.And this is the output:
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--Regards,Akhilesh Darjee
Hi Hernan,
You can use for function for all float values, even for any.
Flt(qty, 2)
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--Regards,Akhilesh Darjee
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
Regards,Akhilesh Darjee
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
Hi Hernan,
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/3194a99e-ad41-4f74-8357-1fd77038a3f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.