How to display data to print format

Hi all. I creating a print format for sales invoice and I want to display info customer in the print format. In Customer I custom a filed "tax_code" have type is "text". But I don't know how to display "tax_code" to the print format for sales invoice. I try to code "doc.tax_code" but it 's not display. Can you help me, thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Can you post your print format in gist / pastebin.

On Thursday, October 10, 2013 10:31:20 AM UTC+5:30, th...@saigontechnology.vn wrote:
Hi all. I creating a print format for sales invoice and I want to display info customer in the print format. In Customer I custom a filed "tax_code" have type is "text". But I don't know how to display "tax_code" to the print format for sales invoice. I try to code "doc.tax_code" but it 's not display. Can you help me, thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
This is file print format for sales invoice.
In line 246, I use code: "<script>doc.customer_tax_code</script>" to get info customer's tax code but not display. Although I created a field have name is "customer_tax_code" in customer.
Thank.

Vào 12:01:20 UTC+7 Thứ năm, ngày 10 tháng mười năm 2013, th...@saigontechnology.vn đã viết:
Hi all. I creating a print format for sales invoice and I want to display info customer in the print format. In Customer I custom a filed "tax_code" have type is "text". But I don't know how to display "tax_code" to the print format for sales invoice. I try to code "doc.tax_code" but it 's not display. Can you help me, thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
You have to "fetch" it in current form.

http://erpnext.org/docs.dev.custom_script.fetch.html

- or - 

Use server side print formats

https://github.com/webnotes/erpnext/tree/master/accounts/Print%20Format/SalesInvoice

On Friday, October 11, 2013 8:58:42 AM UTC+5:30, th...@saigontechnology.vn wrote:
This is file print format for sales invoice.
In line 246, I use code: "<script>doc.customer_tax_code</script>" to get info customer's tax code but not display. Although I created a field have name is "customer_tax_code" in customer.
Thank.

Vào 12:01:20 UTC+7 Thứ năm, ngày 10 tháng mười năm 2013, th...@saigontechnology.vn đã viết:
Hi all. I creating a print format for sales invoice and I want to display info customer in the print format. In Customer I custom a filed "tax_code" have type is "text". But I don't know how to display "tax_code" to the print format for sales invoice. I try to code "doc.tax_code" but it 's not display. Can you help me, thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Thank rushabh. I will try to see how?

On Thursday, October 10, 2013 12:01:20 PM UTC+7, th...@saigontechnology.vn wrote:
Hi all. I creating a print format for sales invoice and I want to display info customer in the print format. In Customer I custom a filed "tax_code" have type is "text". But I don't know how to display "tax_code" to the print format for sales invoice. I try to code "doc.tax_code" but it 's not display. Can you help me, thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.