alignment display invoice report

32 views
Skip to first unread message

Govardhan Hazare

unread,
Apr 17, 2013, 6:06:17 AM4/17/13
to erpnext-dev...@googlegroups.com
Hi Team,

1. I would like to create new report in sales Invoice. Please advise me how to create and where do i need to create? using source code..
2. I need to change alignment and display information positions so and so.. hence request you to please.. let me know how to design..using source code..

3. Round amount, when i have one item which price 150, then 5% discount, it is round 142.50, but round total coming into 143.00.

Thanks & Regards,
Govardhan Hazare
roundTotal.JPG

Anand Doshi

unread,
Apr 17, 2013, 6:10:46 AM4/17/13
to erpnext-dev...@googlegroups.com
Hi Govardhan

I think what you want to do is create a Print Format

Go to Document (top bar - 2nd icon) > New > Print Format.
As an example, have a look at "Sales Invoice Classic/Modern/Spartan". It is done using code.

Rounded Total rounds the Grand Total to a whole number. You can hide the Rounded Total field and instead add a similar style to Grand Total, or for printing purposes, you can use flt(doc.grand_total_export, 2) to round grand total value to 2 decimal places and use it to display Round Total.

Thanks,
Anand.

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/3VrvE29vissJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
<roundTotal.JPG>

Reply all
Reply to author
Forward
0 new messages